未能加载文件或程序集Newtonsoft.Json, Version=4.5.0.0...
2016-01-12 09:41
555 查看
1.打开 程序管理器控制台 输入 PM> install-package newtonsoft.json
2.查看bin文件中是否有 newtonsoft.json.dll文件
3.在Web.config 中添加
5.重新编译后运行
2.查看bin文件中是否有 newtonsoft.json.dll文件
3.在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> </assemblyBinding> </runtime>
5.重新编译后运行
相关文章推荐
- 小心服务器内存居高不下的元凶--WebAPI服务
- newtonsoft.json解析天气数据出错解决方法
- 为ASP.NET MVC及WebApi添加路由优先级
- C# 新手项目学习5 --Newtonsoft.Json Json解析
- 通过HttpClient调用WebApi的Get、Post方法(返回类型限定为json格式)
- 如何创建和部署网站
- Newtonsoft.Json高级用法
- 某大型银行深化系统之十:服务层之二
- IIS 下部署WebAPI
- SQL中采用Newtonsoft.Json处理json字符串
- Android 调用WebAPI
- c# webapi 开发
- web api返回json数据
- C#搭建Oauth2.0认证流程以及代码示例
- 用javascript映射WebAPI,在VisualStudio直接“点”出来
- WebAPi
- 注册登录过程点滴(一):初始的想法--分享是王道
- 注册登录过程点滴(二):使用MVC Remote验证的注意点
- 小心服务器内存居高不下的元凶----WebAPI服务
- 注册登录过程点滴(三):解决MVC3中使用Ajax.BeginForm会重复提交数据的问题 推荐