Author: Abdul Javed Khan | Posted on: 10/16/2008 7:04:14 AM | Views : 889

Hi
I  am developing ASP.NET application & i have implemented form authentication in my application.
Since using form authentication we can secure .aspx,.asmx,.vb.cs etc. files..
I read article on applying form authentication for pdf files.
For this in IIS under "Configuration->Add/Edit Application extension" we need to add .pdf file.
But my site is live i can't access IIS on host server.
So is there any way so that i can achieve this using web.config.
I tried by writing code below..but id doesn't work for me.
   <httpHandlers>
      <add path="*.pdf" verb="*" type="System.Web.HttpForbiddenHandler" validate="false" />
  </httpHandlers>


Please help me on this issue.
 
Thanks & Regards,
Abdul Javed Khan

 

...

Go to the complete details ...