Monday, November 24, 2008

Fail to add an assembly to GAC on Vista machine

Got the following error when trying to add assembly using a batch file the other day:

Failure adding assembly to the cache: Access denied. You might not have administrative credentials to perform this task.
Contact your system administrator for assistance

That was because the UAC(User Access Control) in Vista. You either need to turn it off, or run cmd as Administrator so you can run the batch file.

No comments:

Post a Comment