Hi,
I'm working on a deployment for a BizTalk 2013 application. I'm developing on a Windows 2012 machine.
When I try to deploy my solution, the DeployComponents target fails with the error 'This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.'. As you can see below, the 2.0 gacutil is being used here whereas all my assemblies are built for .NET 4.0. The task GetFrameworkPath apparently comes up with 2.0 instead of 4.0. Where is the code for the GetFrameworkPath task located, I couldn't find it in the DeploymentFramework.BuildTasks source code. I did install the latest version of the BTDF.
Any tips on why the wrong .NET Framework version is being used?
Using .NET Framework Install Path 'C:\Windows\Microsoft.NET\Framework\v2.0.50727'.
Target DeployComponents:
Nils Gruson
I'm working on a deployment for a BizTalk 2013 application. I'm developing on a Windows 2012 machine.
When I try to deploy my solution, the DeployComponents target fails with the error 'This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.'. As you can see below, the 2.0 gacutil is being used here whereas all my assemblies are built for .NET 4.0. The task GetFrameworkPath apparently comes up with 2.0 instead of 4.0. Where is the code for the GetFrameworkPath task located, I couldn't find it in the DeploymentFramework.BuildTasks source code. I did install the latest version of the BTDF.
Any tips on why the wrong .NET Framework version is being used?
Using .NET Framework Install Path 'C:\Windows\Microsoft.NET\Framework\v2.0.50727'.
Target DeployComponents:
Deploying components to GAC...
"D:\BizTalkApplications\ESB\1.0\Deployment\Framework\DeployTools\gacutil.exe" /i "..\ESB.Utilities.dll"
Microsoft (R) .NET Global Assembly Cache Utility. Version 2.0.50727.42
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.
Regards,Nils Gruson