未能加载文件或程序集“Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed”或它的某一个依赖项。
2015-06-23 15:23
567 查看
在使用百度UEditor,不小心将Newtonsoft.Json,升级了,然后就报如上图的错。
解决方法(web.config):
<runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" /> <bindingRedirect oldVersion="1.0.0.0-4.0.0.0" newVersion="4.0.0.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" /> <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0" /> </dependentAssembly> </assemblyBinding> </runtime>
注意:
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
修改这2个节点的值。
相关文章推荐
- 分享的js代码,从w3c上拓下来的
- AngularJS 拦截器和应用例子(转)
- json中key大小写转换
- 基于AngularJS的拖拽上传
- JQuery缓冲加载图片插件lazyload.js的使用方法
- js新增ul
- jQuery对象与dom对象相互转换
- JS动态标签创建
- Bootstrap排版
- JavaScript学习笔记(对象)
- bzoj1013 [JSOI2008]球形空间产生器sphere
- SeaJS入门
- js编写中遇到的问题-TypeError: document.body is null
- js遍历数组的错误方法
- 基于jQuery图片自适应排列显示代码
- js游戏引擎探索指南之Collie
- 使用jquery实现搜索框的位置变换
- iOS之GDataXMLNode对XML解析
- 剑指offer 29 - 数组中出现次数超过一半的数字
- json学习小记