DNN自定义错误页问题 [英] DNN Custom Error Page Issue

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

问题描述

我的工作DNN 7.0。我创建了一个ErrorPage.aspx,并将其设置的defaultRedirect和另一页404error.aspx和状态code设置404。

I am working on DNN 7.0. I create a ErrorPage.aspx and set it as defaultredirect and another page 404error.aspx and set it with the status code 404.

现在,如果我访问的网站像

now if i access the website like

www.abc.com/testing.aspx和testing.aspx DONOT存在,它带我到404error.aspx页

www.abc.com/testing.aspx , and testing.aspx donot exists, it takes me to 404error.aspx page

然后我尝试通过

www.abc.com/testing,现在则是显示出丑陋的asp.net错误。

www.abc.com/testing , now it is showing that ugly asp.net error.

需要一些帮助我在做什么错了,还是我错过了什么。

need some assistance what am i doing wrong, or what i am missing.

感谢

推荐答案

得到它的工作。

在web.config中实现httpErrors和CustomErros标签

In web.config implemented httpErrors and CustomErros tag

    <httpErrors errorMode="Custom">
        <remove statusCode="404" subStatusCode="-1" />
        <error statusCode="404" path="/404Error.aspx" responseMode="ExecuteURL" />
    </httpErrors>

    <customErrors mode="On" defaultRedirect="/CustomErrorPage.aspx">

    </customErrors>

这篇关于DNN自定义错误页问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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