One common problem in Web service development occurs when the URL for a Web service changes. It would be ideal if you could configure this through a config file instead of having to update the Web reference and recompile the project.
.NET provides a way to do this. All you have to do is change the URL Behaviour default property in the proxy class (Reference.cs). Simply change it from Static to Dynamic.
Once you’re done, you’ll see that the Reference.cs file’s Constructor reflects your changes, adding the URL as a key-value in the appSettings section in the project configuration file.
Lastly, change that key’s value to reflect the new URL. It’s that easy
Charlie has over a decade of experience in website administration and technology management. As the site admin, he oversees all technical aspects of running a high-traffic online platform, ensuring optimal performance, security, and user experience.






















