** Urgent Help Required **

K

Karl T

Hi
I have a Ship that needs to get a peice of software installed prior to
entering US Waters on 4th October 2005. Without it the US Coast Guard will
not allow the Ship to enter US Waters.

PC
W2K Opsys Fully sp'd
MS Office 2K

Software
dotnetfx1.1.exe
Infopath 2003 (11.6357.6360) SP1
Office2003SP1-kb842532-fullfile-enu.exe

Problem, when I try to install the USCG software I get the following error
"Error writing to file: Microsoft.mshtml.dll. Verify that you have access
to that directory"

I am logged on as Admin so I have full rights, I then tried to search for
this MSHTML.dll file but cannot locate it.

Has anyone experienced this mshtml.dll error before and how did you resolve
it.

Thanks in advance, a very stressed out person!
Karl
 
F

Franck Dauché

Hi Karl,

the Microsoft.mshtml.dll should be deployed in the GAC of your machine
(C:\WINDOWS\assembly) and then registered using a command such as:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\regasm.exe
C:\WINDOWS\assembly\Microsoft.mshtml.dll
Try to do it manually to see if it helps.

Franck Dauché
 
K

Karl T

Hi Frank

Thanks for your help, but unfortunately I am not a programmer, therefore can
you be a little more specific on the following
the Microsoft.mshtml.dll should be deployed in the GAC of your machine
(C:\WINDOWS\assembly) and then registered using a command such as:
Do I need to copy microsoft.mshtml.dll to the C:\windows\assembly ?
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\regasm.exe
Do I then run the above in the cmd prompt?
C:\WINDOWS\assembly\Microsoft.mshtml.dll
Again do I run this in the cmd prompt?


Thanks in advance, most appreciated.
Karl
 
F

Franck Dauché

Yes, you need to copy that file.
Next, you create a small batch file in notepad and save it with the
extension .bat. This way, if you made a typo, etc., you can edit back the
batch file and execute it again.
In the batch file, type the following two lines:

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\gacutil.exe /i
C:\WINDOWS\assembly\Microsoft.mshtml.dll

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\regasm.exe
C:\WINDOWS\assembly\Microsoft.mshtml.dll

Make sure the path for the DotNet Frmawork is the right one on your
machine(C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322). Also make sure that
the 2 files gacutil.exe and regasm.exe are in there!

Franck
 
K

Karl T

Firstly Francke. Many thanks for your assistance so far, it is appreciated.

I have created the bat file and tried running but I get the following error.


C:\Documents and
Settings\Administrator\Desktop>C:\WINNT\Microsoft.NET\Framework\v1.1.4322\gacutil.exe /i c:\WINNT\system32\.micro
soft.mshtml.dll

Microsoft (R) .NET Global Assembly Cache Utility. Version 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

Failure adding assembly to the cache: The system cannot find the file
specified.


C:\Documents and
Settings\Administrator\Desktop>C:\WINNT\Microsoft.NET\Framework\v1.1.4322\regasm.exe C:\WINNT\system32\microsoft.
mshtml.dll
Microsoft (R) .NET Framework Assembly Registration Utility 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

RegAsm error: Failed to load 'C:\WINNT\system32\microsoft.mshtml.dll'
because it is not a valid .NET assembly

C:\Documents and Settings\Administrator\Desktop>pause
Press any key to continue . . .

As this machine is a W2K box i changed from windows to winnt. Also I
changed the path to c:\winnt\system32 as I cannot get the
microsoft.mshtml.dll to copy into the c:\winnt\assembly file in order to run
as per your last.

You further assistance would be most appreciated.

Thanks.
Karl
 
F

Franck Dauché

Hi Karl,

The microsoft.mshtml.dll file needs to be in the GAC, (c:\winnt\assembly) in
your case (won't work anywhere else). Did you try to drag-and-drop the file
into that directory? Why can't you copy it? How do you do it, and what
message do you get?

Franck Dauché
 
Top