Note that there are some explanatory texts on larger screens.

plurals
  1. POASP.NET MVC: No parameterless constructor defined for this object
    text
    copied!<pre><code>Server Error in '/' Application. -------------------------------------------------------------------------------- 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: Line 16: HttpContext.Current.RewritePath(Request.ApplicationPath, false); Line 17: IHttpHandler httpHandler = new MvcHttpHandler(); Line 18: httpHandler.ProcessRequest(HttpContext.Current); Line 19: HttpContext.Current.RewritePath(originalPath, false); Line 20: } </code></pre> <p>I was following Steven Sanderson's '<a href="http://www.apress.com/book/view/1430210079" rel="noreferrer">Pro ASP.NET MVC Framework</a>' book. On page 132, in accordance with the author's recommendation, I downloaded the ASP.NET MVC Futures assembly, and added it to my MVC project. [Note: This could be a red herring.]</p> <p>After this, I could no longer load my project. The above error stopped me cold.</p> <p>My question is <strong>not</strong>, "Could you help me fix my code?"</p> <p>Instead, I'd like to know more generally:</p> <ul> <li>How should I troubleshoot this issue?</li> <li>What should I be looking for? </li> <li>What might the root cause be?</li> </ul> <p>It seems like I should understand routing and controllers at a deeper level than I do now.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload