Publish.GacRemove Method
Removes an assembly from the global assembly cache.
Assembly: System.EnterpriseServices (in System.EnterpriseServices.dll)
Parameters
- AssemblyPath
- Type: System.String
The file system path for the assembly.
Implements
IComSoapPublisher.GacRemove(String)| Exception | Condition |
|---|---|
| SecurityException |
A caller in the call chain does not have permission to access unmanaged code. -or- The caller does not have path discovery permission. |
| ArgumentNullException |
AssemblyPath is null. |
| ArgumentException |
AssemblyPath is empty. |
| FileNotFoundException |
AssemblyPath is not found. |
| FileLoadException |
An assembly or module was loaded twice with two different evidences. |
| BadImageFormatException |
AssemblyPath is not a valid assembly. |
-
SecurityPermission
for the ability to access unmanaged code. Associated enumeration: SecurityPermissionFlag.UnmanagedCode
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
When they update the documentation, it would be good to have date atleast. See the other link: http://msdn.microsoft.com/en-us/library/system.enterpriseservices.internal.publish.unregisterassembly(VS.71).aspx
- 7/8/2010
- rockthis
- 7/24/2010
- Thomas Lee