views:

213

answers:

1

Background

I have a PDF file located (under my Project) in an Assets > Documents folder:

alt text

When my application gets deployed, it gets deployed to a particular folder on the domain. For example, http://www.domain.com/MyAppFolder. I want to be able to access this PDF file by linking to http://www.domain.com/MyAppFolder/Assets/Documents/EZTrac_UserGuide_NewSys.pdf

Problem

I can't seem to get the routing correct for this, as it keeps trying to route this request to a controller. Here is the modification I made to the routing:

routes.IgnoreRoute("MyAppFolder/Assets/Documents/EZTrac_UserGuide_NewSys.pdf");

But this is the result that I get:

The IControllerFactory 'EZTrac.DependencyResolution.ControllerFactory' did not return a controller for a controller named 'Assets'.

+2  A: 

Try removing the MyAppFolder from your routes.

routes.IgnoreRoute("Assets/Documents/EZTrac_UserGuide_NewSys.pdf");
James