Last post Jan 07, 2009 10:55 PM by Nai-Dong Jin - MSFT
Jan 04, 2009 05:34 PM|sinsabit|LINK
I think i need to use the ihttphandler interface to enable effective prohibition of users from navigating into, and downloading files from, certain directories on my shared hosted website.
I am developing the site on zs2008 on my local xp pro machine, (have not set the site up as a virtual directory in iis5.1 yet though)
The deployment is onto a shared isp hosting isp provider which is using iis7.
I tried pulling in the msdn walkthrough on httphandlers at http://msdn.microsoft.com/en-us/library/system.web.ihttphandler.processrequest.aspx
but am getting an error when i build from the web.config piece:
<add verb="*" path="handler.aspx" type="HandlerExample.MyHttpHandler,HandlerTest"/>
Can anyone see what I am coing wrong?
Jan 05, 2009 09:50 PM|Nai-Dong Jin - MSFT|LINK
Based on your description, it seems that you are using HttpHandler in a shared web hosting enviroment, right?
If so, i think it's more than likely that they have used @lockElements on httpHandlers, so you cannot use the httphandlers node in the Web.Config file on your site, you need to ask for your hosting provider for more information.
Jan 07, 2009 11:50 AM|sinsabit|LINK
Thanks, but I still can't see why the msdn walthrough does not work on my local xp pro machine
Jan 07, 2009 10:55 PM|Nai-Dong Jin - MSFT|LINK
You need to follow the configuration mentioned in MSDN articles, you also need to check if you have put a general lock on the specific element. What i can suggest is to refer the following article without your details error message.