IIS 7.0 doesn't display custom error pages

前端 未结 4 1390
太阳男子
太阳男子 2021-02-07 18:52

I\'m running an application that has its own error handlers. Error pages are displayed properly while testing in dev environment (error pages are displayed properly).
Howe

4条回答
  •  广开言路
    2021-02-07 19:44

    There is a setting in the applications Web.config file to set the debug mode:

    Default is:

    
    

    Try setting it to "Off" (Note: the value is case sensitive!)

    
    

    I'm not sure if this setting is respected by IIS7, but since you see different behaviour on your development environment from the deployed, this was my fist guess. To test if this is the case, you can try to run your dev app from a different machine in your network if you have that possibility.

提交回复
热议问题