在VisualStudio2010中,我添加了一个web服务引用。在app.config中,注册如下:
<applicationSettings>
<Project.Properties.Settings>
<setting name="Project"
serializeAs="String">
<value>http://myurl:8080/FileSystemIOService</value>
</setting>
</Project.Properties.Settings>
</applicationSettings>
更新app.config URL时,项目不使用该URL。相反,它使用Web引用的Web引用Url属性设置。
我必须更改此属性并重新编译代码以更改Web引用URL。
在其他web服务项目中,我从未遇到过这个问题。更改app.config中的Url将正确地重新发布web服务。