title: HttpPost on ASP.Net MVC3 - "No parameterless constructor defined for this object"
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1355464/asp-net-mvc-no-parameterless-constructor-defined-for-this-object">ASP.NET MVC: No parameterless constructor defined for this object</a>  </p>
  </blockquote>
  
  
  
  <p>I'm working on an ASP.NET MVC3 application.</p>
  
  <p>I'm trying to use the <code>[HttpPost]</code> to retrieve information when a user enters it on a form.</p>
  
  <p>Basing what I do off the "default" blank ASP.Net project's Logon scripts, I have the following:</p>
  
  <p>In my controller:</p>
  
  <pre><code>    public ActionResult Ticket(int id)
      {
          Models.Ticket model = new Models.Ticket(id);
          return View("Ticket", model);
      }
  
      [HttpPost]
      public ActionResult Ticket(int id, MMCR.Models.Ticket model)
      {
          if (id != model.TicketNo)
          {
              return View("Error");
          }
          return View("Ticket", model);
      }
  </code></pre>
  
  <p>And in the View I have:</p>
  
  <pre><code>@using (Html.BeginForm()) {
      &lt;div&gt;
      &lt;fieldset&gt;
      &lt;legend&gt;View Ticket Details&lt;/legend&gt;
  
      &lt;div class="editor-label"&gt;
          @Html.LabelFor(m=&gt;m.Status)    
      &lt;/div&gt;
      &lt;div class="editor-field"&gt;
          @Html.DropDownListFor(m=&gt;m.Status, Model.Status)
      &lt;/div&gt;
  
      &lt;p&gt;
          &lt;input type="submit" value="Update" /&gt;
      &lt;/p&gt;
  
      &lt;/fieldset&gt;
      &lt;/div&gt;
  }
  </code></pre>
  
  <p>(obviously snipping out repetetive stuff).</p>
  
  <p>However, when I click on the button I get an error:</p>
  
  <blockquote>
    <p>Exception Details: System.MissingMethodException: No parameterless constructor defined for this object.</p>
  </blockquote>
  
  <p>Can anyone give some advice on how to resolve this?</p>