In your case I recommend you check these help articles that explain in details how to use Generic Handlers (.ashx files)
works out of the box and you can debug the code inside the handler as well. You do not need to perform any extra steps in order to make the example to work. A simplified version of the same example is attached to this code library
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items