IIS 404 Custom Error not working as expected

后端 未结 4 725
被撕碎了的回忆
被撕碎了的回忆 2020-12-20 13:13

I\'m working on IIS6, ASP.NET, VS2008. The web site uses a custom error handler to catch 404 errors and serve an alternate page. When presented with an url of the form:

4条回答
  •  粉色の甜心
    2020-12-20 13:39

    You might wanna try this:

    In IIS6:

    • open "properties" for your website
    • go to "home directory" tab
    • click on "configuration"
    • look for the extension ".aspx"
    • click on "edit"
    • check the checkbox which says "verify that file exists"

    edit

    And what about this: http://msdn.microsoft.com/en-us/library/h0hfz6fc(VS.80).aspx

      
         
    
    

    Since 'RemoteOnly' specifies that custom errors are shown only to the remote clients, and that ASP.NET errors are shown to the local host.

提交回复
热议问题