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?
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
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.
Method 2
We have a legacy application where changing the webconfig to user system.webServer -> handlers was not an option. We solved this 404 issue by setting the application pool’s “Managed Pipeline Mode” to “Classic” on our development machines.
Here is the blog post where I found this solution http://codeskaters.blogspot.ae/2014/04/httphandler-error-404-not-found.html
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0