c# - App.config setting not updating web service end point -
In Visual Studio 2010, I have added a web service reference. In App.config, it is registered as follows:
& lt; Application settings & gt; & Lt; Project.Properties.Settings & gt; & Lt; Setting name = "project" serializeAs = "string" & gt; & Lt; Price & gt; Http: // myurl: 8080 / FileSystemIOService & lt; / Pricing & gt; & Lt; / Settings & gt; & Lt; /Project.Properties.Settings> & Lt; / ApplicationSettings & gt;
When I update the app.config URL, the project does not use the URL. Instead, it uses the web context URL property setting of the web context.
I have to change this property and have to recompile the code to replace the web context url.
In other web service projects, I have never found this issue, replacing the URL in App.config properly assigns the web service.
Comments
Post a Comment