3 回答

TA贡献1851条经验 获得超5个赞
将我的应用部署到appharbor时,我遇到了同样的问题。它尚不支持.NET 4.5的问题。我做了什么。
将我的项目切换到.NET 4.0配置文件。
卸载的Web API NuGet软件包。
再次安装Web API(Beta)NuGet软件包。
验证.csproj文件包含所有引用的程序集,因此它将始终从Bin文件夹而不是GAC中获取该文件。

TA贡献1780条经验 获得超5个赞
在IIS 6.0上部署先前转换(从.NET 4.5到4.0)的Web应用程序时,我遇到了相同的错误。
在web.config 运行时部分中,我找到了
<dependentAssembly>
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0"/>
</dependentAssembly>
我已经改为
<dependentAssembly>
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-1.0.0.0" newVersion="2.0.0.0"/>
</dependentAssembly>
现在就像魅力一样工作。
- 3 回答
- 0 关注
- 727 浏览
添加回答
举报