Register dll in GAC RRS feed

  • Question

  • How to register dll in GAC ?
    Monday, December 26, 2016 7:53 PM

All replies

  • Hello,

    Just curious - have you tried search engines - http://tinyurl.com/jf9mf9e

    Dynamics CRM MVP
    Read My blog
    Subscribe for one of my courses

    Tuesday, December 27, 2016 8:34 PM
  • Hi ykumar,

    Please follow following points to uninstall Dll from GAC

    • Run Developer Command prompt
    • Use this command: gacutil /u "XXXXXXX, Version=Z.R.T.U, Culture=neutral, PublicKeyToken=YYYYYY"
    • XXXXXX: is Dll name
    • Z.R.T.U: is Dll version (e.g. Version=
    • YYYYY: is your Dll public token number. You will find this token at folder name which contains your Dll at GAC path. (e.g: PublicKeyToken=6c627d257fdea11f)

    To install new Dll, follow following points

    • For simplicity, copy your Dll to this location (depending on your Visual Studio Version): C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools
    • Run Developer Command prompt
    • Run following command (gacutil /i XXXX.dll)
    • XXXX is your Dll name

    I hope this will help you.

    Wa'el Mohsen

    • Proposed as answer by Wa'el Monday, January 2, 2017 10:31 AM
    Monday, January 2, 2017 10:31 AM
  • I use Powershell, remember to run as administrator

    $getDLL = Get-ChildItem ".\YOURDLLFOLDER" | where{ $_.Extension -like "*.dll" }
    [System.EnterpriseServices.Internal.Publish]$publish = new-object System.EnterpriseServices.Internal.Publish

    foreach ($dll in $getDLL)

    Monday, January 2, 2017 11:06 AM