Friday, May 10, 2013

ActiveX Control not working .Net 4.5

We recently moved our application from .Net 4.0 to .Net 4.5. After that, our few component which were based on ActiveX component stopped working IE.

After a lot research , we found a solution. As with launch of .Net, Hosting managed controls inside IE is no longer supported out of the box.

Further Details :

Here is one way that you can use if you want to load ActiveX Control in IE 10. 


There is registry key called as "EnableIEHosting". This key needs to be added at two location:

  • HKLM\SOFTWARE\Wow6432Node\Microsoft\.NETFramework

Please create key of type "dword" and set its value to 1 e.g.


Thats it! You ActiveX controls are all set to load in IE 10 on any Windows operating system with .NET 4.5

You can create these entries either using code or simple run a batch file. 

Create Batch File :


; REGEDIT.EXE /S "%~f0"




Copy this content and save it in file ".bat" extension.  No code needed :)

Hope it helps!


  1. Thanks a lot for that post. Proved very helpful.

    I tried the suggested solution and worked just fine for web form application. I wonder if are there are any additional settings to be done for an ASP.Net MVC4 applications. Using the suggested solution, I am still facing the same issue for an MVC4 web application.

    Any help will be much appreciated.


  2. Hi Gitika,

    This is not related to Technologies. Further I'll suggest following way, you can try to develop ActiveX as suggested here []

    Further, install that component and use in your application. Important things to remember, you should have a unique GUID for each class.

  3. Thanks mate, I ran into the same problem and your solution solved the issue

    Many thanks

  4. Thanks alot! This helped me out so much with a problem i had regarding 4.5 messing up for another program.

  5. Worked for me using Midas 8.1 in Windows 7 64 bit enterprise version