Documentation
Download the latest version
|
Unable to install or run the application, The application requires that MSHTML be installed in the GAC first
An user
3/21/2009 5:02:42 PM
Hi
Thanks for our telephone call earlier today. As mentioned, I’m in a hurry with getting this in order, but I’m really having troubles with registering the MSHTML.DLL, using clickonce.
• First we had MSHTML in references with copy local = true. However, our client get this error msg when starting the app:
• So we tried to register the MSHTML in the first code lines of the app, before the references load:
Shared Sub Main()
Dim si As New System.Diagnostics.ProcessStartInfo("regsvr32", "/i /n " & Environment.CurrentDirectory & "\MSHTML.DLL")
si.UseShellExecute = False
System.Diagnostics.Process.Start(si)
However, I have not sent this to the client yet, because this leads to the following error msg:

- Also, we tried just manually to register MSHTML, writing regsvr32 /i /n MSHTML.dll from the command prompt. However, that also gave the same message as above. (Module was loaded but entry-point not found.)
?xml:namespace>
?xml:namespace>
I’ve been trying to googling this. One place, i read that MSHTML is not possible to register like a normal dll anymore after Internet Explorer 7.
?xml:namespace>
?xml:namespace>
Also, I’m not really sure which mshtml to use. On my computer, I have at least two already, in addition to the one that is provided together with your software.
?xml:namespace>
?xml:namespace>
Our application really needs to be possible to run from all kind of computers (internet explorer 5, 6, 7, firefox, xp, vista)
?xml:namespace>
?xml:namespace>
Really hoping for your help with this.
?xml:namespace>
?xml:namespace>
My msn messenger ID is tor@kiellands.no and my skypeid is torkielland. My telephone number is +47 – 97 79 44 14.
?xml:namespace>
?xml:namespace>
|
Resolution:
- [SpiceLogic Support Technician]
3/21/2009 5:08:37 PM
Problem:
Error in deployment using Click Once. Message : "The application requires that assembly Micrsoft.mshtml Version 7.0.3300.0 be installed in the Global Assembly Cache”
Reason:
Your problem is not about registration problem, rather the problem is raised by Click Once and it is related to GAC.
By default, the publish option will be set to Prerequisite for assemblies stored in the Global Assembly Cache. And Visual Studio 2005 tries to be smart about how to deploy references. If the reference has CopyLocal=true, then the reference will be published with the application, by default. If the reference has CopyLocal=false (which is the default when the reference is installed in the GAC, then the reference will be marked as a prerequisite. This means the assembly must be installed in the client's GAC before the ClickOnce application will install.
Solution:
Change the files in question (Microsoft.mshtml.dll and stdole.dll) from "Prerequisite" to "Include", then republish the project.
|
Resolution:
An user
3/21/2009 10:10:47 PM
Hi Guys
?xml:namespace>
Thank you so much! I didn’t expect this little change to work, but it did. Don’t know why we hadn’t tried this particular combination.
?xml:namespace>
By keeping microsoft.mshtml copy local = true, and by changing the microsoft.mshtml.dll entry in clickonce application files from ”Inclue (auto)” to ”Include”, the app downloaded and ran perfectly on our client computer.
?xml:namespace>
Thanks a lot!
Tor
|
|
|