ASP.NET错误处理:Runtime Error

服务器上出现应用程序错误。此应用程序的当前自定义错误设置禁止查看应用程序错误的详细信息。

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 应用程序根目录下的“web.config”配置文件中创建一个 <customErrors> 标记。然后应将此 <customErrors> 标记的“mode”属性设置为“RemoteOnly”。若要使他人能够在远程计算机上查看详细信息,请将“mode”设置为“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.
注释: 通过修改应用程序的 <customErrors> 配置标记的“defaultRedirect”属性,使之指向自定义错误页的 URL,可以用自定义错误页替换所看到的当前错误页。

<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>

    </system.web>
</configuration>

时间: 2024-10-03 16:52:40

ASP.NET错误处理:Runtime Error的相关文章

IIS浏览ASP.NET文件出现RUNTIME ERROR错误怎么解决啊??

问题描述 运行时提示如下:请各位大虾帮忙,小弟急用啊.ServerErrorin'/blog'Application.--------------------------------------------------------------------------------ConfigurationErrorDescription:Anerroroccurredduringtheprocessingofaconfigurationfilerequiredtoservicethisreques

最常见的ASP.NET错误提示解决

asp.net|解决|错误提示 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 co

Asp.Net 程序错误Runtime Error原因与解决_实用技巧

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 viewe

web-mono3.8.0+jexus5.6.3+xsp3.8发布网站出现runtime error的错误

问题描述 mono3.8.0+jexus5.6.3+xsp3.8发布网站出现runtime error的错误 确认web代码没有问题只是简单的显示mono四个字母,在mono2.10里可以正常显示 解决方案 解决方案二: jexus-5.6.3

解决IIS7运行ASP提示错误:An error occurred on the server when processing the URL. Please contact the system administrator

原文:解决IIS7运行ASP提示错误:An error occurred on the server when processing the URL. Please contact the system administrator     在WINDOWS7或SERVER2008上安装了IIS7,调试ASP程序时出现以下错误:     An error occurred on the server when processing the URL. Please contact the syste

printf- 出现 这个错误 怎么回事 runtime error R6002

问题描述 出现 这个错误 怎么回事 runtime error R6002 #includeint input(float arr[]);#define N 6void main(){float a[N];input(a); }int input(float arr[]){ int i; for(i=0;i<N;i++) { printf(""请输入第%d的值:""i); scanf(""%f""&arr[i])

c语言- Runtime Error(ACCESS_VIOLATION) 错误,高手们看下,谢谢了!

问题描述 Runtime Error(ACCESS_VIOLATION) 错误,高手们看下,谢谢了! 题目: Problems in Computer Science are often classified as belonging to a certain class of problems (e.g., NP, Unsolvable, Recursive). In this problem you will be analyzing a property of an algorithm w

启动红蜻蜓抓图精灵时跳出Run-time error &amp;#039;339&amp;#039;错误消息框

  有用户反映在打开红蜻蜓抓图精灵时,会弹出一个对话框,提示"Run-time error '339': Component 'Flash11e.ocx' or one of its dependencies not correctly registered: a file is missing or invalid".出现此问题,是由于用户电脑上Flash播放控件缺失所引起,下载安装最新版的Flash播放控件即可解决问题.Flash播放控件的官方下载地址:http://www.ado

win7玩冒险岛出现VC++ Runtime Error错误怎么办

  原因及解决方法: 1.首先,这个问题和系统补丁无关; 2.其次,和系统优化设置有点关系,更新小组同学发现的"死性不改"的系统包出问题比较多的一个原因,但用我系统包的人很多,玩这个游戏且出问题也不是100%的,具体原因在哪里? 3.结论是:和CPU以及禁用磁盘控制器有一定关系: 4.如果是intel cpu,在intel cpu环境里,同时禁用了磁盘控制器,那么就可能会遇到报错,在我的环境里看到的是符合条件100%报错,所以intel cpu可以试试启用磁盘控制器是否能解决; 5.如