I will explain to you my reason!
When I design the form for the client I work on it ofcours on my organzation server (server name is "MyServer"). Now... When I want to check it I sign it on my local machin and publish it the server ("MySrever"). The WebService of this form also located on this server (in the Inetpub\wwwroot), That's why I use directing of
http://localhost/WSname/service.asmx !
But!!! My Client organization has its own server (Let's calle it "ClientServer") So..If I will install the form on the client server as it is it will not work (dont recognize "MyServer") But if I will use "localhost" defenision and I will install the form in "ClinServer" and located the WebService on this form also in "ClientServer" (in the Inetpub\wwwroot) It will work!!!
So, If I will use the server name in the directing to the WebService instead of "localhost" I will need to open the form in desgin mood(and it's .NET code) IN THE CLIENT SERVER and change manual all the Dataconnections of the form and the WebReference (in the code) to the specific name of the client's server (cahnge from "http://MyServer.." to "http://ClientServer..")!!!
And I want to avoid this action.
Do you have solution? That's why I need to use "localhost" and I was thinking that if the template of the form (hold the code) located on server so the directing of localhost will search it on the server and not on each user machin!!!
What can I do?