close

更新專案元件版本後,結果直接出現

無法載入檔案或組件 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' 或其相依性的其中之一。 找到的組件資訊清單定義與組件參考不符。 (發生例外狀況於 HRESULT: 0x80131040)

這樣的訊息....[.NET]解決Web.config中<runtime>的<

 

因為Web.config中<runtime>的<assemblyBinding>元素裡的元件版本還是舊的,導致對應不到參考中的元件。

這時候只需要使用Nuget執行下列語法:

Get-Project –All | Add-BindingRedirect

Enter鍵按下,Web.config裡的元件版本就會更新啦!

 

arrow
arrow
    全站熱搜

    Smïlë 發表在 痞客邦 留言(0) 人氣()