1

当我启动我的程序时,我会立即在我的日志文件中记录一个“文件不存在”错误。然后,我尝试创建一个没有任何母版页的干净 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)
4

0 回答 0