2013-03-21 20 views
5

Dự án của tôi sử dụng Newtonsoft.json V4.5. Bây giờ tôi có một yêu cầu để tích hợp twitter oAuth trong dự án của tôi.Newtonsoft.Json Dependency issue

Tôi quyết định sử dụng Tweetsharp.dll để tích hợp. Bắt kịp với một vấn đề xung đột phụ thuộc của Newtonsoft.Json rằng Tweetsharp yêu cầu Newtonsoft.json 3.5.

Vấn đề là tôi không thể thay thế phiên bản mới hơn của Newtonsoft.Json từ dự án của tôi vì nó ảnh hưởng đến các tính năng khác.

Vui lòng giúp tôi giải quyết vấn đề này.

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, 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) 

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, Version=3.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' could not be loaded. 

Trả lời

1

Không có cách nào bạn có thể tham khảo cả các thư viện để bắn tốt nhất của bạn sẽ là một trong hai:

-edit dự án TweetSharp vì nó là mã nguồn mở và cố gắng "updgrade" nó một mình

đăng vấn đề trên TweetSharp Github và yêu cầu cập nhật số