I get an error:
"The controller for path '/favicon.ico' was not found or does not implement IController"
Then I thought: how does the framework know for which files it has to instantiate a controller, because the same thing is true for script, css and other files?
(never thought of that, but now the favicon is complaining, I was wondering....)
But back to the error, why does that occur?
Whenever you open any website, you see an small icon or image on left side of the window tab, That small icon is called Favicon. If you have not noticed earlier,then just open any website and check. For an example: open www.w3schools.com and see on the left side of tab.
Also, MVC relies heavily on reflection, which allows you to inspect types at runtime using strings. Reflection is used in many programming frameworks.
Add this to you global.asax:
routes.IgnoreRoute("favicon.ico");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With