Add a DLL to the GAC
1. Run the Power Shell console as Administrator.
2. Enter the following PowerShell
Set-location "c:\Folder Path" [System.Reflection.Assembly]::Load("System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a") $publish = New-Object System.EnterpriseServices.Internal.Publish $publish.GacInstall("c:\Folder Path\DLL.dll") iisreset
Remove a DLL from the GAC
1. Run the PowerShell console as Administrator.
2. Enter the following Power Shell
2. Enter the following Power Shell
Set-location "c:\Folder Path" [System.Reflection.Assembly]::Load("System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a") $publish = New-Object System.EnterpriseServices.Internal.Publish $publish.GacRemove("c:\Folder Path\DLL.dll") iisreset
Regards
R Karthikeyan
No comments:
Post a Comment