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.

itemprop = "text">

The problem was a copy / paste error in service project (B) from the console (A).

Project B settings were viewed

  & lt; Application settings & gt; & Lt; ProjectA.Properties.Settings & gt; & Lt; - There is a problem & lt; Setting name = "project" serializeAs = "string" & gt; & Lt; Price & gt; Http: // myurl: 8080 / FileSystemIOService & lt; / Pricing & gt; & Lt; / Settings & gt; & Lt; /ProjectA.Properties.Settings> & Lt; / ApplicationSettings & gt;  

And the web service override setting could not be found.


Comments