This documentation is archived and is not being maintained.

ComManagedImportUtil.InstallAssembly Method

Installs an assembly into a COM+ application.

Namespace: System.EnterpriseServices.Internal
Assembly: System.EnterpriseServices (in system.enterpriseservices.dll)

public void InstallAssembly (
	string asmpath,
	string parname,
	string appname
public final void InstallAssembly (
	String asmpath, 
	String parname, 
	String appname
public final function InstallAssembly (
	asmpath : String, 
	parname : String, 
	appname : String



The path for the assembly.


The COM+ partition name.


The COM+ application name.

Exception typeCondition


A caller in the call chain does not have permission to access unmanaged code.


The input assembly does not have a strong name.

InstallAssembly calls RegistrationHelper.InstallAssembly, which performs the following steps:

  1. Registration of the assembly.

  2. Generation of a type library.

  3. Registration of the type library.

  4. Installation of the type library under the specified application.

  5. Configuration of the components contained in the type library.

This method requires the caller to have administrative privileges on the local computer.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0