문제

I just encountered an error in an MVC app I'm building because the browser requested /favicon.ico which matches a route, but for which there is no controller.

What is the recommended way of handling a controller request such as this?

도움이 되었습니까?

해결책

Uhm, I should've looked a bit further before asking: Custom Controller Factory, Dependency Injection / Structuremap problems with ASP.NET MVC

A simple 'ignore route' entry will do the trick.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top