在IIS7中忽略自定义404页面?

时间:2012-10-20 15:22:12

标签: iis-7 error-handling

我无法让自定义错误页面起作用。

我在网上尝试了很多片段......但无济于事。

我见过一些关于禁用net 3.5错误的内容,但不确定它是否适用于我。

在我的web.config中我有这个

<customErrors mode="On" defaultRedirect="custom404.html">
      <error statusCode="404" redirect="custom404.html" />
   </customErrors>

我有一个.html文件,根目录中有代码。

我刚收到通用错误404页面..内容未找到错误。我怎么能超越它?希望有人能指出我正确的方向。

我是否需要创建.aspx文件而不是.html?

你可以看到这个@ http://www.global-perspectives.eu/thisisnotarealurl

0 个答案:

没有答案
相关问题