Quantcast
Channel: Super Feed from MSCRM Technical Insight by Jonathan Nachman
Viewing all articles
Browse latest Browse all 130

ASPMVC3: No parameterless constructor defined for this object error

$
0
0

Came across the above error today when building an ASPX MVC 3 Application.

This error appeared because i never created a default constructor for the Model i was using... Example Below...

{codecitation style="brush: C#;"}

public class ContactModel
{
  public ContactModel()
  {
 
  }

}

{/codecitation}

 

Silly mistake!

Thanks

Jonthan Nachman


Viewing all articles
Browse latest Browse all 130

Trending Articles