c# - Why isn't my Route.Ignore working on this static file in my ASP.NET MVC application? -


background

i have pdf file located (under project) in assets > documents folder:

alt text

when application gets deployed, gets deployed particular folder on domain. example, http://www.domain.com/myappfolder. want able access pdf file linking http://www.domain.com/myappfolder/assets/documents/eztrac_userguide_newsys.pdf

problem

i can't seem routing correct this, keeps trying route request controller. here modification made routing:

routes.ignoreroute("myappfolder/assets/documents/eztrac_userguide_newsys.pdf"); 

but result get:

the icontrollerfactory 'eztrac.dependencyresolution.controllerfactory' did not return controller controller named 'assets'.

try removing myappfolder routes.

routes.ignoreroute("assets/documents/eztrac_userguide_newsys.pdf"); 

Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -