mvc: does the favicon.ico also look for a controller?

前端 未结 5 1954
灰色年华
灰色年华 2020-12-05 09:34

I get an error:

\"The controller for path \'/favicon.ico\' was not found or does not implement IController\"

Then I thought: how

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-05 10:06

    You are probably getting this with the VS web server. Right?

    You wouldn't get this with IIS since IIS (by default) handles requests for images (.ico, .jpg, .gif, et cetera) and therefore they don't make it to your app.

提交回复
热议问题