Http Handler not working to retireve .pdf documents from a virtual directory
Posted on 2008-10-17
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"/>.