AxSHDocVw.AxWebBrowser && Microsoft.mshtml

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
 
N

Nicholas Paldino [.NET/C# MVP]

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.
 
M

Matthias Kwiedor

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
 
Z

Zürcher See

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top