title: All asmx web services stop working with a port in the url
body: <p>We have some asmx webservices that are hosted on a local server e.g http:// 192. 168.180. 102/webservice.asmx</p>
  
  <p>However when these are hosted in IIS with another a port or alias e.g</p>
  
  <pre><code>http:// 192. 168.180. 102:8000/webservice.asmx
  or http://somehostname:8000/webservice.asmx
  </code></pre>
  
  <p>..then all the web services on the server just stop working returning 404 errors, however all the other aspx pages work fine. Is there something I'm missing here?</p>
  
  <p>Also if it helps, the .asmx is not hosted separately in IIS, its inside a web application which is hosted in IIS.</p>
  
  <p>This is what the windows error shows for each request made to any aspx page trying to connect to any asmx web service:</p>
  
  <p>Exception type: WebException 
  Exception message: The remote name could not be resolved</p>
  
  <p>Its so weird, because its hosted on the same setup!</p>