Thursday, July 27, 2006

Changing Web References in VS.NET 2005

.NET gives you the ability to call webservices methods within a web or desktop applications. The problem you may face is that the webservice URL can be changed and so your application may not be able to call the webservice correctly.

Each .NET project calls webservices methods will have a folder called "webreferences" which contains three files:


You will have to open these files with any editor, and update the URLs of the webservices with new URL or IP address.

Also, if your .NET project is web project, then you will need also to update the webservices URL in the web.config file.