Groups | Blog | Home
all groups > dotnet sdk > may 2006 >

dotnet sdk : Gacutil returns Access Denied when Solution is built


Arjen Stobbe
5/22/2006 2:37:01 PM
This issue is driving me nuts... but i really can't seem to find a cause for
this, let alone a solution.

I have several related projects in a solution file, and some have the
following Post-build event:

"C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\gacutil.exe" /u
"$(TargetFileName)"
copy "$(TargetPath)" D:\Release\WINDOWS\assembly /Y
"C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\gacutil.exe" /i
"$(TargetPath)"

When i build a specific project the commands will execute just fine, but
when i build the solution it will fail:

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

However, every now and then it will succeed to build all projects.

Any help is greatly appreciated...

Arjen Stobbe
5/23/2006 12:48:02 AM
Also: When i limit the Post-build events to copying the assemblies to a
general Release folder, and update the GAC from a MakeFile project i get the
same problem every now and then.

Could the assemblies be in use? I stop IIS before i try updating the GAC ...

Am i overlooking something incredibly obvious every developer should know ??

[quoted text, click to view]
AddThis Social Bookmark Button