代码之家  ›  专栏  ›  技术社区  ›  Petras

如何在IIS7中获取有意义的错误消息?

  •  2
  • Petras  · 技术社区  · 16 年前

    我把这个问题转移到 Server Fault 可能是更多的拨款者。

    我有一个经典的ASP网站,在IIS7崩溃。 它正在崩溃,因为IIS不允许文件上载超过特定大小。我知道这是因为低于200k的文件可以正常工作。 我删除了IIS中的状态代码500错误,但我仍然没有得到文件名和代码失败的行,因为我在本地运行时做的那样。

    相反,我得到:

    The page cannot be displayed because an internal server error has
    occurred.
    If you are the system administrator please click here to find out 
    more about this error.
    

    如何获得文件名和代码失败的行?

    alt text
    (来源: yart.com.au )

    服务器故障的答案是。。。

    向下滚动并将Send Errors To Browser更改为True。可能需要重新设置,不确定。

    2 回复  |  直到 7 年前
        1
  •  2
  •   Glycerine    16 年前

    它调用的详细错误消息。在测试过程中非常有用

    http://blogs.iis.net/bills/archive/2006/10/19/Improving-Custom-Errors-for-IIS7-Server.aspx

        2
  •  1
  •   Alexan    16 年前

    它并不能完全回答您关于错误页的问题,但是如果您在上载大文件时遇到问题,您可能应该更改IIS中的AspMaxRequestEntityAllowed设置。 http://forums.iis.net/t/1130837.aspx

    推荐文章