Failure adding assembly to the cache: Access denied.

I was working on a project using Visual Studio.
I had a post build event that updates my assembly in the Global Assembly cache.
I noticed that when i complie my project i get Access denied to the GAC ans sometimes it runs ok.
After doing some research i came across this solution at
global cache security
which suggested using the command  from cmd:

CACLS %WINDIR%\assembly /e /t /p [DOMAIN|MACHINENAME]\useraccount:R
 and that did work for me ..

But  you can see some other suggestions here at  this post
Although the post suggested disabling index services which some people said it worked for them..

hm....

posted @ Tuesday, May 06, 2008 8:07 PM

Print

Comments on this entry:

# re: Failure adding assembly to the cache: Access denied.

Left by Sir at 9/19/2008 1:23 AM
Gravatar
Brilliant idea!

My idea was the same but I was not sure how to do it. I work on it and find a solution


For vista I use:

icacls c:\windows\assembly /grant my_windows_user_name:F /T /C

# re: Failure adding assembly to the cache: Access denied.

Left by Dan at 10/30/2009 10:10 AM
Gravatar
FYI : This same error message also comes up if you are replacing dll's that are currently in use by components or services.

Your comment:



 (will not be displayed)


 
 
 
 

Live Comment Preview:

 
«November»
SunMonTueWedThuFriSat
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345