HttpHandler not working in IIS 7

Ronnie Overby picture Ronnie Overby · Sep 23, 2009 · Viewed 19.9k times · Source

I have an HttpHandler configured in my web.config file like so:

<add verb="GET,HEAD,POST"
     path="TinyMCE.ashx"
     type="Moxiecode.TinyMCE.Web.HttpHandler,Moxiecode.TinyMCE" />

When I deploy to IIS 7 the handler stops working (404).

What do I need to do to get this working?

Answer

M4N picture M4N · Sep 23, 2009

Registration of HttpHandlers is different for IIS7 than for previous versions of IIS. Specifically, you register the handlers in the web.config section named <system.webServer><handlers> not in <httpHandlers>.

See this question for an example.