zoukankan      html  css  js  c++  java
  • 莫名其妙的“文件不存在”错误

    我是在Global.asax文件中用Application_Error捕捉错误的,具体代码如下:

            protected void Application_Error(object sender, EventArgs e)
            {
                ExceptionPolicy.HandleException(Server.GetLastError(), "Unhandled Policy");

                Server.ClearError();
                Response.Redirect("~/Error.aspx", false);
            }

    错误用Enterprise Library的日志模块记录到事件处理器中,经常的发现记录到“文件不存在”错误,可是在前台没有发现异常啊,不知道是什么原因?

     

    事件类型: 错误
    事件来源: LibWeb Logging
    事件种类: 无
    事件 ID: 100
    日期:  2008-08-17
    事件:  13:45:52
    用户:  N/A
    计算机: WWW-SOONSSA
    描述:
    Timestamp: 2008-08-17 5:45:52
    Message: HandlingInstanceID: 1d53d5dc-56fe-4f93-ba3e-3400f9248409
    An exception of type 'System.Web.HttpException' occurred and was caught.
    ------------------------------------------------------------------------
    08/17/2008 13:45:52
    Type : System.Web.HttpException, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
    Message : 文件不存在。
    Source : System.Web
    Help link :
    ErrorCode : -2147467259
    Data : System.Collections.ListDictionaryInternal
    TargetSite : System.IO.FileInfo GetFileInfo(System.String, System.String, System.Web.HttpResponse)
    Stack Trace :    在 System.Web.StaticFileHandler.GetFileInfo(String virtualPathWithPathInfo, String physicalPath, HttpResponse response)
       在 System.Web.StaticFileHandler.ProcessRequestInternal(HttpContext context)
       在 System.Web.DefaultHttpHandler.BeginProcessRequest(HttpContext context, AsyncCallback callback, Object state)
       在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    Additional Info:

    MachineName : WWW-SOONSSA
    TimeStamp : 2008-08-17 5:45:52
    FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    AppDomainName : bd4f8eaa-9-128634247639539792
    ThreadIdentity :
    WindowsIdentity : WWW-SOONSSA\soonssa

    Category: General
    Priority: 0
    EventId: 100
    Severity: Error
    Title:LibWeb Exception Handling
    Machine: WWW-SOONSSA
    Application Domain: bd4f8eaa-9-128634247639539792
    Process Id: 3424
    Process Name: C:\Program Files\Common Files\Microsoft Shared\DevServer\9.0\WebDev.WebServer.exe
    Win32 Thread Id: 3776
    Thread Name:
    Extended Properties:

    有关更多信息,请参阅在 http://go.microsoft.com/fwlink/events.asp 的帮助和支持中心。

  • 相关阅读:
    常见HTTP状态(304,)
    面试错题集
    从零构建以太坊(Ethereum)智能合约到项目实战——学习笔记1
    windows 以太坊开发框架Truffle环境搭建
    Ollydbg使用问题汇总
    网络攻防实战技术之——缓冲区溢出篇
    如何批量删除.svn文件
    树莓派安装nextcloud、Seafile
    汇编语言从入门到精通-5微机CPU的指令系统2
    kali安装vm tools正确操作
  • 原文地址:https://www.cnblogs.com/soonssa/p/1269787.html
Copyright © 2011-2022 走看看