我使用log4net的和记录每次我的ASP.NET的应用程序抛出一个错误:System.Web.HttpException文件不存在 - 页面加载就好了(ASP.NET)
protected void Application_Error(object sender, EventArgs e)
{
Exception ex = Server.GetLastError();
Log.Error("An error occurred", ex);
}
唉,每次我访问了我的应用程序中的一个页面,System.Web.HttpException
被捕获,“文件不存在”。
这里的堆栈跟踪:
bei System.Web.StaticFileHandler.GetFileInfo(String virtualPathWithPathInfo, String physicalPath, HttpResponse response)
bei System.Web.StaticFileHandler.ProcessRequestInternal(HttpContext context, String overrideVirtualPath)
bei System.Web.DefaultHttpHandler.BeginProcessRequest(HttpContext context, AsyncCallback callback, Object state)
bei System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
bei System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
我没有任何线索如何调试这一点,这种情况我的ASP.NET开发服务器上和在IIS 7.5我将它部署。
是的,或的favicon.ico robots.txt的。 – 2012-03-01 14:22:44
事实证明,这是谷歌浏览器总是要求的“favicon.ico”,而我忘记了它。 – 2012-03-01 15:31:39
@DennisRöttger+1为什么我还遇到这个错误,这是我没有找到'favicon.ico'我正在使用Firefox。不是铬。谢谢。 – 2013-07-11 02:29:16