Asp.net Global.asax+;应用程序错误中捕获到未知错误

Asp.net Global.asax+;应用程序错误中捕获到未知错误,asp.net,exception-handling,Asp.net,Exception Handling,当我启动程序时,我会立即在日志文件中记录一个“文件不存在”错误。然后,我尝试创建一个没有任何母版页的干净web表单,但仍然收到这个错误,奇怪的是,对我来说可能是好的,因为它没有像通常捕获的异常那样执行重定向。从记录的文件中,我无法从消息中分辨出任何东西。有人有线索吗?谢谢 void Application_Error(object sender, EventArgs e) { // Code that runs when an unhandled err

当我启动程序时,我会立即在日志文件中记录一个“文件不存在”错误。然后,我尝试创建一个没有任何母版页的干净web表单,但仍然收到这个错误,奇怪的是,对我来说可能是好的,因为它没有像通常捕获的异常那样执行重定向。从记录的文件中,我无法从消息中分辨出任何东西。有人有线索吗?谢谢

 void Application_Error(object sender, EventArgs e)
        {
            // Code that runs when an unhandled error occurs       
            Exception objErr = Server.GetLastError().GetBaseException();
            log.Error(objErr.Message, objErr);
            Response.Redirect("~/error.aspx");
        }

ERROR 11 GoogleMap_AutoFill_with_Obtain_LatLong.Global - File does not exist.
System.Web.HttpException (0x80004005): File does not exist.
   at System.Web.StaticFileHandler.GetFileInfo(String virtualPathWithPathInfo, String physicalPath, HttpResponse response)
   at System.Web.StaticFileHandler.ProcessRequestInternal(HttpContext context, String overrideVirtualPath)
   at System.Web.DefaultHttpHandler.BeginProcessRequest(HttpContext context, AsyncCallback callback, Object state)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

看起来像是一个javascript调用Google Map
Lat Long Globe
来自动填充某个地址,并且没有更正设置和调用local,这看起来像是一个文件。