Link to home
Start Free TrialLog in
Avatar of nicksbell
nicksbell

asked on

Embedding Winform control in asp.net page

Hi, has anyone managed to successfully embed a Winform control in a browser/asp.net page using .Net v4.0.  I have had this working for years in a .Net v1.1 app using the <object> element.  I am now trying to upgrade to .Net v4.0 but I can't get the winform control to display.  I appreciate that I should really be upgrading  the control to something like silverlight but there is a lot of code/functionality and as an interim solution I just want to host the winform control in the asp.net page as I did before.

To get it working in v1.1 I had to assign full trust to the local intranet zone (the web app is running in an intranet) using the .Net configuration wizard.  To test that my problem was a security issue I could disable code access security using 'caspol -s off' command.  Neither of these exist in .Net v4 so I am a bit stumped.

Any help would be appreciated.

Thanks
Avatar of radcaesar
radcaesar
Flag of India image

Ots rolled out and different in 4.0.

For ur ref http://www.codeproject.com/KB/aspnet/ASP_NET4_0ClientIDFeature.aspx 
Avatar of nicksbell
nicksbell

ASKER

I am not sure how you reply helps me.  The linked article seems to be about ClientIDs on WebForms.  My issue relates to embedding WinForms in a web page.
ASKER CERTIFIED SOLUTION
Avatar of nicksbell
nicksbell

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I now have this working in .Net v3.5 which confirms the problem was v4 not allowing it.