Last post May 31, 2010 08:20 AM by dipakzope
May 31, 2010 08:20 AM|dipakzope|LINK
Sorry for long description, but it was necessary to explain the exact problem.
I am trying to build an ASP .Net application for Windows Vista (and Win7) desktop sharing. I found the link in MSDN for desktop Sharing -
http://msdn.microsoft.com/en-us/library/aa373876(v=VS.85).aspx. I found a sample application as well, which makes use of these APIs -
http://blogs.msdn.com/b/rds/archive/2007/03/23/writing-a-desktop-sharing-application.aspx?CommentPosted=true#commentmessage. (I couldn’t find any sample ‘web’ application for this.)
In above C# example, RDPViewer COM component is used as an ActiveX control. DLL for this control is system32\rdpencom.dll. And this control has all the functionalities (mainly Desktop 'Sharing'), which I want in my ASP .Net application.
As there is no equivalent control in the .Net Framework, I decided to use the same control - i.e. rdpencom.dll. But as it is an unmanaged Com component, I decided to use COM Interop -
There are various links where the procedure of explained. I followed this link (ignoring first part)-
What I did and Where is the problem:
1. I used 'tlbimp' utility on system32\rdpencom.dll to create the Metadata.
2. I got RDPCOMAPILib.dll which is nothing but an assembly.
Now I am able to create objects of RDPViewerClass in my ASP .CS page, as mentioned in example mentioned in the above URL
That means, I can use all the internal functionality, but not able to host the control on ASP (HTML) page. I tried hosting the control by using <OBJECT> tag. But couldn't access member functions of that object (class).
The control doesn't apear in the toolbox either.
I tried adding it, but gives error: '.tlb file not found for RDPCOMAPILib.dll'
I also tried creating '.tlb file from newly generated metadata file, but it gives this error:
Can anyone please help me figure out how I can host 'this' com component on ASP?
Thanks for reading and holding patience.
Your help is really paraciated.
custom web control