I'm getting a “Does not implement IController” error on images and robots.txt in MVC2

后端 未结 6 2240
滥情空心
滥情空心 2020-12-04 09:12

I\'m getting a strange error on my webserver for seemingly every file but the .aspx files.

Here is an example. Just replace \'/robots.txt\' with any .jpg name or .gi

6条回答
  •  心在旅途
    2020-12-04 09:24

    I encountered this error when I request resources that did not exist.

    Specifically, I was requesting a custom IE css file:

    (These are condition comments, interpreted by IE)

    However, the actual resource existed on ~/Content/ie/ie7.css.

    So, without any modifications to the routing, the error was solved by using the correct url of the resource.

提交回复
热议问题