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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.