ASP.NET MVC thinks my virtual directory is a controller

Posted by kmehta on Stack Overflow See other posts from Stack Overflow or by kmehta
Published on 2010-04-28T14:28:18Z Indexed on 2010/04/28 14:33 UTC
Read the original article Hit count: 296

I have a virtual directory under my MVC website in IIS called "Files". This directory is at the same level as my Views directory. When I link to a file from my MVC app to a file under my Files directory, I get the following error:

The controller for path '/Files/Images/1c7f7eb8-5d66-4bca-a73a-4ba6340a7805.JPG' was not found or does not implement IController.

It thinks that my Files VD is a controller. How do I access my files like a normal VD without MVC interfering?

Thanks.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about asp.net-mvc