How do I register multiple paths for a HttpHandler in IIS7?

Posted by Daniel T. on Stack Overflow See other posts from Stack Overflow or by Daniel T.
Published on 2010-06-16T03:15:02Z Indexed on 2010/06/16 3:22 UTC
Read the original article Hit count: 280

Filed under:
|
|

I have a HttpHandler that resizes images based on the querystring, so requesting something like:

http://server/image.jpg?width=320&height=240

will give you a resized image that's 320x240.

In the IIS Manager, under Handler Mappings, I mapped my handler's path as *.jpg,*.gif,*.bmp,*.png. However, this doesn't activate the handler. If I change it to just *.jpg, then it works.

My question is, do I have to create 4 separate mapping entries, one for each image type, or is there some way to combine multiple extensions in one path?

© Stack Overflow or respective owner

Related posts about iis

Related posts about iis7