开发者

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" />
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜