?
Solved

Http Handler not working to retireve .pdf documents from a virtual directory

Posted on 2008-10-17
2
Medium Priority
?
605 Views
Last Modified: 2013-11-22
I've created a website in asp.net, framework 2.0 using VS2005.  I've got an .aspx page with hyperlinks that map down to a virutal directory on the website to show .pdf documents when a user clicks on the links.  When I create the link to the .pdf files, I swap out part of the path with a session id so that no one can grap that URL and email it to someone else.  When a user clicks on the link my HTTP Handler swaps out the session id with the correct path to the file.  This all works on my development machine but when I deploy it to a server I get the Http error 404.  I believe my http handler is not firing on the test machine.   On the virutal server properties I configured a windows account to connect  as that account.  I left anonymous checked with the default account, IUSR.  Is there something that I'm missing?  Sorry for the long explanation, and if this has already been posted.  This has to be a configuration setting I'm missing or that the http hander is not registered correctly.  

Here is my http handler on my config file,
<add verb="GET" path="*.pdf" type="Glidewell.Handler.ResourceHandler, Glidewell.Handler"/>.

Thanks.
0
Comment
Question by:GLlano
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 13

Expert Comment

by:crazyman
ID: 22742938
0
 

Accepted Solution

by:
GLlano earned 0 total points
ID: 22798853
I found the solution.  The issue was that the website tries first to check if the file exists before it tries to excute the hander for the pdf file.  You need to perform the following steps to take this off from
checking.
1.) Go into IIS
2.) Right mouse click on your website, go to properties.
3.) Go to the Home directory tab.
4.) Click on the Configuration button.
5.) Look for the .pdf file extension and click on the Edit button.
6.) Uncheck the  Check if file exists checkbox button.
7.) Click on Ok to exit the screens.
0

Featured Post

Get MySQL database support online, now!

At Percona’s web store you can order your MySQL database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
What You Need to Know when Searching for a Webhost Provider
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question