Last post Jun 06, 2017 01:32 PM by pmwhelan17
Jun 06, 2017 01:13 PM|pmwhelan17|LINK
I've two servers and I can install a ddl fine on one but not the other.
PS C:\temp\gacutil\gacutil.exe> .\gacutil.exe /i .\my.dll Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.33440 Copyright (c) Microsoft Corporation. All rights reserved.
Assembly successfully added to the cache
PS C:\temp> .\gacutil.exe /i .\my.dll Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.1 Copyright (c) Microsoft Corporation. All rights reserved.
Failure adding assembly to the cache: This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
How can I fix this?
Jun 06, 2017 01:23 PM|PatriceSc|LINK
Note that this tool shows version 4.0.30319.33440 on one server and an older 4.0.30319.1 version on the other server.
It could be :
- as it seems you have done a copy of gacutil make sure to copy the version from the correct folder so that you have the same version in both cases (and that it matches the .NET version you are using)
- at worst, it could be that you don't have yet the correct .NET Framework version installed on the 2nd server
Edit: make sure also using the GAC option is your best bet. It's worth if it really shared by a high number of applications and if it is stable enough to be rarely updated. Else it can be better to still ship it as part of each application.
Jun 06, 2017 01:32 PM|pmwhelan17|LINK
Many thanks that was it.
Wrong version of gacutil on other server.