Saturday, January 12, 2013

How to add DLL into GAC in window server 2008 ?

Typically we drag and drop a dll  While adding it to GAC. It works for window 2000 and 2003 but in window 2008 it shows an error "Access is Denied".


Through Visual Studio Command Prompt

  1. open visual studio 2010 command prompt as administrator
  2. Type gacutil -i "ur dll path"
OR
 

 Use the gacutil command in window 2008.

 

Step -1
 
   Open the command prompt with 'Run as Administrator'.
 
Step - 2
 
   set the path for the gacutil command 
   >cd C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin
 
Step -3
 
 
  Run the gacutil command
 
  C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin>gacutil.exe -if "path of the dll"

 

No comments:

Post a Comment