Invalid URI for Localhost

asp.net

We have a website/webservice running on one of our servers. We hit that webservice once a day with a scheduled .bat scipt.

Just recently the scheduled task started to fail. The log shows "Invalid URI: The hostname could not be parsed."

When we're logged into the server we can reach the website through http://localhost/website, but get an Invalid URI error when we hit the webservice http://localhost/website/ws.asmx.

Any ideas?

Edit:

We'be tried using the servername, the ipaddress, and port numbers (and combinations therein). Any other ideas?

Best Solution

For the private IP Address your using Wikipedia Reference http://en.wikipedia.org/wiki/IP_address for what are the limits and proper uses.

If you have access to the source code for the web service look for fixed IP Address being used along with having correct Server Bindings for using the service.