Re: Role based security - file downloads



IIS is handling the mapping so you need to change the behaviour there. One way to do this is in IIS map the .PDF to the ASP.Net handler then make sure PDFs are processed as static files by the ASP runtime,

Kevin

Mesan wrote:
I have a directory in an app I'm building that has access limited to
users within a specific role and all aspx pages in that directory are
unavailable just as I'd hope but other files (pdfs and whatnot) can be
downloaded by anyone without authenticating or anything. What does it
take for the use to be redirected to the login page when they try to
access mysite/private/secrets.pdf ?

.



Relevant Pages

  • Re: Role based security - file downloads
    ... handler there (copy the name of the executable from the .aspx handler). ... sure PDFs are processed as static files by the ASP runtime"? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Role based security - file downloads
    ... And just how would one "map the .pdf to the asp.net handler then make ... sure PDFs are processed as static files by the ASP runtime"? ...
    (microsoft.public.dotnet.framework.aspnet)