application extension problem

Please support our ASP.NET advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
Thread Solved
Reply

Join Date: Nov 2008
Posts: 2
Reputation: tylermaudlin is an unknown quantity at this point 
Solved Threads: 0
tylermaudlin tylermaudlin is offline Offline
Newbie Poster

application extension problem

 
0
  #1
Nov 21st, 2008
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
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 2,052
Reputation: serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light 
Solved Threads: 118
Featured Poster
serkan sendur serkan sendur is offline Offline
Postaholic

Re: application extension problem

 
0
  #2
Nov 25th, 2008
enable folder access rules via web.config file. then put all the secure files in that folder. it is really easy to implement.
Due to lack of freedom of speech, i no longer post on this website.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 2
Reputation: tylermaudlin is an unknown quantity at this point 
Solved Threads: 0
tylermaudlin tylermaudlin is offline Offline
Newbie Poster

Re: application extension problem

 
0
  #3
Nov 25th, 2008
acctually this is what fixed my problem
  1. <httpHandlers>
  2. <add path="*.pdf" verb="*" type="System.Web.StaticFileHandler" />
  3. <add path="*.doc" verb="*" type="System.Web.StaticFileHandler" />
  4. </httpHandlers>
Last edited by peter_budo; Nov 28th, 2008 at 1:17 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the ASP.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC