Json   发布时间:2022-04-22  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了twitter – Newtonsoft.Json依赖问题大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我的项目使用Newtonsoft.json V4.5.现在我需要将twitter oAuth集成到我的项目中.

我决定使用Tweetsharp.dll进行集成.想知道Newtonsoft.Json的依赖冲突问题,Tweetsharp需要Newtonsoft.json 3.5.

问题是我不能从我的项目中替换我的新版本的Newtonsoft.Json,因为它会影响其他功能.

请帮我解决这个问题.

Server Error in '/' Application.

 Could not load file or assembly 'Newtonsoft.Json,Version=3.5.0.0,Culture=neutral,PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest deFinition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

  Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

  Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json,PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest deFinition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

 source Error: 


 Line 188:            if (CallBACkUrl != null && CallBACkUrl.Trim().Length > 0)
 Line 189:            {
 Line 190:                twitter =     FluentTwitter.Createrequest().Configuration.Usehttps().Authentication.GetrequestToken(ConsumerKey,ConsumerSecret,CallBACkUrl);
 Line 191:            }
 Line 192:            else

 source File: C:\Users\hnarikkoden\Desktop\Socxo\B2\App_Start\TwitterInfo.cs    Line: 190 

  Assembly Load Trace: The following information can be Helpful to determine why the   assembly 'Newtonsoft.Json,PublicKeyToken=30ad4fe6b2a6aeed' Could not be loaded.

解决方法

你无法参这两个库,所以你最好的方法是:

– 编辑TweetSharp项目,因为它是开源的,并尝试自己“升级”它

– 在TweetSharp Github上发布问题并要求更新

大佬总结

以上是大佬教程为你收集整理的twitter – Newtonsoft.Json依赖问题全部内容,希望文章能够帮你解决twitter – Newtonsoft.Json依赖问题所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。