[转][MVC]更新 dll 后版本不匹配的问题

      <dependentAssembly>
        <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" />
        <bindingRedirect oldVersion="1.0.0.0-10.0.0.0" newVersion="10.0.0.0" />
      </dependentAssembly>

当 MVC 引用新版本的 Json.net 后,需要在 Web.config 文件中的 <assemblyBinding></assemblyBinding> 项里面添加以上代码,版本号也要修改。

相应报错为:未能加载文件或程序集“Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed”或它的某一个依赖项。 

转自:https://blog.csdn.net/zhangjun965/article/details/47156203

原文地址:https://www.cnblogs.com/z5337/p/8778598.html