MSHTML DLL on Windows 10 MSHTML DLL on Windows 10 wpf wpf

MSHTML DLL on Windows 10


I just created a blog post on this issue. The problem is that the Microsoft.mshtml.dll assembly in the Global Assembly Cache becomes unregistered from ActiveX during the upgrade process. To fix this issue, it is necessary to run "regasm" on the assembly:

  1. Open an instance of "Developer Command Prompt for VS2013" (or whatever version of Visual Studio you happen to be using). Run it as Administrator by right-clicking the icon and selecting, "Run as Administrator."
  2. Navigate to "C:\Windows\assembly\GAC\Microsoft.mshtml\7.0.3300.0__b03f5f7f11d50a3a." It is possible your path will vary. To verify, go to "C:\Windows\assembly\GAC\Microsoft.mshtml" and type "dir."
  3. Once you are in the correct path, type regasm Microsoft.mshtml.dll


I had the exact same problem. Adding the c:\windows\system32\mshtml.tlb worked. Note it's NOT the dll, but the tlb. Thank you so much for asking this question and thank you Hans, for the answer :)


Great solution Aron!

In my case it was:

CD C:\Program Files (x86) [Enter]CD Microsoft Visual Studio\2019 [Enter]CD Community\Common7\IDE\PublicAssemblies [Enter]gacutil -i Microsoft.mshtml.dll [Enter]exit

(I wrote these on seperate lines since word-wrap made it confusing to read).