Visual Studio 2008 - App_webreferences and dynamic urls
Posted
by Patrick Hempton
on Stack Overflow
See other posts from Stack Overflow
or by Patrick Hempton
Published on 2010-06-08T21:48:42Z
Indexed on
2010/06/08
21:52 UTC
Read the original article
Hit count: 587
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.
© Stack Overflow or respective owner