Embedding Winform control in asp.net page
Posted on 2011-04-26
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.