Can I display Windows user controls inside IE8

I have an outdated application for Windows forms that I would like to display in browsers of users (IE8) users, such as a web application. The approach I was considering was to create a Windows Form Library (dll) and show it in a browser. There are many web pages that tell me how to do this:

But I can’t make it work. I created a simple window management library and built a DLL. I put this in the top level directory on the IIS 7.5 site along with an html file like this:

<html>
   <body>
    <object id='c' classid='http:TestWinCtrlLib.dll#TestWinCtrlLib.UserControl1' height='300' width='400'>
    </object>
  </body>
</html>

My browser displays a 300x400 box with a small picture icon in the upper left corner. At first, IIS refused to service the .dll file giving 403.2 and 401.2 errors, but now I have correctly set the IIS transfer properties, the logs show that it is being served successfully.

2012-05-01 01:28:50 ::1 GET /form.html - 8008 - ::1 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+6.1;+WOW64;+Trident/4.0;+SLCC2;+.NET+CLR+2.0.50727;+.NET+CLR+3.5.30729;+.NET+CLR+3.0.30729;+.NET4.0C;+.NET4.0E) 200 0 0 1
2012-05-01 01:28:50 ::1 GET /TestWinCtrlLib.dll - 8008 - ::1 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+6.1;+WOW64;+Trident/4.0;+SLCC2;+.NET+CLR+2.0.50727;+.NET+CLR+3.5.30729;+.NET+CLR+3.0.30729;+.NET4.0C;+.NET4.0E) 200 0 0 23

, . , , . iexplore cmd, , .

: , Internet Explorer.

  • HKLM\Software\Microsoft.NETFramework\ExposeExceptionsInCOM
  • HKCU\Software\Microsoft.NETFramework\ExposeExceptionsInCOM

...

, Internet Explorer, , . , , , Internet Explorer, , .

, ? , , 2007-2010. , ClickOnce - . , , .

, .Net frameworks 3.5 Client Profile 4.0 Client Profile. , , .

- .

+5
1

. ActiveX, Internet Explorer ( , RDS IE).

: http://technet.microsoft.com/en-us/library/dd647502 (v = ws.10)

+1

All Articles