第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

無法加載文件或程序集'Newtonsoft.Json,Version = 4.5.0.0

無法加載文件或程序集'Newtonsoft.Json,Version = 4.5.0.0

紅顏莎娜 2019-08-26 17:51:09
無法加載文件或程序集'Newtonsoft.Json,Version = 4.5.0.0,Culture = neutral,PublicKeyToken = 30ad4fe6b2a6aeed'我收到了錯誤System.IO.FileLoadException:無法加載文件或程序集“Newtonsoft.Json,Version = 4.5.0.0,Culture = neutral,PublicKeyToken = 30ad4fe6b2a6aeed”或其依賴項之一。定位的程序集的清單定義與程序集引用不匹配。(HRESULT異常:0x80131040)我的CI構(gòu)建我試過的解決方案<dependentAssembly>     <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed"         culture="neutral" />     <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" /></dependentAssembly>它也沒用
查看完整描述

3 回答

?
千萬里不及你

TA貢獻1784條經(jīng)驗 獲得超9個贊

對于遇到Newtonsoft.Json v4.5版本問題的每個人,請嘗試在web.config或app.config中使用它:

<runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
       <dependentAssembly>
           <assemblyIdentity name="Newtonsoft.Json"
               publicKeyToken="30AD4FE6B2A6AEED" culture="neutral"/>
           <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0"/>
       </dependentAssembly>
    </assemblyBinding></runtime>

重要信息:檢查configuration配置文件的標記是否沒有命名空間屬性。否則,assemblyBinding標簽將被忽略。


查看完整回答
反對 回復(fù) 2019-08-26
?
Helenr

TA貢獻1780條經(jīng)驗 獲得超4個贊

關(guān)鍵是在配置文件中引用正確的版本。

腳步;

1-查看項目引用屬性中Newtonsoft.Json.dll的版本,包文件夾中的版本是什么(例如我的版本是7.0.1,參考版本是7.0.0.0)

2-看看項目在異常中對你的期望(我的是6.0.0.0)

3-將依賴程序集添加到配置文件中,因為它應(yīng)該是..

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


查看完整回答
反對 回復(fù) 2019-08-26
  • 3 回答
  • 0 關(guān)注
  • 3524 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號