mshtml.dll error!?!?!

  • Thread starter Thread starter cbuck
  • Start date Start date
C

cbuck

I am trying to use the following code snipet that
requires the msthml.dll:

IHTMLDocument2 hDoc2 = (IHTMLDocument2)WBrowser.Document;

string sHTML = "<HTML><BODY bgcolor=red>This is a
test.</BODY></HTML>";

object[] psa = {sHTML};
hDoc2.write(psa);

This will write html data into the IHTMLDocument2
object. On a system that has .Net Dev Studio, everything
works great. But when I try to run it on a system that
does not, the application locks up becuase of this code.

On systems with Dev Studio the mshtml.dll has a version
of 6.0.2800.1170, and the systems without dev studio have
6.0.2800.1106.

How do I update the systems to have the newer
6.0.2800.1170 version of this .dll? All systems have the
same framework version... so what do I do? I even tried
the regsvr32.dll but that didnt work. Any ideas? Thanks
in advance.

Craig Buck.
 
It depends on which mshtml.dll you're referring to, but it appears that
you're talking about the version that is a wrapper object so that it is
usable in .net.

If so, it isn't under source control in the GAC so it's just a matter of
either copying it into the gac in your install or putting it in your
applicatin's directory during install.

If you're talking about the version that resides in the system32 directory
on your machine, that one can't be touched. The only way to update that, is
to require IE to be upgraded.

James Hancock
 
I tried to dump the mshtml.dll (the newer version) into
the same directory as the application, and it didn't
work. I added this .dll to my project by selecting Add
Reference and selected it from the .Net tab.

We are using IE 6.0 with service pack 1.

I am guessing that I am using the mshtml.dll in the
system32 software. We are using Internet Explorer 6.0
-----Original Message-----
It depends on which mshtml.dll you're referring to, but it appears that
you're talking about the version that is a wrapper object so that it is
usable in .net.

If so, it isn't under source control in the GAC so it's just a matter of
either copying it into the gac in your install or putting it in your
applicatin's directory during install.

If you're talking about the version that resides in the system32 directory
on your machine, that one can't be touched. The only way to update that, is
to require IE to be upgraded.

James Hancock

I am trying to use the following code snipet that
requires the msthml.dll:

IHTMLDocument2 hDoc2 = (IHTMLDocument2) WBrowser.Document;

string sHTML = "<HTML><BODY bgcolor=red>This is a
test.</BODY></HTML>";

object[] psa = {sHTML};
hDoc2.write(psa);

This will write html data into the IHTMLDocument2
object. On a system that has .Net Dev Studio, everything
works great. But when I try to run it on a system that
does not, the application locks up becuase of this code.

On systems with Dev Studio the mshtml.dll has a version
of 6.0.2800.1170, and the systems without dev studio have
6.0.2800.1106.

How do I update the systems to have the newer
6.0.2800.1170 version of this .dll? All systems have the
same framework version... so what do I do? I even tried
the regsvr32.dll but that didnt work. Any ideas? Thanks
in advance.

Craig Buck.


.
 
Check to make sure the old version isn't in the GAC. Although it should use
the one in the app's folder first...

The version that you're using is the same version I have for Framework V1.1.
Make sure that the client machine has V1.1 installed and it isn't a beta
version or something.

You might also try Tim Anderson's excellent HTML Editor which has all kinds
of code in it and see if it is working for you.

http://www.itwriting.com/htmleditor/index.php


cbuck said:
I tried to dump the mshtml.dll (the newer version) into
the same directory as the application, and it didn't
work. I added this .dll to my project by selecting Add
Reference and selected it from the .Net tab.

We are using IE 6.0 with service pack 1.

I am guessing that I am using the mshtml.dll in the
system32 software. We are using Internet Explorer 6.0
-----Original Message-----
It depends on which mshtml.dll you're referring to, but it appears that
you're talking about the version that is a wrapper object so that it is
usable in .net.

If so, it isn't under source control in the GAC so it's just a matter of
either copying it into the gac in your install or putting it in your
applicatin's directory during install.

If you're talking about the version that resides in the system32 directory
on your machine, that one can't be touched. The only way to update that, is
to require IE to be upgraded.

James Hancock

I am trying to use the following code snipet that
requires the msthml.dll:

IHTMLDocument2 hDoc2 = (IHTMLDocument2) WBrowser.Document;

string sHTML = "<HTML><BODY bgcolor=red>This is a
test.</BODY></HTML>";

object[] psa = {sHTML};
hDoc2.write(psa);

This will write html data into the IHTMLDocument2
object. On a system that has .Net Dev Studio, everything
works great. But when I try to run it on a system that
does not, the application locks up becuase of this code.

On systems with Dev Studio the mshtml.dll has a version
of 6.0.2800.1170, and the systems without dev studio have
6.0.2800.1106.

How do I update the systems to have the newer
6.0.2800.1170 version of this .dll? All systems have the
same framework version... so what do I do? I even tried
the regsvr32.dll but that didnt work. Any ideas? Thanks
in advance.

Craig Buck.


.
 
Back
Top