惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 聂微东
GbyAI
GbyAI
G
Google Developers Blog
大猫的无限游戏
大猫的无限游戏
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - 叶小钗
A
About on SuperTechFans
M
MIT News - Artificial intelligence
宝玉的分享
宝玉的分享
雷峰网
雷峰网
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Martin Fowler
Martin Fowler
Google DeepMind News
Google DeepMind News
博客园 - Franky
B
Blog RSS Feed
Y
Y Combinator Blog
Stack Overflow Blog
Stack Overflow Blog
MongoDB | Blog
MongoDB | Blog
Last Week in AI
Last Week in AI
T
The Blog of Author Tim Ferriss
The GitHub Blog
The GitHub Blog
S
SegmentFault 最新的问题
罗磊的独立博客
Apple Machine Learning Research
Apple Machine Learning Research

博客园 - soonssa

离线使用Visual Studio的Javascript Prettier插件 在各页顶端以标题行形式重复出现无效 转:Windows 8上强制Visual Studio以管理员身份运行 读取Excel是数据截断问题 将word表格中数据导出到Excel jQuery UI Autocomplete 1.8.16中文输入修正 一次诡异的http404错误的解决 Sqlite Expert Professional 3 破解 复制SqlServer备份到其他计算机,实现异地备份 - soonssa - 博客园 贝电BD201 ADSL MODEM 设置 jquery UI Webservice的安全问题 从Enterprise Library获取的数据的DataGridView的中文排序 ASPNET内置身份认证,用户身份串门 media palyer activex播放问题 CuteEditor允许插入javascipt语句 - soonssa - 博客园 两个客户端操作TreeView节点CheckBox的小例子(转) FixedDialog模式 图书馆专业英语词汇
莫名其妙的“文件不存在”错误 - soonssa - 博客园
soonssa · 2008-08-17 · via 博客园 - soonssa

我是在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 的帮助和支持中心。