更新服务参考时出错 [英] Error updating service reference

查看:61
本文介绍了更新服务参考时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试更新类库 (VS2013) 中的服务引用时,出现以下错误.

When trying to update a service reference in a class library (VS2013), i get the following error.

由于以下问题,无法更新服务引用的配置:为 system.serviceModel/bindings 创建配置节处理程序时出错:AssemblyResolveEvent 处理程序无法返回仅为反射加载的程序集."

当我尝试删除引用时也会发生同样的错误.

This same error happens when i try to delete the reference as well.

在排序方面的任何帮助将不胜感激.

Any help in sorting would be greatly appreciated.

推荐答案

我在更新到 VS2013 Update 2 后遇到了同样的问题.

I've had the same issue after updating to VS2013 Update 2.

我通过临时从 web.config 中删除整个 system.serviceModel 部分,将其粘贴到其他地方(如记事本)解决了该问题.然后,我保存了没有服务模型部分的 web.config.然后,我能够成功更新服务引用.更新服务引用后,我已将服务模型部分粘贴回 web.config 并成功运行.

I've solved the issue by temporarily cutting the whole system.serviceModel section out of web.config, pasting it somewhere else like Notepad. Then, I've saved the web.config without the service model section. Then, I was able to update the service reference successfully. After updating the service reference, I've pasted the service model section back to web.config and it worked successfully.

这篇关于更新服务参考时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆