得到错误信息

来源:互联网 发布:苹果手机铃声软件推荐 编辑:程序博客网 时间:2024/04/27 16:22

global.asax.cs文件中加入

  protected void Application_Error(Object sender, EventArgs e)
  {
this.Response.Write(Server.GetLastError());  
   this.Response.Write(this.Request.Url);
   Server.ClearError();
  }

原创粉丝点击