Eric
asked on
Registering DLL
Hi,
I am trying to register mscorlib.dll that is copied from Windows 2003 R2 box to Windows 2012 R2 box. on windows 2012 R2 , there is already mscorlib with different version number.
I used the following powershell code
Set-location "c:\temp"
[System.Reflection.Assembl y]::Load(" System.Ent erpriseSer vices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d 50a3a")
$publish = New-Object System.EnterpriseServices. Internal.P ublish
$publish.GacInstall("c:\te mp\mscorli b.dll")
after I run the command, I don't see any new mscorlib in c:\windows\assembly folder on Windows 2012. All I got the following output.
PS C:\temp> Set-location "c:\temp"
[System.Reflection.Assembl y]::Load(" System.Ent erpriseSer vices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d 50a3a")
$publish = New-Object System.EnterpriseServices. Internal.P ublish
$publish.GacInstall("c:\te mp\mscorli b.dll")
GAC Version Location
--- ------- --------
True v4.0.30319 C:\Windows\Microsoft.Net\a ssembly\GA C_64\Syste m.Enterpri seServices \v4.0_4.0. 0.0__b03f5 f7f11d50a3 a\System.E nterpriseS ervices.dl l
Can someone tell me what is wrong here
note: I can not use gacutil as i dont visual studio installed on the server and I can not install anything
I am trying to register mscorlib.dll that is copied from Windows 2003 R2 box to Windows 2012 R2 box. on windows 2012 R2 , there is already mscorlib with different version number.
I used the following powershell code
Set-location "c:\temp"
[System.Reflection.Assembl
$publish = New-Object System.EnterpriseServices.
$publish.GacInstall("c:\te
after I run the command, I don't see any new mscorlib in c:\windows\assembly folder on Windows 2012. All I got the following output.
PS C:\temp> Set-location "c:\temp"
[System.Reflection.Assembl
$publish = New-Object System.EnterpriseServices.
$publish.GacInstall("c:\te
GAC Version Location
--- ------- --------
True v4.0.30319 C:\Windows\Microsoft.Net\a
Can someone tell me what is wrong here
note: I can not use gacutil as i dont visual studio installed on the server and I can not install anything
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
are you sure your project is .Net or could it be Mono? When googling your error, there are references to Mono!
ASKER
Hi
It is an .NET project actually
It is an .NET project actually
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
.NET frameworks already installed. I am moving application from IIS 6 to IIS 8.5.
When I moved the application , i am having
membername 'Sytem.Globaization.Compar
error message when I tried to credential into one site.
I was told that that might be caused by this dll. I compare and saw that dll version are not the same between Windows 2003 and winsows 2012 server. I am trying to match the dll version.