PDF permissions management with ASP.NET - Timeout Issue

Posted by Ryan Smith on Stack Overflow See other posts from Stack Overflow or by Ryan Smith
Published on 2009-03-25T16:55:17Z Indexed on 2010/03/16 23:01 UTC
Read the original article Hit count: 351

Filed under:
|

I have a website that has several PDF files. I need to have quite a few of them locked down with the standard ASP.NET authentication (in a folder with web.config that denies anonymous users).

I set PDF files to get handled by the ASP.NET worker process and added:

<add type="System.Web.StaticFileHandler" path="*.pdf" verb="*" />

to my web.config, but for some reason they hang when downloading. I've seen this issue before on an old server, and for the live of me I can't remember what I did to solve it. Does anyone have any idea?

Thanks.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about pdf