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

Posted by blesh on Stack Overflow See other posts from Stack Overflow or by blesh
Published on 2010-01-21T14:20:36Z Indexed on 2010/03/24 0:13 UTC
Read the original article Hit count: 2028

Filed under:
|
|

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 .gif or whatever and you'll get the idea:

The controller for path '/robots.txt' was not found or does not implement IController.

I'm sure it's something to do with how I've setup routing but I'm not sure what exactly I need to do about it.

Also, this is a mixed MVC and WebForms site, if that makes a difference.

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about routing