Y
Yan-Hong Huang[MSFT]
Hello Ken,
Thanks for posting in the group.
From MSDN, we could see that:
Note All post-Beta 2 releases of the .NET Framework SDK now include a
primary interop assembly for Mshtml.dll. However, any organization that
distributes the .NET Framework through the .NET Framework Redistributable
must not depend on the existence of this interop assembly on clients. The
assembly, named Microsoft.Mshtml.dll, can be found in the following
location
%INSTALL_DIR%\Microsoft.NET\Primary Interop
where %INSTALL_DIR% is the installation directory chosen for the .NET
Framework. You can reference this from your projects and deploy your
application on any system on which the .NET Framework SDK is pre-installed.
In fact, Primary interop assemblies are redistributed to end users as part
of a .NET Framework application. Other than requiring that each relevant
COM type library be registered on a user's computer, the deployment of an
application containing one or more primary interop assemblies is the same
as for any .NET-based application.
The Microsoft.mshtml.dll is a PIA (Primary Interop Assembly), and it is
registered in GAC. VS .NET will use PIA instead of the Alternate Interop
Assembly automatically.
You can still use XCOPY to deploy it with your application. Deploy it in
the same folder of the application will be OK. Microsoft PIAs can be found
in the following folder:
\Program Files\Microsoft.NET\Primary Interop Assemblies
For more information about PIA, check the following article:
http://msdn.microsoft.com/library/en-us/dndotnet/html/whypriinterop.asp
For more information about redistributing application that uses PIA, please
check the following article:
321688 HOW TO: Deploy a Visual Basic .NET Application That Uses ADO Interop
http://support.microsoft.com/?id=321688
Does that answer your question?
Best regards,
Yanhong Huang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
!Content-Class: urn:content-classes:message
!From: "Ken" <[email protected]>
!Sender: "Ken" <[email protected]>
!Subject: Deploying Microsoft.mshtml.dll
!Date: Tue, 23 Sep 2003 08:47:28 -0700
!Lines: 12
!Message-ID: <[email protected]>
!MIME-Version: 1.0
!Content-Type: text/plain;
! charset="iso-8859-1"
!Content-Transfer-Encoding: 7bit
!X-Newsreader: Microsoft CDO for Windows 2000
!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
!Thread-Index: AcOB6f2vc4XMF2ixQouR7qhnDoo2NQ==
!Newsgroups: microsoft.public.dotnet.framework
!Path: cpmsftngxa06.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework:54466
!NNTP-Posting-Host: TK2MSFTNGXA11 10.40.1.163
!X-Tomcat-NG: microsoft.public.dotnet.framework
!
!How do I properly deploy Microsoft.mshtml.dll with my
!application?
!
!I developed an application that has, in one of its forms,
!a web browser control. I use the HTML DOM to manipulate
!its contents. On my development machine,
!Microsoft.mshtml.dll is located in C:\Program
!Files\Microsoft .NET. However, installation of the .NET
!framework on the target machine does not install this
!Interop assembly.
!
!Any thoughts?
!
Thanks for posting in the group.
From MSDN, we could see that:
Note All post-Beta 2 releases of the .NET Framework SDK now include a
primary interop assembly for Mshtml.dll. However, any organization that
distributes the .NET Framework through the .NET Framework Redistributable
must not depend on the existence of this interop assembly on clients. The
assembly, named Microsoft.Mshtml.dll, can be found in the following
location
%INSTALL_DIR%\Microsoft.NET\Primary Interop
where %INSTALL_DIR% is the installation directory chosen for the .NET
Framework. You can reference this from your projects and deploy your
application on any system on which the .NET Framework SDK is pre-installed.
In fact, Primary interop assemblies are redistributed to end users as part
of a .NET Framework application. Other than requiring that each relevant
COM type library be registered on a user's computer, the deployment of an
application containing one or more primary interop assemblies is the same
as for any .NET-based application.
The Microsoft.mshtml.dll is a PIA (Primary Interop Assembly), and it is
registered in GAC. VS .NET will use PIA instead of the Alternate Interop
Assembly automatically.
You can still use XCOPY to deploy it with your application. Deploy it in
the same folder of the application will be OK. Microsoft PIAs can be found
in the following folder:
\Program Files\Microsoft.NET\Primary Interop Assemblies
For more information about PIA, check the following article:
http://msdn.microsoft.com/library/en-us/dndotnet/html/whypriinterop.asp
For more information about redistributing application that uses PIA, please
check the following article:
321688 HOW TO: Deploy a Visual Basic .NET Application That Uses ADO Interop
http://support.microsoft.com/?id=321688
Does that answer your question?
Best regards,
Yanhong Huang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
!Content-Class: urn:content-classes:message
!From: "Ken" <[email protected]>
!Sender: "Ken" <[email protected]>
!Subject: Deploying Microsoft.mshtml.dll
!Date: Tue, 23 Sep 2003 08:47:28 -0700
!Lines: 12
!Message-ID: <[email protected]>
!MIME-Version: 1.0
!Content-Type: text/plain;
! charset="iso-8859-1"
!Content-Transfer-Encoding: 7bit
!X-Newsreader: Microsoft CDO for Windows 2000
!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
!Thread-Index: AcOB6f2vc4XMF2ixQouR7qhnDoo2NQ==
!Newsgroups: microsoft.public.dotnet.framework
!Path: cpmsftngxa06.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework:54466
!NNTP-Posting-Host: TK2MSFTNGXA11 10.40.1.163
!X-Tomcat-NG: microsoft.public.dotnet.framework
!
!How do I properly deploy Microsoft.mshtml.dll with my
!application?
!
!I developed an application that has, in one of its forms,
!a web browser control. I use the HTML DOM to manipulate
!its contents. On my development machine,
!Microsoft.mshtml.dll is located in C:\Program
!Files\Microsoft .NET. However, installation of the .NET
!framework on the target machine does not install this
!Interop assembly.
!
!Any thoughts?
!