Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / April 2004

Tip: Looking for answers? Try searching our database.

COM and hosted controls in IE

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Diego - 19 Apr 2004 14:36 GMT
Hello
I'm working on a .NET C# user control to use it in Windows Forms Applications. This User Control uses a COM Library via RCW. I would like to use the control also through a web page with <OBJECT> tag accessing via IE, in a similar way of old ActiveX Controls
The point is that if I call the .htm page the control is not loaded nor displayed. If I remove the references to the COM Library all seems to work and I see the control
I tried to copy in the virtual folder the COM dll but it does not work
Anyone could explain me why this happen and if exists any work-around

Thank you and best regard
Diego
"Ying-Shen Yu[MSFT]" - 20 Apr 2004 05:44 GMT
Hi Diego,

I'd like to know if the COM component is on the server-side or on the
client-side? The IE Host windows forms control is actually running on the
client side, so you can only use the COM component registered on the client
system.

Also, by default the IEHost winform control doesn't have the permission to
call the unmanaged COM component, you need grant the UnmanagedCode
permission to the downloaded assembly. You may read the following
documentation to know how to grant permission to a certain assembly :
<.NET Framework Configuration Tool>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/htm
l/cpconnetframeworkadministrationtoolmscorcfgmsc.asp

Please feel free to reply this thread, if you need further help on it.
Thanks!

Best regards,

Ying-Shen Yu [MSFT]
Microsoft Community Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, please remove the word "online"
before sending mail.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.