Visual Studio 2008 - App_webreferences and dynamic urls
- by Patrick Hempton
When you add a web service reference in VS 2008 Web site project, you get a new folder in App_webreferences. This contains a disco,wsdl and discomap file. Additionally, you get a key/value pair in the web.config which contains the endpoint URL.
Within the disco,wsdl and discomap files, the URL is strewn about leaving many places to change the url as we move from dev/test/stage/production.
Why is it that when I change the URL in the web.config and perform an update on the web reference, the old URL remains in all three of those files? Why does it not get updated? Has anyone figured out how to manage this?
Any insight is appreciated.