If you are getting an error similar to the one shown below in your ASP.NET MVC Project , you could verify your Model.
No parameterless constructor defined for this object error in ASP.NET MVC Project
Server Error in ‘/’ Application.
No parameterless constructor defined for this object.
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
System.MissingMethodException: No parameterless constructor defined for this object
The above error is generally caused ( occurred for me many times :)) when the Model has no parameterless constructor defined.
Just define the parameterless constructor for the Model Object to solve this error.
Leave a Reply