Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / June 2005

Tip: Looking for answers? Try searching our database.

Mshtml Deployment

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stefan G. - 17 Jun 2005 15:27 GMT
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.


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.