我正在使用ASP.NET MVC 3
. 我也在使用Autofac
and MVC Extensions
。我最初得到的错误是:
The controller for path '/favicon.ico' was not found or does not implement IController.
我阅读了几篇文章,他们都建议我输入以下内容:
Routes.IgnoreRoute("{*favicon}", new { favicon = @"(.*/)?favicon.ico(/.*)?" });
然后我开始收到以下错误:
File does not exist.
ExceptionType:HttpException Stacktrace:
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)
该错误并没有告诉我太多,因为我不知道它试图打开什么文件?我将如何解决这个问题?我没有使用网站图标,我不想要一个。我正在使用Internet Explorer 8
.