HELP! - Custom httpHandler Not Firing
Posted: Tue Jan 01, 2008 8:30 am
I am attempting to circumvent an AOL nightmare that does not like dynamically sized images via .ashx files by creating an httpHandler that catches all requests for *.jpg files and based on the image name rezises them dynamically (ie. I only want to manage 1 image per product)
See my related post: viewtopic.php?t=6045
So my goal is the following:
If I have an image called Product1.jpg and I want it sized to a thumbnail predefined size, I would simply create the image tag like this:
My handler is set to "listen" for anything *.jpg so it would take this in, confirm that the base image (without the size suffix - ie.Product1.jpg ) exists (if it does not a default noimageavail.jpg is used instead etc) then resizes the image as required and streams back the bytes.
I'm doing all this to trick AOL into thinking that it is just calling a simple jpg and not to do anything funky (which it does with the ashx approach basically killing performance 100%)
Locally on my dev box I have done the following:
I have successfully created a test project that will do this for me and stepped through my handler so I know it works (if not perfectly then pretty darn well).
So I then am thinking I am good to go, pop the dll in the Able bin dir and set up the httpHandlers section of the config file ok
The app_data/logs/log file does not complain that the handler cant load (it does complain if I on purpose change the name of the dll or class name my handler) So I know it is loading ok
My local site fires up ok
But my handler is not being used at all - anything that is a virtual "to be sized" image url comes back as a broken link - it is like my handler is just being ignored - tolerated... but ignored.
Is there something you guys (Able) have done to stop this from working? Is there a setting I need to tweak?
Anyhelp anyone can give me would be greatly appreciated.
See my related post: viewtopic.php?t=6045
So my goal is the following:
If I have an image called Product1.jpg and I want it sized to a thumbnail predefined size, I would simply create the image tag like this:
Code: Select all
<img src="Product1_thumb.jpg />
I'm doing all this to trick AOL into thinking that it is just calling a simple jpg and not to do anything funky (which it does with the ashx approach basically killing performance 100%)
Locally on my dev box I have done the following:
I have successfully created a test project that will do this for me and stepped through my handler so I know it works (if not perfectly then pretty darn well).
So I then am thinking I am good to go, pop the dll in the Able bin dir and set up the httpHandlers section of the config file ok
The app_data/logs/log file does not complain that the handler cant load (it does complain if I on purpose change the name of the dll or class name my handler) So I know it is loading ok
My local site fires up ok
But my handler is not being used at all - anything that is a virtual "to be sized" image url comes back as a broken link - it is like my handler is just being ignored - tolerated... but ignored.
Is there something you guys (Able) have done to stop this from working? Is there a setting I need to tweak?
Anyhelp anyone can give me would be greatly appreciated.