5

私のプロジェクトでは、Newtonsoft.json V4.5 を使用しています。現在、プロジェクトに Twitter oAuth を統合する必要があります。

統合には Tweetsharp.dll を使用することにしました。Tweetsharp が Newtonsoft.json 3.5 を必要とする Newtonsoft.Json の依存関係の競合の問題が発生しました。

問題は、他の機能に影響を与えるため、新しいバージョンの 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, 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.
4

1 に答える 1

1

両方のライブラリを参照できる方法はないため、ベストショットは次のいずれかになります。

-TweetSharp プロジェクトはオープン ソースなので編集し、自分で「アップグレード」してみてください

- 問題をTweetSharp Githubに投稿し、更新を依頼します

于 2013-03-21T10:22:29.247 に答える