无法从程序集'mscorlib,Version = 4.0.0.0,Culture = neutral加载'System.Threading.AsyncLocal`1'类型,

问题描述 投票:0回答:1

在Visual Studio 2017中有一个API,但当我将它上传到Windows Server 2012中的服务器时,它说:无法从程序集'mscorlib,Version = 4.0.0.0,Culture中加载'System.Threading.AsyncLocal`1'类型=中立,PublicKeyToken = b77a5c561934e089'。

enter image description here

c# .net api visual-studio-2017 iis-8
1个回答
1
投票

有可能是Windows 2012的服务器没有为System.Threading.AsyncLocal(.Net 4.6及更高版本)安装最小的.Net框架Dll。如果您的服务器没有任何更改,则可能只安装了.Net 4.5。

© www.soinside.com 2019 - 2024. All rights reserved.