更新Newtonsoft.Json后报错误

更新Newtonsoft.Json后报异常。
问题描述:
1.vs2013新建4.5.1web 项目,Newtonsoft.Json版本为5.0.6
2.运行项目,正常
2.通过NuGet把Newtonsoft.Json更新到6.0.4
3.运行项目,抛出异常:
“/”应用程序中的服务器错误。

未能加载文件或程序集“Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed”或它的某一个依赖项。找到的程序集清单定义与程序集引用不匹配。 (异常来自 HRESULT:0x80131040)

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 

异常详细信息: System.IO.FileLoadException: 未能加载文件或程序集“Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed”或它的某一个依赖项。找到的程序集清单定义与程序集引用不匹配。 (异常来自 HRESULT:0x80131040)


程序集加载跟踪: 下列信息有助于确定程序集“Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed”未能加载的原因。


=== 预绑定状态信息 ===
日志: DisplayName = Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed
 (Fully-specified)
日志: Appbase = file:///c:/users/administrator/documents/visual studio 2013/Projects/WebApplication1/WebApplication1/
日志: 初始 PrivatePath = c:\users\administrator\documents\visual studio 2013\Projects\WebApplication1\WebApplication1\bin
调用程序集: System.Net.Http.Formatting, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35。
===
日志: 此绑定从 default 加载上下文开始。
日志: 正在使用应用程序配置文件: c:\users\administrator\documents\visual studio 2013\Projects\WebApplication1\WebApplication1\web.config
日志: 使用主机配置文件: C:\Users\Administrator\Documents\IISExpress\config\aspnet.config
日志: 使用 C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config 的计算机配置文件。
日志: 策略后引用: Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed
日志: 尝试下载新的 URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/ad986885/8d89950f/Newtonsoft.Json.DLL。
日志: 尝试下载新的 URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/ad986885/8d89950f/Newtonsoft.Json/Newtonsoft.Json.DLL。
日志: 尝试下载新的 URL file:///c:/users/administrator/documents/visual studio 2013/Projects/WebApplication1/WebApplication1/bin/Newtonsoft.Json.DLL。
警告: 比较程序集名称时发生不匹配: 主版本
错误: 未能完成程序集的安装(hr = 0x80131040)。探测终止。

堆栈跟踪: 


[FileLoadException: 未能加载文件或程序集“Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed”或它的某一个依赖项。找到的程序集清单定义与程序集引用不匹配。 (异常来自 HRESULT:0x80131040)]
   System.Net.Http.Formatting.JsonMediaTypeFormatter..ctor() +0
   System.Net.Http.Formatting.MediaTypeFormatterCollection.CreateDefaultFormatters() +84
   System.Net.Http.Formatting.MediaTypeFormatterCollection..ctor() +42
   System.Web.Http.HttpConfiguration.DefaultFormatters() +54
   System.Web.Http.HttpConfiguration..ctor(HttpRouteCollection routes) +90
   System.Web.Http.GlobalConfiguration.<CreateConfiguration>b__0() +95
   System.Lazy`1.CreateValue() +415
   System.Lazy`1.LazyInitValue() +152
   System.Lazy`1.get_Value() +75
   System.Web.Http.GlobalConfiguration.get_Configuration() +35
   WebApplication1.Areas.HelpPage.HelpPageAreaRegistration.RegisterArea(AreaRegistrationContext context) in c:\Users\Administrator\Documents\Visual Studio 2013\Projects\WebApplication1\WebApplication1\Areas\HelpPage\HelpPageAreaRegistration.cs:23
   System.Web.Mvc.AreaRegistration.CreateContextAndRegister(RouteCollection routes, Object state) +198
   System.Web.Mvc.AreaRegistration.RegisterAllAreas(RouteCollection routes, IBuildManager buildManager, Object state) +238
   System.Web.Mvc.AreaRegistration.RegisterAllAreas(Object state) +75
   System.Web.Mvc.AreaRegistration.RegisterAllAreas() +24
   WebApplication1.WebApiApplication.Application_Start() in c:\Users\Administrator\Documents\Visual Studio 2013\Projects\WebApplication1\WebApplication1\Global.asax.cs:16

[HttpException (0x80004005): 未能加载文件或程序集“Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed”或它的某一个依赖项。找到的程序集清单定义与程序集引用不匹配。 (异常来自 HRESULT:0x80131040)]
   System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +9936761
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +118
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +336
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296

[HttpException (0x80004005): 未能加载文件或程序集“Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed”或它的某一个依赖项。找到的程序集清单定义与程序集引用不匹配。 (异常来自 HRESULT:0x80131040)]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9915300