Wednesday, September 30, 2015

Copy GAC Files from One Server

In order to copy GAC files (Assembly .dll files) from one server to another follow the following steps:

1. on the CMD run the command:

    regsvr32 /u C:\windows\Microsoft.Net\Framework\v2.0.50727/shfusion.dll

This command will Create the GAC files into Folders where you can view the dll file.

2. Open the folder C:\Windows\assembly\GAC_MSIL. this folder contains all the assembly files as folders with dll file inside it.

3. Copy the Folder you need into the remote server (New Server you want to transfer the assembly to).

4. Copy the dll file to C:\ drive; for example: Microsoft.Web.Media.SessionHelper.dll

4. Open the Visual Studio CMD and write down the following command:

     gacutil /i C:\Microsoft.Web.Media.SessionHelper.dll and press enter.

If you got the message: Assembly successfully added to the cache, then you have successfully transferred the gac file from one server to another.

No comments:

Post a Comment