Solution for this Sitefinity Feather Error: No parameterless constructor defined for this object.

by Gregg Crystal Dec 06, 2016

Have you seen this error?

sf-feather-dies-01.png

This is an error in Sitefinity Feather that can bring down your site during development.

What's the solution?

It's even easier than you could ever imagine. Simply exclude the following file from your project:

/App_Start/RazorGeneratorMvcStart.cs

The problem arises when the PrecompiledMvcEngine view engine does not have a parameterless constructor.

 

For those searching, here's the text of the error:

No parameterless constructor defined for this object. 
Description: 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. 

Exception Details: System.MissingMethodException: No parameterless constructor defined for this object.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

Ready to Supercharge Your Sitefinity Project