0

I have an application where the user is required to log in running on asp.net 2.0

I have added .doc and .pdf to the application extensions area so that outside users

cannot go directly to the .doc or .pdf file without logging in.

When I click on a .doc or .pdf file to view i get

Internet Explorer cannot display the webpage
when I take this out of the application extensions it works but then IIS is not controlling security.

Has anyone had this problem and what solution fixed it.

Thanks

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by tylermaudlin
0

enable folder access rules via web.config file. then put all the secure files in that folder. it is really easy to implement.

0

acctually this is what fixed my problem

<httpHandlers>
<add path="*.pdf" verb="*" type="System.Web.StaticFileHandler" />
			<add path="*.doc" verb="*" type="System.Web.StaticFileHandler" />
</httpHandlers>
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.