IComSoapPublisher.RegisterAssembly Method (String)
Registers an assembly for COM interop.
Assembly: System.EnterpriseServices (in System.EnterpriseServices.dll)
Parameters
- AssemblyPath
-
Type:
System.String
The file system path for the assembly.
| Exception | Condition |
|---|---|
| RegistrationException | The input assembly does not have a strong name. |
| SecurityException | A caller in the call chain does not have permission to access unmanaged code. -or- A codebase that does not start with "file://" was specified without the required WebPermission. |
| ArgumentNullException | AssemblyPath is null. |
| FileNotFoundException | AssemblyPath is not found, or a file name extension is not specified. |
| BadImageFormatException | AssemblyPath is not a valid assembly. |
| FileLoadException | An assembly or module was loaded twice with two different evidences, or the assembly name is longer than MAX_PATH characters. |
| InvalidOperationException | A method marked with ComUnregisterFunctionAttribute is not static. -or- There is more than one method marked with ComUnregisterFunctionAttribute at a given level of the hierarchy. -or- The signature of the method marked with ComUnregisterFunctionAttribute is not valid. |
The implementation of RegisterAssembly uses the Assembly Registration tool (Regasm.exe) to register the creatable classes in the assembly. For more information, see Regasm.exe (Assembly Registration Tool).
Available since 1.1