So after testing with this
http://haacked.com/archive/2008/03/13/url-routing-debugger.aspx. I found
that the page in question just went directly to a 404 page without going
into the mvc routing.

I've also had the same result (eg, Direct 404) even after trying this
solution:
http://stackoverflow.com/questions/2541650/asp-net-mvc-not-using-controller-for-explicit-file-route-in-iis7

:(


On Sun, Jan 29, 2012 at 3:47 PM, Michael Ridland <[email protected]> wrote:

> Mapping .css and image files through asp.net even with Integrated
> Pipeline and asp.net MVC 3
>
> I've got some complex routes setup in my asp.net mvc 3 project, unit
> tested and working on development. For the most part they're working with
> IIS7 and Integrated Pipeline and having mapAllRequests=true.
>
> But I'm also doing some funky routing with 'some' of the requests for
> images and css. I'm not sure if it's the logic or if it's IIS taking over
> when it see's css or img files. I want IIS to take over if it finds the
> static file otherwise send it to the mvc routing, and from what I read this
> is how it should work?
> Someone suggested 'routes.RouteExistingFiles = true' but this is not what
> I'm looking for because:
> -The files don't actually exist on disk (therefore should go through the
> routes?)
>
> -The routes are 100% the same as on the dev environment/in unit tests
>
> Thanks in advance for your help.
>
> Thanks
>
>
>


-- 

*Michael Ridland | ThinkSmart Digital*
Managing Director
P. 0404 865 350
E. [email protected]
W. www.thinksmartdigital.com.au
T. www.twitter.com/rid00z
L. au.linkedin.com/in/michaelridland


 <http://au.linkedin.com/in/michaelridland>

Reply via email to