本文介绍了Asp.net Web应用程序中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的朋友们!
我已经使用Asp.net,c#,sqlserver 2005创建了一个Web应用程序,最后将其托管到IIS Webserver ..... and
面对这个错误的问题!请任何人可以告诉我如何解决此解决方案.
当我单击菜单"链接时,它显示了这样的错误.
Dear Friends !!
I have Created a Web application using Asp.net,c#,sqlserver 2005. and finally hosted this into IIS Webserver.....and
Am facing problem with this error !! Please can anybody can show me how to solve this solution.
When I click the Menu link its shows an error like this.
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>
所以,请给我建议一个好的解决方案.
等待您的解决方案..
So, Please advice me a good solution.
Waiting for your Solution..
Thanks in ADVANCE.
推荐答案
这篇关于Asp.net Web应用程序中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!