2017-01-10 76 views
-1

我正在使用TwitchLib引用並使用Newtonsoft.Json 7.0.0。每當我到達調用Twitch實驗室的頁面時,我都會收到以下錯誤消息。引用引用舊的Dll和引發錯誤

無法加載文件或程序集 'Newtonsoft.Json,版本= 7.0.0.0,文化=中性公鑰= 30ad4fe6b2a6aeed'

我有Newtonsoft.Json,安裝在我的項目版本9.0.0.1 =。

我已將此添加到我的配置中嘗試解決問題。

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

如何解決此問題?

+0

'..newVersion =「7.0.0.0」..' – user2864740

+0

爲什麼你有'newVersion =「7.0.0.0」'和「在我的項目中安裝了Newtonsoft.Json,Version = 9.0.0.1」。與此同時? –

+0

我手動添加了這個程序集,並從上面的版本6.0.0做了一個複製和粘貼,並沒有正確閱讀它。 –

回答

-1

改變了參考NEWVERSION = 「7.0.0.0」,以NEWVERSION = 「9.0.0.0」,它似乎已經解決問題。