views:

51

answers:

1

In my MVC application I have a folder full of PDF documents users should be able to view. However, my links to them don't seem to work: I get a "resource can't be found error". I'm guessing my problem has something to do with routing.

What do I need to do so that the browser just renders the documents?

+2  A: 

Use IgnoreRoute to exclude specific paths from the routing logic. This post has a number of useful suggestions regarding how to optimise routing.

Also ensure that permissions on the directory and PDF files it contains are correctly set - see this answer.

Vinay Sajip