Tôi đang sử dụng Log4Net và đăng nhập mỗi lần tôi ASP.NET-Application ném một lỗi:System.Web.HttpException File không tồn tại - Trang tải tốt (ASP.NET)
protected void Application_Error(object sender, EventArgs e)
{
Exception ex = Server.GetLastError();
Log.Error("An error occurred", ex);
}
Than ôi, mọi Tôi truy cập vào một trang trên ứng dụng của tôi, một số System.Web.HttpException
bị bắt, "Tệp không tồn tại".
Đây là Stack Trace:
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)
tôi không có bất kỳ đầu mối làm thế nào để gỡ lỗi này, điều này xảy ra trên máy chủ của tôi phát triển ASP.NET và trên IIS 7.5 Tôi triển khai nó trên.
Yep, favicon.ico hoặc robots.txt. –
Khi hóa ra đó là 'favicon.ico' mà Google Chrome luôn yêu cầu và tôi quên bao gồm. –
@ DennisRöttger +1 Tại sao tôi gặp phải lỗi này, cũng không tìm thấy 'favicon.ico' Tôi đã sử dụng Firefox. không phải chrome. cảm ơn. –