Wednesday, June 25, 2014

Removing a stubborn assembly from the GAC

Sometimes when removing a assembly from the GAC, you will get an access denied message.  In this case, you'll need to use the gacutil utility to remove the file.  This is installed as part of Visual Studio and can be accessed by opening a Visual Studio Command Prompt.  If the computer you are working with does not have Visual Studio installed, you can copy the tool from a computer that does.  Just stick it in the framework folder:  C:\Windows\Microsoft.NET\Framework\v....

Here is the command to remove the file:

gacutil -u NameOfFileGoesHereWithoutTheExtension

No comments:

Post a Comment