刷新服务引用更新app.config [英] Refreshing service references updates the app.config

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

问题描述

每当我修改我的WS和更新在Visual Studio中引用,VS覆盖我的app.config额外的不必要的信息。所以,当我开始我的客户端之后,我得到这个错误:

Every time I make changes to my WS and update the reference in Visual Studio, VS overwrites my app.config with additional unnecessary information. So when I start my client afterwards, I get this error:

这是错误被发现加工头

这是做了code发生器的变化为从每一个绑定删除这一行(请注意我用customBinding / httpsTransport):

The changes that the code generator made was to remove this line from every binding (note I'm using customBinding/httpsTransport):

<security authenticationMode="UserNameOverTransport" includeTimestamp="false">
    <secureConversationBootstrap/>
</security>

然后我要关闭客户端,恢复在app.config更改并重新启动这是一个麻烦的客户端。

Then I have to close the client, revert the app.config changes and restart the client which is a hassle.

我会preFER如果在app.config将被单独留在家中。

I would prefer if the app.config would be left alone.

您遇到同样的问题,你有一个解决办法?

Are you experiencing the same problem and do you have a workaround?

推荐答案

终于实现了这个编程这解决了这个问题。

Ended up doing this programmatically which solved the problem.

这篇关于刷新服务引用更新app.config的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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