HELP! - Custom httpHandler Not Firing

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
drollins
Lieutenant (LT)
Lieutenant (LT)
Posts: 79
Joined: Thu Oct 04, 2007 9:23 am
Location: West Hartford, CT
Contact:

HELP! - Custom httpHandler Not Firing

Post by drollins » 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:

Code: Select all

<img src="Product1_thumb.jpg />
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.
David Rollins
SDC Solutions, Inc.
Information Management, Web Site and Intranet Solutions
http://www.sdcsol.com
http://www.rhinogift.com

User avatar
Intelliflex
Lieutenant (LT)
Lieutenant (LT)
Posts: 78
Joined: Tue Feb 17, 2004 7:51 pm

Post by Intelliflex » Tue Jan 01, 2008 1:14 pm

I know that sometimes the answer is so close I can't see it, hence the tool I'm reaching for is always under the creeper I'm rolling around on...

Just a thought... have you restarted IIS?

drollins
Lieutenant (LT)
Lieutenant (LT)
Posts: 79
Joined: Thu Oct 04, 2007 9:23 am
Location: West Hartford, CT
Contact:

Post by drollins » Tue Jan 01, 2008 5:30 pm

Yes - that had occurred to me but it did nothing.

This is so frustrating because in my stand alone app it works perfectly but in the Able app it is completely ignored.
David Rollins
SDC Solutions, Inc.
Information Management, Web Site and Intranet Solutions
http://www.sdcsol.com
http://www.rhinogift.com

sunpost
Ensign (ENS)
Ensign (ENS)
Posts: 4
Joined: Tue Dec 18, 2007 12:01 pm

Post by sunpost » Tue Jan 01, 2008 9:11 pm

could it be that the .jpg extension needs to be mapped to aspnet_isapi.dll in IIS?

drollins
Lieutenant (LT)
Lieutenant (LT)
Posts: 79
Joined: Thu Oct 04, 2007 9:23 am
Location: West Hartford, CT
Contact:

Post by drollins » Wed Jan 02, 2008 9:12 am

sunpost - I was thinking about that and it may be it. I will give that a whack
David Rollins
SDC Solutions, Inc.
Information Management, Web Site and Intranet Solutions
http://www.sdcsol.com
http://www.rhinogift.com

User avatar
Logan Rhodehamel
Developer
Developer
Posts: 4116
Joined: Wed Dec 10, 2003 5:26 pm

Post by Logan Rhodehamel » Wed Jan 02, 2008 3:06 pm

sunpost wrote:could it be that the .jpg extension needs to be mapped to aspnet_isapi.dll in IIS?
This is my bet as well.
Cheers,
Logan
Image.com

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.

drollins
Lieutenant (LT)
Lieutenant (LT)
Posts: 79
Joined: Thu Oct 04, 2007 9:23 am
Location: West Hartford, CT
Contact:

Post by drollins » Thu Jan 03, 2008 2:54 pm

I will try this and keep you posted
David Rollins
SDC Solutions, Inc.
Information Management, Web Site and Intranet Solutions
http://www.sdcsol.com
http://www.rhinogift.com

Post Reply