RE: Deploying Microsoft.mshtml.dll

  • Thread starter Thread starter Yan-Hong Huang[MSFT]
  • Start date Start date
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?
!
 
Hi Ken,

You are welcome.

Thanks for participating the community.

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]>
!References: <[email protected]>
<[email protected]>
!Subject: RE: Deploying Microsoft.mshtml.dll
!Date: Wed, 24 Sep 2003 07:10:48 -0700
!Lines: 120
!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: AcOCpada6dLCuBaTQtG8nFpIhSbgCQ==
!Newsgroups: microsoft.public.dotnet.framework
!Path: cpmsftngxa06.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework:54601
!NNTP-Posting-Host: TK2MSFTNGXA11 10.40.1.163
!X-Tomcat-NG: microsoft.public.dotnet.framework
!
!Yaohong,
!
!This is great. Thanks for the info. We packaged it in our
!application directory and that seems to be the best option
!for now.
!
!Ken
!
!>-----Original Message-----
!>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?
!>!
!>
!>.
!>
!
 
Hi Ken,

By the way, I noticed that you changed email address in the second post.
Please notice that using this new email address makes your post shown as
non-managed post.

If you want to create a non-spam email address in the newsgroup, please
refer to:
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

Thanks very much.

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]>
!References: <[email protected]>
<[email protected]>
!Subject: RE: Deploying Microsoft.mshtml.dll
!Date: Wed, 24 Sep 2003 07:10:48 -0700
!Lines: 120
!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: AcOCpada6dLCuBaTQtG8nFpIhSbgCQ==
!Newsgroups: microsoft.public.dotnet.framework
!Path: cpmsftngxa06.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework:54601
!NNTP-Posting-Host: TK2MSFTNGXA11 10.40.1.163
!X-Tomcat-NG: microsoft.public.dotnet.framework
!
!Yaohong,
!
!This is great. Thanks for the info. We packaged it in our
!application directory and that seems to be the best option
!for now.
!
!Ken
!
!>-----Original Message-----
!>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?
!>!
!>
!>.
!>
!
 
Back
Top