我有一个带有 url 的路由页面,例如http://www.example.com/2/2332/example 现在当我在 url http://www.example.com/2/2332/example中给出一个句点时。我被带到服务器错误页面:
HTTP 404。您正在查找的资源(或其依赖项之一)可能已被删除、名称已更改或暂时不可用。请查看以下 URL 并确保其拼写正确。
我想重定向到同一页面http://www.example.com/2/2332/example或我的自定义 404 错误页面http://www.example.com/404.aspx。
我尝试调试,但没有遇到 Global.asax.cs 中的 Application_Error 事件。
任何帮助解决这个问题?