ResponseRewrite&QUOT

ResponseRewrite&QUOT

本文介绍了ResponseRewrite"设置redirectMode = QUOT时的customErrors不工作;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在一个旧的网站,我改变这种工作的customErrors加入redirectMode =ResponseRewrite(在3.5 SP1新)的方式

In a old site, I was changing the way that CustomErrors works by adding redirectMode="ResponseRewrite" (new in 3.5 SP1)

的事情是,它显示我一般错误页面(当你不设置的customErrors你得到一个

The thing is that it shows me the generic error page (the one that you get when you don't set customErrors

<customErrors mode="RemoteOnly" defaultRedirect="Error.aspx" redirectMode="ResponseRewrite">
    <error statusCode="404" redirect="404.aspx" />
</customErrors>

如果我删除然后 redirectMode =ResponseRewrite部分,它工作正常。

If I remove then redirectMode="ResponseRewrite" part, it works fine.

我敢肯定3.5 SP1安装在服务器上,因为我用在同一服务器托管的其他站点的设置。

I'm sure 3.5 SP1 is installed in the server, because I use the setting in other sites hosted in the same server.

任何想法?

推荐答案

我发现问题是Error.aspx。依然找不到什么在error.aspx引起该问题的实际错误。

I found that the problem was in Error.aspx. Still can't find what was the actual error in error.aspx that causes the problem.

更改页面为静态html​​文件,解决了这个问题。

Changing the page to a static html file solved the problem.

这篇关于ResponseRewrite&QUOT;设置redirectMode = QUOT时的customErrors不工作;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-21 02:25