This topic has not yet been rated - Rate this topic

Publish.GacRemove Method

Removes an assembly from the global assembly cache.

Namespace:  System.EnterpriseServices.Internal
Assembly:  System.EnterpriseServices (in System.EnterpriseServices.dll)
public void GacRemove(
	string AssemblyPath
)

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.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
I see duplicates posts and can't understand which one is recent.
Why do they have two similat posts but one says that this is supported only in .Net Framwork version 1.1 and other says that this method is supported in versions after 1.1.

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