Invalid URI for Localhost
<p>We have a website/webservice running on one of our servers. We hit that webservice once a day with a scheduled .bat scipt.</p>

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

<p>When we're logged into the server we can reach the website through <a href="http://localhost/website" rel="nofollow">http://localhost/website</a>, but get an Invalid URI error when we hit the webservice <a href="http://localhost/website/ws.asmx" rel="nofollow">http://localhost/website/ws.asmx</a>.</p>

<p>Any ideas?</p>

<p><strong>Edit</strong>:</p>

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