プロジェクトを実行するたびに、次の例外が発生します。
タイプ 'System.IO.FileLoadException' の例外が mscorlib.dll で発生しましたが、ユーザー コードで処理されませんでした' またはその依存関係の 1 つ。見つかったアセンブリのマニフェスト定義がアセンブリ参照と一致しません。(HRESULT からの例外: 0x80131040)
Web で見つけられるほぼすべてのソリューションを試しました。
私のpackages.configファイル:
<package id="Newtonsoft.Json" version="8.0.2" targetFramework="net451" />
and this in web.config file:
<assemblyIdentity name="Newtonsoft.Json" PublicKeyToken="30ad4fe6b2a6aeed" />
<bindingRedirect oldVersion="0.0.0.0-4.5.0.0" newVersion="5.0.8"/>
</dependentAssembly>
次のコマンドを使用して、json.netを更新/再インストールしました。
update-package Newtonsoft.Json -reinstall
update-package Newtonsoft.Json
他に何を試すことができますか?