Calling webservice from windows service
<p>I have a windows service project that references an asp.net webservice.  When I run this service locally on my machine via VS it works fine and when I call the web method I get the results I want.</p>

<p>Today I deployed this to a test server and when I call the web method it fails because the it is trying to connect to the local host webservice and not the one on the server.  The error I get is "Unable to Connect to remote server -->  System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it: 127.0.0.1"</p>

<p>My service has a app.config file and the web service settings are correctly pointing at the webservice url.  I know the url is correct as when I put it into IE it resolves to the webservice.  Also the properties of the webservices are correct.</p>

<p>Any suggestions on how the service is getting hold of localhost would be greatly appreciated.</p>
