guitarchord
05-24-2009, 04:29 PM
Hi,
I’m trying to get a custom handler to work on my live server with you guys but it doesn’t seem to work. The custom handler works fine in Visual Studio 2008 on my machine but when I upload it to my hosting space the handler page is never called.
I did some research and it appears I may need to alter my web.config file to work with handler pages differently for IIS 7.0. I’ve read the below article and made changes according to what It says but still no luck!
Here was the article provided by your guys forum:
http://arcware.net/use-a-single-web-config-for-iis6-and-iis7/ (http://arcware.net/use-a-single-web-config-for-iis6-and-iis7/)
And this was the forum post:
http://community.discountasp.net/showthread.php?t=7260&highlight=custom+httphandler (http://community.discountasp.net/showthread.php?t=7260&highlight=custom+httphandler)
Below is my web.config file, essentially it is just the default file when setting up a new site in Visual Studio 2008. All I’ve added was the 4 lines to point to my original handler for serving up MP3 files and now a test handler for capturing .JPG requests. The test handler does nothing to which I just put a debug in their to make sure it was getting called at runtime.
Any help you can provide would be much appreciated as ive been hunting and playing around with this for over 4 hours straight now and still cant get it to work on my hosting space!
Am I on the right track?
Thanks
Rob
Please see attached word doc to view my web.config file.
I’m trying to get a custom handler to work on my live server with you guys but it doesn’t seem to work. The custom handler works fine in Visual Studio 2008 on my machine but when I upload it to my hosting space the handler page is never called.
I did some research and it appears I may need to alter my web.config file to work with handler pages differently for IIS 7.0. I’ve read the below article and made changes according to what It says but still no luck!
Here was the article provided by your guys forum:
http://arcware.net/use-a-single-web-config-for-iis6-and-iis7/ (http://arcware.net/use-a-single-web-config-for-iis6-and-iis7/)
And this was the forum post:
http://community.discountasp.net/showthread.php?t=7260&highlight=custom+httphandler (http://community.discountasp.net/showthread.php?t=7260&highlight=custom+httphandler)
Below is my web.config file, essentially it is just the default file when setting up a new site in Visual Studio 2008. All I’ve added was the 4 lines to point to my original handler for serving up MP3 files and now a test handler for capturing .JPG requests. The test handler does nothing to which I just put a debug in their to make sure it was getting called at runtime.
Any help you can provide would be much appreciated as ive been hunting and playing around with this for over 4 hours straight now and still cant get it to work on my hosting space!
Am I on the right track?
Thanks
Rob
Please see attached word doc to view my web.config file.