配置错误描述:在处理处理此请求所需的配置文件时发生错误。请查看下面的具体错误细节,并适当修改您的配置文件。
Parser Error Message: Could not load file or assembly 'System.Web.Mobile, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE))源错误:
Line 74:
Line 75: <browserCaps userAgentCacheKeyLength="64">
Line 76: <result type="System.Web.Mobile.MobileCapabilities, System.Web.Mobile, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
Line 77: </browserCaps>
Line 78:
Source File: C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config Line: 76
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18446 也重新启动了我的机器,但是我仍然无法加载我的项目。
谢谢
发布于 2014-05-09 22:04:31
将此添加到web.config中
<compilation debug="false" targetFramework="4.0">
<assemblies>
<add assembly="System.Web.Mobile, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
</assemblies>
</compilation>发布于 2014-05-09 22:12:11
此API已从.NET Framework4.0 http://msdn.microsoft.com/en-us/library/system.web.mobile.mobilecapabilities%28v=vs.100%29.aspx中过时
尝试将项目框架目标更改为.NET 3.5
https://stackoverflow.com/questions/23574576
复制相似问题