配置错误 描述:处理为此请求提供服务所需的配置文件时发生错误。请查看下面的具体错误详细信息并相应地修改配置文件。
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
重新启动我的机器,仍然无法加载我的项目
由于
答案 0 :(得分:0)
将此添加到您的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>
答案 1 :(得分:0)
此API已从.NET Framework 4.0中淘汰 http://msdn.microsoft.com/en-us/library/system.web.mobile.mobilecapabilities%28v=vs.100%29.aspx
尝试将项目框架目标更改为.NET 3.5