Tip of the Day I was trying to install an Assembly into the Global Assembly Cache(GAC) from windows server 2008, and I failed. Update: 17 July 2011 (worked well) as written in comments: You can drag and drop dlls into GAC by changing the Local Security Policy on the Win2008 server. 1. Start >> Run >> write secpol.msc 2. Expand "Local Policies" >> Click "Security Options" 3. Right click on "User Account Control: run all administrators in Admin Approval Mode" , select "Properties" 4. Disable it 5. OK 6. Restart windows ------- Old Approach --------- I tried two approaches and faced those problems 1st approach---> Drag and Drop my assembly from speecific folder to" C:\WINDOWS\assembly" (GAC). problem---> I got this error Access is denied: 'AssemblyFileName.dll'. 2nd approach ---> I tried to install dll using gacutil.exe using the following command cd c:\Program Files\Microsoft SDKs\Windows\v6.0A\bin gacutil /i c:/AssemblyFileName.dll problem---> but I didn't find gacutil.exe under C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin nor C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin nor C:\WINDOWS\system32\dllcache workaround---> I uploaded gacutil from other machine that is runing on windows server 2003 and has gacutil.exe in the following path "C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin ";to the other one that is runing on server 2008. Hope this helps Amira
Advertisement
If you change the Local Security Policy on the Win2008 server (or Win7), you can use the old drag/drop method:
http://blogs.msdn.com/b/mossbiz/archive/2010/06/10/add-an-assembly-to-the-global-assembly-cache-on-windows-server-2008-r2.aspx
Comment by Anonymous — June 18, 2010 @ 11:24 pm
test
Comment by test — July 19, 2010 @ 3:07 pm
change the local sec policy secpol.msc and local policies –> usera ccount control–>disable the admin approval mode. done!!!
Comment by prasad — July 11, 2011 @ 10:22 am