Dynamically adding a reference to web service.(resolved...)
Is there a way to dynamically add the location of a web service. Here is why:
I am developing a web reference on my localhost. I am also developing a client app on the same computer. Obviously I am able to connect and run the web services just fine. Now, I got to move this set up to the client site. At the client site, they are going to have one dedicated box to the web services and the database. The client app will be installed on multiple computers around the network. All this is internal, and the web services won't be available from outside.
If I was to compile the client application as it is now, and take it down there to install, it will think the web services are at local host, not the other server that it will actually be at.
So I am wondering if there is a way I can set up a location string in the app.config file that I can change when I get to the client site that will point to the exact server that is running the web service?