"Spam Catcher" <sp**********@rogers.comwrote in message
news:Xn**********************************@127.0.0. 1...
Hi all,
I'm deploying a web site application to a production server. The web site
contacts a back end web service (part of this project) and in development
it uses http://localhost:4161/. In production it has another path - how do
I configure the path?
In .NET 1.1 I could change a web service to be "dynamic URL", but this
doesn't seem to be an option with the web site project.
Any ideas?
Yes.
First of all, a web site is not a project at all. It's just a web site.
Notice how the two are mutually-exclusive alternatives in the File menu.
Second, dynamic URL in VS2003 changed the Url property of the proxy class.
You should do the same thing. So:
using (localhost.MyWebService service = new localhost.MyWebService())
{
service.Url =
http://productionlocation/MyWebService.asmx;
service.MyWebMethod();
}
--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer