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 …
我有一些 TableLayoutPanel,其中第一个“层”有 1 列和 10 行,其中一些行包含 UserControl 或另一个具有 2 或 3 列和一些行的 TableLayoutPanel。其中一两个包含另一个 TableLayoutPanel,仅此而已。所以这是嵌套 TableLayoutPanel 的最多 3 个“级别”。其中大部分设置为自动调整大小,因为某些用户控件可能会更改其大小。当表单包含这样一个嵌套的 TableLayoutPanel 时,UserControls“闪烁”,看起来它们加载非常缓慢。