Issues with Interop.SHDocVW.dll under Visual Studio 2005

  • Thread starter Thread starter PromisedOyster
  • Start date Start date
P

PromisedOyster

Hi

We have a WinForms application. Embedded in the application is a web
page viewer control using AxInterop.SHDocVW.dll. In our DevStudio
project we have references to AxInterop.SHDocVW.dll and
Interop.SHDocVW.dll Both of these references have CopyLocal set to
true. When I try to load a form that has an AxInterop.SHDocVW.dll, I
get the error:

Could not load file or assembly 'Interop.SHDocVw' or one of its
dependendencies.

When I look at the run directory, I only see AxInterop.SHDocVW.dll. If
I manually place Interop.SHDocVW.dll in the run directory then this
works.

This used to work under VS 2003.

Any ideas?
 
I have issues with this even in .NET 1.1
My project has a dll that is using the Web Browser COM component to
display a page. So, when this dll reference was added to the project,
it added both the AxInterop.SHDocVW.dll and Interop.SHDocVW.dll to the
BIN directory of the project. Now when I try to add the Web Browser
control to another form in the project, it adds both the above Interops
to the OBJ directory of the project. Then I get a runtime error from
the original dll saying System.MissingMethodException Method not found:
Void AxSHDocVw.AxWebBrowser.Navigate(System.String).
Any idea why this is happening and how I can overcome it?
Thanks.
 
Back
Top