title: How to fix "The remote name could not be resolved"
body: <p>I've created asp.net web-api , In the controller I try to call an external URL to send sms(the sms URL I get from the sms provider company ) </p>
  
  <blockquote>
    <p>When I try to call the controller I get this error 
     "The remote name could not be resolved" </p>
    
    <h3>This error only happened on the server ,On the localhost it's working fine</h3>
  </blockquote>
  
  <p>I am using Azure hosting</p>
  
  <ol>
  <li>I tried to add some code to the webconfig</li>
  </ol>
  
  <pre><code>    &lt;defaultProxy enabled="true" useDefaultCredentials="true"&gt;
  </code></pre>
  
  <ol start="2">
  <li>I also tried to call the sms URL in a different way </li>
  </ol>
  
  <pre><code>     HttpClient client = new HttpClient();
       response = client.GetAsync(urlParameters);  
  </code></pre>
  
  <ol start="3">
  <li>I've read some solutions about allowing access for the external link(SMS) on firewall and DNS of the server but it's already configured on azure server</li>
  </ol>
  
  <p>Here is my code</p>
  
  <pre><code>    string webAddress = "http://----------------";
      string SomeData = System.Text.Encoding.Default.GetString((new 
      System.Net.WebClient()).DownloadData(webAddress));
  </code></pre>
  
  <p>I want my web api to send the sms without any error on the server side</p>