Hi,
we need to deploy Microsoft.mshtml and tried as follows:
* install the assembly into the gac (installshield)
* registering the assembly (installshield - COM interop)
This works for users who executed the install-program for our software. All
other users (including admins) get an "invalid cast"-exception when executing
the following command:
mshtml.HTMLDocument doc = (mshtml.HTMLDocumentClass)_AxWebBrowser.Document;
It seems as if the registration-step wasn't executed completely?!
Is it possible to detect, whether the install/registration-process for
Microsoft.mshtml was successful? It's shown in the assembly cache list; The
registry entries (which can also be generated with regasm /regfile) are
present, too.
Could this be a security-problem? (Only the registry-entry-owner can access
or something like that)
Is there any standard-path to install the Microsoft.mshtml.dll - file to?
(Like a common shared folder; Or should we store it in our app-folder?)
Thanks in advance,
Stefan
"Peter Huang" [MSFT] - 18 Jun 2005 04:14 GMT
Hi
Do you use the .NET Setup Project to deploy the mshtml?
If so, have you tried to include the mshtml in your project, and the .NET
setup project will check the dependency to including the mshtml.dll.
And you can set to deploy the mshtml into GAC and check the register to
true.
Deploying an Interop Application
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
l/cpcondeployinginteropapplication.asp
Here is a general link about deploy .net application.
Deploying Applications
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
l/cpconDeployingNETFrameworkApplications.asp
Also for .NET deployment issue, we have specifed newgroup for that.
microsoft.public.vstudio.setup
microsoft.public.vsnet.setup
Best regards,
Peter Huang
Microsoft Online Partner Support

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.