C# App.config设置未更新web服务终结点
在VisualStudio2010中,我添加了一个web服务引用。在app.config中,它的注册方式如下:C# App.config设置未更新web服务终结点,c#,web-services,visual-studio-2010,C#,Web Services,Visual Studio 2010,在VisualStudio2010中,我添加了一个web服务引用。在app.config中,它的注册方式如下: <applicationSettings> <Project.Properties.Settings> <setting name="Project" serializeAs="String"> <value>http://myurl:8080/FileSystemIOService&l
<applicationSettings>
<Project.Properties.Settings>
<setting name="Project"
serializeAs="String">
<value>http://myurl:8080/FileSystemIOService</value>
</setting>
</Project.Properties.Settings>
</applicationSettings>
http://myurl:8080/FileSystemIOService
当我更新app.config URL时,项目不使用该URL。相反,它使用Web引用的Web引用Url属性设置
我必须更改此属性并重新编译代码以更改Web引用URL
在其他web服务项目中,我从未遇到过这个问题。更改app.config中的Url将正确重新导入web服务。问题是控制台(a)到服务项目(B)的复制/粘贴错误 项目B的设置看起来像
<applicationSettings>
<ProjectA.Properties.Settings> <-- here is the issue
<setting name="Project"
serializeAs="String">
<value>http://myurl:8080/FileSystemIOService</value>
</setting>
</ProjectA.Properties.Settings>
</applicationSettings>