Implementing a custom error in global.asax

前端 未结 2 610
悲&欢浪女
悲&欢浪女 2021-01-15 15:28

In my global.asax file, I have the following code:

void Application_Error(object sender, EventArgs e)
{
    Exception TheError = Server.GetLastE         


        
2条回答
  •  没有蜡笔的小新
    2021-01-15 16:13

    Looks like IIS is looking for a page and did not find it.

    Make sure:

    1. 404.aspx is created
    2. customErrors tag from web.config is not present.

提交回复
热议问题