2014-05-09 56 views
0

配置錯誤 描述:在處理服務此請求所需的配置文件期間發生錯誤。請查看下面的具體錯誤細節並適當修改您的配置文件。從本地加載項目時出現配置錯誤

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

可能有助於表明,在錯誤中提到的配置文件的行...只是在說' – PhillyNJ

回答

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>