1 <startup useLegacyV2RuntimeActivationPolicy="true"> 2 <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/> 3 </startup>
在WebConfig的启动项设置Startup节点加入:
useLegacyV2RuntimeActivationPolicy="True"