title: ASP.NET WEB API 2 Works Locally But Not On Production Web Server
body: <p>I've developed a new WEB API 2 that works great locally, however when I upload the same code to my production server (Arvixe in this case) all I get is a 404 when I call it. I've spent HOURS searching the web, reading forums, etc.. and have been able to find no resolution, so I'm asking here as my last effort. </p>
  
  <p>I'm currently only testing with the default project that gets created when you do <strong>New Project > ASP.NET Web API 2 Empty Project</strong> in Visual Studio. This creates an empty project with a single <code>ValuesController</code>. You should be able the JSON response by called <code>/api/values</code>, but this doesn't even work. </p>
  
  <p>I'm using Fiddler to test the API locally and on the web server. </p>
  
  <pre><code>http://localhost:1993/api/values    &lt;--- works great
  </code></pre>
  
  <p>but </p>
  
  <pre><code>http://api.mydomain.com/api/values   &lt;--- returns 404
  </code></pre>
  
  <p>Note: I created a subdomain "api" in this case, but everything for the code for the API is unchanged from when it was created. </p>
  
  <p>Why in the world does this work locally but not on the production web server?</p>