server error in '/' application(请高手帮忙啊)
现在我公司的一个网站再用一段时间后做提交操作就报以下错误.
错误描述:
Server Error in '/' Application.
Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web></configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
我已经按照提示改了web.config文件<customErrors mode="Off"/>,可还是报这个错.请高手指教解决方法.
一点头绪都没有,不知道是哪方面的错,帮帮忙啊!
------解决方案--------------------这个:
我已经按照提示改了web.config文件 <customErrors mode="Off"/>,可还是报这个错.请高手指教解决方法.
一点头绪都没有,不知道是哪方面的错,帮帮忙啊!
它做的只是显示或不显示错误提示,而错误并不是它造成的。
查看server的系统日志,对于这类错误都会记录在系统日志里,就能找到原因。
------解决方案--------------------应该是少了个ddl文件,看一下你那页面是否引用了一些需要导入ddl文件的东西!
------解决方案--------------------在Global.asax自定义
Application.Error() {
Exception ex = Server.GetLastError();
if (ex != null && ex.GetBaseException() != null) {
ex = ex.GetBaseException();
ErrorMsg.Text = "Error Message:" + ex.Message;
ErrDetailMsg.InnerHtml = ex.StackTrace.Replace("\n", "<br/>"); ;
}
Server.ClearError();
}
------解决方案--------------------应该是缺少引用吧!看看一下你那页面是否引用了一些需要导入ddl文件!