title: How do I enable HTTP PUT and DELETE for ASP.NET MVC in IIS?
body: <p>I use HTTP <code>PUT</code> and <code>DELETE</code> in my ASP.NET MVC3 application. When I run it in local, every thing works correctly; But when I publish the application to the server, these methods do not work.</p>
  <p>Are there any special settings for enable a web server to support <code>PUT</code> and <code>DELETE</code> requests? I'm using shared hosting with IIS 7.5.</p>
  <p>I enable <code>PUT</code> and <code>DELETE</code> requests in <code>IIS manager</code>. <code>PUT</code> command work fine. But <code>DELETE</code> still not works. I create requests by <code>jQuery</code>:</p>
  <p>I'm in this page:</p>
  <pre><code>http://example.com/dashboard/edit-site/103323/links/
  </code></pre>
  <p>and my AJAX call is:</p>
  <pre><code>$.ajax({
      // url: same as page-url,
      cache: false,
      type: 'DELETE',
      data: { linkid: $(link).data(&quot;linkid&quot;) },
      beforeSend: function () {
          // doing something in UI
      },
      complete: function () {
          // doing something in UI
      },
      success: function (data) {
          // doing something in UI
      },
      error: function () {
          // doing something in UI
      }
  });
  </code></pre>
  <p>This will create a request like this:</p>
  <pre><code>Accept: */*
  Content-Type: application/x-www-form-urlencoded; charset=UTF-8
  Origin: http://example.com
  Referer: http://example.com/dashboard/edit-site/103323/links/
  User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1
  X-Requested-With: XMLHttpRequest
  </code></pre>
  <p>With this <strong><code>Form Data</code></strong>:</p>
  <pre><code>linkid:104044
  </code></pre>