asp.net后台出现的错误,只要是添加几出现错误。

来源:百度知道 编辑:UC知道 时间:2024/05/18 03:58:25
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"/>
</sys

首先:程序出错和数据库出错,都有可能。
解决方法:1:使用本机调试,不要在其它机器上测试程序(原因,下面说的很清楚,为了数据库和程序的安全,具体的错误信息如果不是在本机调试的话,是不会有什么提示的。或者你修改webconfig也可以在客户机上显示,但这样不利于数据库和程序的安全。)
2:使用本机调试后,会显示具体错误,应该很容易就解决了,如果不能解决再把具体错误贴出来,并把添加的源码贴出来,别人才能帮你。
3:这问题,我碰到过。下面的大概解释是当前的错误信息您无法看到,请用本机调试程序,或者修改默认的错误(或者自定义错误信息)。
</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 -->

请下载微软的.NT补丁包