Hello,
I have a VS2005 C# / .NET Framework 2.0 application that does some basic automation inside Internet Explorer.
To do this, I identify IE processes and then use IE scripting functionality found in Interop.SHDocVw.dll, generated when adding a reference to Microsoft Internet Controls in Project | Add Reference | COM.
This worked fine on my development system in IE6.
Now that I have installed IE7, this is no longer working. The exact error I get is:
"Retrieving the COM class factory for component with CLSID {9BA05972-F6A8-11CF-A442-00A0C90A8F39} failed due to the following error: 80070002."
This resolves to a "System.IO.FileNotFoundException".
This error occurs in my test application, which consists only of the following line:
SHDocVw.ShellWindows shellWindows = new SHDocVw.ShellWindowsClass();
Interestingly enough, this program works fine on a DIFFERENT computer, on which I have just installed Internet Explorer 7, RC1. I have confirmed that VS2005 has generated the Interop.SHDocVw.dll file, and that it is in the "Release" folder with my EXE. Running this EXE inside a copy of this folder on the other development system works fine, but it continues to crash on my original development system.
Extensive Google searching does not turn up anything useful.
Any help would be appreciated.
Thank you,
--Mike

Crash when using SHDocVw (Ie7 RC1): FileNotFoundException / COM Error 80070002
Klaus Aschenbrenner
Any comments on this one I guess I'm going to have to use one of my MSDN support incidents...