Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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
)

Parameters

asmpath

The path for the assembly.

parname

The COM+ partition name.

appname

The COM+ application name.

Exception typeCondition

SecurityException

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

RegistrationException

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

Community Additions

ADD
Show:
© 2015 Microsoft