ASP.NET / Web.config: customErrors redirect only on a 404

前端 未结 2 2105
时光说笑
时光说笑 2021-02-14 02:05

I have this scenario:

A user comes to my site and follows a link, which doesn\'t exists anymore, he should be redirected to a custom errorpage. (that works)

If a u

2条回答
  •  你的背包
    2021-02-14 02:47

    Ray Van Halens Answer is correct, but this was not the actual problem.

    The reason for not showing stacktrace is a bug in mono itself. There is no other way then write an own error page where the stacktrace is dispayed.

提交回复
热议问题