There is a similar question: Loading .NET UserControls in IE with .NET 4.0 This question is essentially the same, but for .NET 4.5
That question starts with:
I’ve got a legacy app where there’s a UserControl which is used as an activex in a web page loaded in IE. Before .NET 4.0, there were security policies and a MMC console for creating code groups, etc. It seems like that is all gone with .NET 4.0.
After installing .NET 4.5 it seems the workaround is no longer working, and that IE is unable to load any usercontrol. My fear is that this feature is removed altogether. In that case we have some serious rewriting to do before our users can install .NET 4.5
Some notes:
Anybody who has sugestions or information regarding this feature?
thanks
This is documented in the .NET 4.5 Application Compatibility Page on MSDN:
http://msdn.microsoft.com/en-us/library/hh367887.aspx . Hosting managed controls inside IE is no longer supported out of the box (see half-way down under “Web Applications”):
Unfortunately, the information on the registry key appears to be incomplete and wrong:
The setting is actually called “EnableIEHosting”.
It must be located either in the HKCU Hive: HKCU\SOFTWARE\Microsoft\.NETFramework
This was tested on both Windows Server 2008R2 and Windows 8.