相关疑难解决方法(0)

ASP.NET MVC:没有为此对象定义的无参数构造函数

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:         }
Run Code Online (Sandbox Code Playgroud)

我正在关注Steven Sanderson的" Pro …

asp.net-mvc invalidoperationexception

165
推荐指数
11
解决办法
23万
查看次数