title: ASP MVC 3 HTTP Post via JQuery constantly returning 500. Url and Controller match
body: <p>I have an action link which I want to do an HTTP Post to my Controller, however, I keep getting a HTTP 500.</p>
  
  <p>Here is my jQuery</p>
  
  <pre>&lt;script type=&quot;text/javascript&quot;&gt;
  
      $(document).ready(function () {
          $('.thing').click(function (e) {
              e.preventDefault();
              $.ajax({
                  url: this.href,
                  dataType: &quot;json&quot;,
                  type: &quot;POST&quot;,
                  success: function (data) {
                      if (data.Success == true) {
                         // do something
                      }
                      else {
                          alert(data.Message);
                      }
                  },
                  error: function (textStatus, errorThrown) {
                      // request always errors
                  }
              });
          });
      });    
  &lt;/script&gt;
  </pre>
  
  <p>and my Action link code</p>
  
  <pre>@Html.ActionLink(&quot;my link&quot;, &quot;DoStuff&quot;, &quot;Dude&quot;, new { thingId = item.Id }, new { @class = &quot;thing&quot; })
  </pre>
  
  <p>My Controller</p>
  
  <pre>public class DudeController : Controller
  {
      [HttpPost]
      public ActionResult DoStuff(int thingId)
      {
          return Json(new { Success = true, Message = string.Empty }, JsonRequestBehavior.AllowGet);
      }
  
  }
  </pre>
  
  <p>Any ideas?</p>