title: Web Service - The Remote name could not be resolved
body: <p>We have an existing web service that is running fine - recently added another and everything seemed to be OK until the connection was no longer from our own LAN, otherwise it throws..</p>
  
  <pre><code>There was no endpoint listening at http://hasoftware002/HOA3_Service/Service2.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
  
  
  System.Net.WebException: The remote name could not be resolved: 'hasoftware002'
  </code></pre>
  
  <p>It's picking up the server name not the domain name. I've tried to compare everything with the service that works to this but can't find where it's messing up. Any pointers would be appreciated.</p>
  
  <p>Did check that it was not a configuration problem with the client but can't spot anything there either and it's certainly pointing to a domain name not a server name.... </p>
  
  <p>Thanks</p>
  
  <p>===================</p>
  
  <p>UPDATE
  Some of the references in the client config documents are referencing the server name, not the domain name - can edit them and it runs, but updating the service reference just overwrites them again. Head, wall, thud............</p>