title: Why calling API in ASP.NET works only if I have Fiddler open?
body: <p>I am calling an API in my Index Controller like this and everything works fine, only if I have Fiddler open.</p>
  
  <pre><code>public ActionResult Index()
  {
      Base model = null;
      var client = new HttpClient();
      var task =
          client.GetAsync(
          "http://example.api.com/users/john/profile")
          .ContinueWith((taskwithresponse) =&gt;
          {
              var response = taskwithresponse.Result;
              var readtask = response.Content.ReadAsAsync&lt;Base&gt;();
              readtask.Wait();
              model = readtask.Result;
          });
      task.Wait();
  
      return View(model);
  }
  </code></pre>
  
  <p>If I close Fiddler I get following error:</p>
  
  <blockquote>
    <p>No connection could be made because the target machine actively
    refused it 127.0.0.1:8888</p>
  </blockquote>
  
  <p>Is there some configuration I have to include, so that calling an API works, even if I don't have Fiddler open.</p>