title: AJAX getJSON call works on IIS express but not on IIS (ASP.NET/MVC4)
body: <p>It finds the MVC controller just find with IIS express. But once I switch to IIS and this call is made it cannot find the resource (404) </p>
  
  <p>Is '/api/Values/5' correct? OR must it be done differently to work in IIS and IIS express ? </p>
  
  <p>If I run in IIS and I type in to the URL </p>
  
  <pre><code>http://localhost/AGS.Web/api/values/5
  </code></pre>
  
  <p>It finds it with no problem</p>
  
  <pre><code>var RefreshInstructions = function () {
      var SelectedTaskValue = $("#SelectedTaskType_Id").val();
      // Send an AJAX request
      $.getJSON("/api/Values/5", function (data) {
          $('#divTaskInstructions').html(data);
      });
  }
  
  Key Value
  Request GET /api/Values/5 HTTP/1.1
  </code></pre>
  
  <p>EDIT 1: it is not reffered to as AGS.Web when I use IIS EXPRESS so I am hoping there is a generic way to refer to the URL for both cases? </p>
  
  <p>EDIT 2: Navigating to <code>http://localhost/AGS.Web/api/values/5</code> works find but I guess the problem is 'AGS.Web' does not existing in then AJAX call.. So should I prepend some sort of server variable something like HttpContext.Current.Request.Url; ? </p>