I have a C# solution that makes use of Smith Html Editor (I'm developing on the main project which uses this, so I don't know much about this library), which makes a reference to MSHTML. This worked fine until my upgrade to Windows 10 and it can't find MSHTML anymore. I can directly reference the DLL on the GAC folder, and it stops complaining and thus builds, but it's getting some runtime errors related to the editor not instantiating.
After a little research, it turns out that MSHTML is phased out of Windows 10 as it now uses EdgeHTML. Does anyone have any idea how I can go around this?
The solution still works for Windows 7.
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:
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).
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 :)