title: POST Ajax call results in not found using jqGrid and ASP.NET MVC 2 on IIS6
body: <p>This is puzzling me.  I deployed an MVC 2 application to IIS6 and everything works fine except for my jqGrid calls to get data.</p>
  
  <p>All is well on my development machine, but here are the two URLs I'm working with</p>
  
  <p><strong>Local dev web server:</strong></p>
  
  <pre><code>POST http://localhost:port/Ctrl.mvc/JsonMethod
  </code></pre>
  
  <p><strong>IIS6 (notice https - not sure if that matters)</strong></p>
  
  <pre><code>POST https://www.example.com/AppName/Ctrl.mvc/JsonMethod
  </code></pre>
  
  <p>The latter URL results in a HTTP 404, which is really confusing as all works well on my local machine.  The <code>JsonMethod</code> is properly declared with <code>[AcceptVerbs(HttpVerbs.Post)]</code></p>
  
  <h2>Edit</h2>
  
  <p>Quite an oversight on my part.</p>
  
  <p>All of my JSON requests are <code>/Ctrl.mvc/JsonMethod</code>.  Well, on the IIS server, the code is in a sub-folder - <code>AppName</code>.  As such, I'm getting a 404 because <code>https://domain/Ctrl.mvc/JsonMethod</code> is not found - which is correct.</p>
  
  <p>Basically, I need to change my JSON requests when I deploy - which I really don't like, but perhaps there is a better way?</p>