標籤: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 解析錯誤的問題