Last post Dec 04, 2007 11:40 AM by Krammer
Nov 19, 2007 08:52 AM|Krammer|LINK
I have a COM Library that I need to access from the ASP.NET application. I created a windows control library (.NET 1.1) user control and then created a button in that user control. Now, when the button is clicked it calls the COM library. Now, I am using
I guess it is because I am trying to access the unmanaged assembly from within a managed assembly. When I use this window user control in a windows application it works fine. It only gives problem when hosted in ASP.NET application.
I don't have any control on the COM library. It is from a third party vendor.
Nov 19, 2007 04:35 PM|jimmy q|LINK
When I use this window user control in a windows application it works fine. It only gives problem when hosted in ASP.NET application.
The problem with using .NET winforms controls in ASP.NET is you will run into many security problems with Code Access Security.
All .NET code to be run by the CLR will be subjected to CAS, and based on where the code has come from or other evidence it will be assigned a set of permissions. In your case the .NET code is from the internet so your .NET CLR CAS will give it the least
permissions so in many cases it would not work at all. Also by using .NET applets you are saying only IE browsers can use your web site.
So unless you have control over the user's computer settings so that you can assign extra permissions to your .NET winforms control, it would be hard for you to get this to work at all.
Dec 04, 2007 11:40 AM|Krammer|LINK
Actually, now I have been able to display the ActiveX control (VB6) in an ASP.NET form. But now, I need to access the methods, properties of the ActiveX control! Any idea how to do that?