Link to home
Start Free TrialLog in
Avatar of Eric
EricFlag for Canada

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.Assembly]::Load("System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")
$publish = New-Object System.EnterpriseServices.Internal.Publish
$publish.GacInstall("c:\temp\mscorlib.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.Assembly]::Load("System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")
$publish = New-Object System.EnterpriseServices.Internal.Publish
$publish.GacInstall("c:\temp\mscorlib.dll")

GAC    Version        Location                                                                                                                                          
---    -------        --------                                                                                                                                          
True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_64\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll  

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
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Eric

ASKER

Hi Eric,

.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.CompareInfo m_SortVersion not found

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.
are you sure your project is .Net or could it be Mono? When googling your error, there are references to Mono!
Avatar of Eric

ASKER

Hi

It is an .NET project actually
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial