在Web.config文件自定义错误模式 [英] Custom Error mode in Web.Config File

查看:163
本文介绍了在Web.config文件自定义错误模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经部署我的应用程序在服务器上,现在我得到这个错误:

I have deployed my application on server and Now I am getting this error:

要启用此特定错误消息的细节是对远程计算机上查看,请在位于当前Web应用程序根目录下的web.config配置文件中创建一个标记。然后应将此标记的mode属性设置为关。

To enable the details of this specific error message to be viewable on remote machines, please create a tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off".


    
        
    

注意:你所看到的当前错误页可以用自定义错误页替换通过修改应用程序的配置标记的defaultRedirect属性,使之指向自定义错误页的URL

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 configuration tag to point to a custom error page URL.


    
        
    

~~~我有我的应用A定义自定义错误页。

~~~ I have defined custom error pages for my applicatio.

推荐答案

通常有三种原因之一,但我们必须看到一个web.config获得详细信息。

Typically there is one of three causes, but we would have to see a web.config to get detail.


  1. 您在IIS中选择一个不正确的ASP.NET版本,因此cannnot转至设置

  2. 您在你的web.config畸形的项目,以便结构是不正确

  3. 您的自定义错误部分被注释掉.....

这篇关于在Web.config文件自定义错误模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆