2013-03-21 16 views
5

Mój projekt wykorzystuje Newtonsoft.json V4.5. Teraz mam wymóg integracji Twittera OAuth w moim projekcie.Newtonsoft.Json Dependency issue

Postanowiłem użyć Tweetsharp.dll do integracji. Wystąpił problem związany z konfliktem zależności Newtonsoft.Json, który Tweetsharp wymaga Newtonsoft.json 3.5.

Problem polega na tym, że nie mogę zastąpić mojej nowej wersji Newtonsoft.Json z mojego projektu, ponieważ ma wpływ na inne funkcje.

Proszę, pomóż mi rozwiązać ten problem.

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. 

Odpowiedz

1

Nie sposób można odwołać obu bibliotek więc najlepszym strzał byłby albo:

-Edycja projekt TweetSharp ponieważ jest open source i starają się „updgrade” to sam

-post problemu na TweetSharp Github i poproś o jego aktualizację