Adding custom HttpHandler

Angel Chorbadzhiev asked on September 3, 2014 14:38

Hi, I want to add custom Http handler, which should process an image when it is requested from a custom web part. I tried to do it by adding a reference to the assembly which contains the handler and adding a record in system.webServer -> handlers section into Web.config file, but without success. Could you give me any advice how this can be achieved? Thanks.

Recent Answers


Yehuda Lando answered on September 3, 2014 15:38

It's just like adding an httphandler to any other asp.net application. What problem did you run into?

0 votesVote for this answer Mark as a Correct answer

Angel Chorbadzhiev answered on September 3, 2014 16:55

Well, let say I want to use handler called MyHandler.axd. When I test it on a test web application and make the following request: http://localhost:

0 votesVote for this answer Mark as a Correct answer

Angel Chorbadzhiev answered on September 3, 2014 16:59

Well, let say I want to use handler called MyHandler.axd. When I test it on a test web application and make the following request: http://localhost:some_port/MyHandler.axd it is working fine. When I try to do the same with Kentico website it gives error: "Path '/MyHandler.axd' was not found." I am running Kentico website on ASP.NET Development Server.

0 votesVote for this answer Mark as a Correct answer

Angel Chorbadzhiev answered on September 3, 2014 17:51

I found the answer. I needed to add another record in Web.config in system.web -> httpHandlers

Thanks to confirm that I was on the right way.

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.