title: Ajax Delete gives 405 method not allowed after publish
body: <p>I try to remove a vehicles from the table .
  This works well on the localhost (Visual Studio) after publishing, I get the message 405 method is not allowed.</p>
  
  <pre><code>http://localhost:41904/api/vehicles/42
  </code></pre>
  
  <p>after publish:</p>
  
  <pre><code>DELETE http://myurl.com/api/vehicles /42 405 Method Not Allowed
  </code></pre>
  
  <p>My ajax methode to delete:</p>
  
  <pre><code>      function reply_clic(clicked_id) {
        if (confirm("Systeem verwijderen?")) {
            $.ajax({
                url: '/api/' + clicked_id,  // RIS_POST_vehicle connected to button ID
                type: 'Delete',
                success: function (result) {
                    console.log('Joepie') // Do something with the result
                    $("#vehicleList").empty();
                    // bootbox.alert("Die is weg !!!");
                    loadvehicle()
                }
            });
        }
    }
  </code></pre>
  
  <p>The controller :</p>
  
  <pre><code> public HttpResponseMessage Deletevehicle(int id)
      {
          vehicle vehicle = db.vehicle.Single(v =&gt; v.id_vehicle == id);
          if (vehicle == null)
          {
              return Request.CreateResponse(HttpStatusCode.NotFound);
          }
  
          db.vehicle.DeleteObject(vehicle);
  
          try
          {
              db.SaveChanges();
          }
          catch (DbUpdateConcurrencyException)
          {
              return Request.CreateResponse(HttpStatusCode.NotFound);
          }
  
          return Request.CreateResponse(HttpStatusCode.OK, vehicle);
      }
  
      protected override void Dispose(bool disposing)
      {
          db.Dispose();
          base.Dispose(disposing);
      }
  </code></pre>
  
  <p>anyone a suggestion?</p>