json 解析錯誤的問題

來源:互聯網
上載者:User

標籤:soft   splay   sys   key   引用   san   ble   path   server   

“/”應用程式中的伺服器錯誤。 未能負載檔案或程式集“Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed”或它的某一個依賴項。找到的資訊清單定義與程式集引用不匹配。 (異常來自 HRESULT:0x80131040)

說明: 執行當前 Web 請求期間,出現未處理的例外狀況。請檢查堆疊追蹤資訊,以瞭解有關該錯誤以及代碼中導致錯誤的出處的詳細資料。 

異常詳細資料: System.IO.FileLoadException: 未能負載檔案或程式集“Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed”或它的某一個依賴項。找到的資訊清單定義與程式集引用不匹配。 (異常來自 HRESULT:0x80131040)

源錯誤: 程式集載入跟蹤: 下列資訊有助於確定程式集“Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed”未能載入的原因。

=== 預綁定狀態資訊 ===日誌: DisplayName = Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed (Fully-specified)日誌: Appbase = file:///G:/code/IronFuryServer/Route/日誌: 初始 PrivatePath = G:\code\IronFuryServer\Route\bin調用程式集: System.Net.Http.Formatting, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35。===日誌: 此綁定從 default 載入上下文開始。日誌: 正在使用應用程式設定檔: G:\code\IronFuryServer\Route\web.config日誌: 使用主機設定檔: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet.config日誌: 使用 C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config 的電腦設定檔。日誌: 策略後引用: Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed日誌: 嘗試下載新的 URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/root/24fb3432/4a6a283a/Newtonsoft.Json.DLL。日誌: 嘗試下載新的 URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/root/24fb3432/4a6a283a/Newtonsoft.Json/Newtonsoft.Json.DLL。日誌: 嘗試下載新的 URL file:///G:/code/IronFuryServer/Route/bin/Newtonsoft.Json.DLL。警告: 比較程式集名稱時發生不匹配: 主要版本錯誤: 未能完成程式集的安裝(hr = 0x80131040)。探測終止。

解決辦法,需要在config裡添加

<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" />
<bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" />
</dependentAssembly>

json 解析錯誤的問題

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.