ASP.NET出错了,麻烦大家了!
Server Error in '/' Application.
--------------------------------------------------------------------------------
Control 'calendar1' of type 'Calendar' must be placed inside a form tag with runat=server.
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.Web.HttpException: Control 'calendar1' of type 'Calendar' must be placed inside a form tag with runat=server.
Source Error:
The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:
1. Add a "Debug=true" directive at the top of the file that generated the error. Example:
<%@ Page Language="C#" Debug="true" %>
or:
2) Add the following section to the configuration file of your application:
<configuration>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>
Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.
Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.
Stack Trace:
[HttpException (0x80004005): Control 'calendar1' of type 'Calendar' must be placed inside a form tag with runat=server.]
System.Web.UI.Page.VerifyRenderingInServerForm(Control control) +151
System.Web.UI.WebControls.Calendar.Render(HtmlTextWriter writer) +184
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
ASP.default_aspx.__Render__control1(HtmlTextWriter __output, Control parameterContainer) +67
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +27
System.Web.UI.Control.Render(HtmlTextWriter writer) +7
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
System.Web.UI.Page.ProcessRequestMain() +1929
--------------------------------------------------------------------------------
Control 'calendar1' of type 'Calendar' must be placed inside a form tag with runat=server.
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.Web.HttpException: Control 'calendar1' of type 'Calendar' must be placed inside a form tag with runat=server.
Source Error:
The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:
1. Add a "Debug=true" directive at the top of the file that generated the error. Example:
<%@ Page Language="C#" Debug="true" %>
or:
2) Add the following section to the configuration file of your application:
<configuration>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>
Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.
Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.
Stack Trace:
[HttpException (0x80004005): Control 'calendar1' of type 'Calendar' must be placed inside a form tag with runat=server.]
System.Web.UI.Page.VerifyRenderingInServerForm(Control control) +151
System.Web.UI.WebControls.Calendar.Render(HtmlTextWriter writer) +184
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
ASP.default_aspx.__Render__control1(HtmlTextWriter __output, Control parameterContainer) +67
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +27
System.Web.UI.Control.Render(HtmlTextWriter writer) +7
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
System.Web.UI.Page.ProcessRequestMain() +1929
...全文
相关推荐
ASP.NET实例——漂亮的自适应宽度的导航条(仿Discuz!)
总之,通过ASP.NET的asp:Menu控件和自适应布局技术,我们可以创建出类似于Discuz!论坛的导航条,提供跨设备的出色用户体验。
IIS中ASP.NET连接SQL Server出错的解决方法
"IIS中ASP.NET连接SQL Server出错的常见问题及解决方案"在集成IIS(Internet Information Services)和ASP.NET进行Web应用程序开发时,可能
asp.net网站出错时如何处理?
### ASP.NET网站出错时的处理方法#### 一、理解出错信息的重要性当ASP.NET网站出现错误时,最重要的是获取详细的出错信息。这些信息对于定位问题所在至关重要。
网店实例asp.net网店!asp.net网店!asp.net网店!
【标题】:“网店实例asp.net网店!asp.net网店!asp.net网店!”【描述】:“asp.net网店!asp.net网店!asp.net网店!asp.net网店!asp.net网店!
ASP.NET和IIS出错问题总结
### ASP.NET和IIS出错问题总结#### 1. ASP.NET 与 IIS 配置在ASP.NET开发过程中可能会遇到多种问题,这些问题往往与ASP.NET和IIS的配置有关。


