When trying to register a dll file, I get 'gacutil' is not recognized.
Issue Details
When you try registering a DLL or EXE file on your server, you may receive the following error.
gacutil is not recognized gacutil -l ID3TagLibrary.dll gacutil is not recognized as an internal or external command, operable program, or batch file
This error will happen if you are not running it from the location. You will also need the Microsoft SDK installed on the server to use it. SDK Installation on a Windows 2016 Server for the gacutil.exe file to register ID3TagLibrary.dll
Recreate IssueWhen trying to register a file without first opening the location of the file to be used. From your CMD prompt, Type in (Your location; mine is G drive).
G:
:: Next, CD to the folder location.cd InetPub\wwwroot\demo.example.com\Bin
:: Next, run the code to register your file. (This will give the error)
gacutil -iG:\InetPub\wwwroot\demo.example.com\Bin\ID3TagLibrary.dll
Resolve IssueYou will need to navigate to the .NET folder location. From your CMD Prompt, Type in
cd /
:: Click [Enter]:: Next, paste this in.cd"Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.2 Tools":: Next, run the code to register your file.C:\ProgramFiles (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.2 Tools>gacutil -iG:\InetPub\wwwroot\demo.example.com\Bin\ID3TagLibrary.dll
Watch the video on how to install the Windows SDK on your server. SDK Installation on a Windows 2016 Server for the gacutil.exe file to register ID3TagLibrary.dll