handler problem
I created a handler which apply watermark to all images from a folder. I declared in web.conf开发者_开发技巧ig:
<add verb="GET" type="ImageWatermarkHandler" path="Item/*.jpg,Item/*.png"/>
On localhost it works but when I put it online it doesn't work. Can anyone help me please?
Thanks, Alina
In IIS7 the HttpHandler declaration is supposed to go in the web.server section. In IIS6 it's inside the system.web.
See the MSDN documentation on registering HttpHandlers.
Try this:
<add verb="GET" type="ImageWatermarkHandler" path="~/Item/*.jpg, ~/Item/*.png" />
精彩评论