AxSHDocVw.AxWebBrowser && Microsoft.mshtml

  • Thread starter Thread starter Zürcher See
  • Start date Start date
Z

Zürcher See

I've wrote an application that use internet explorer to download some html
page, to get the document I use the Microsoft.mshtml library.

mshtml.IHTMLDocument3
Document=(mshtml.IHTMLDocument3)this.WebBrowser.Document;

This program work fine under windows xp, but under windows 2000 i gives me
the following error:

File or assembly name Microsoft.mshtml, or one of its dependencies, was not
found.

Someone can help? Thank's
 
Zürcher,

I don't think it has to do with 2000, but rather, the version of
internet explorer. In previous versions, the IHtmlDocument3 interface might
not have been available (I do not know when it was introduced).

Also, the library id might have changed, because in previous versions of
internet explorer, the type library information was contained in MSHTML.DLL,
but now, it is in MSHTML.TLB. This could be a cause of the problem as well.

Hope this helps.
 
You should have the files

axshdocvw.dll
microsoft.mshtml.dll (or mshtml.dll)
shdocvw.dll

in your debug/release directory ...

Try to distribute them with your app then it should work! If you don't
have them into your app directory look at the framework dirs for the
files.


Hope this will help you




Matthias
 
Thanks, the Microsoft.mshtml.dll was missing.
I had thought that I did not have to copy it since it wasn't in the release
directory
 
Back
Top