我已经配置在我的web.config文件中像这样一个HttpHandler:
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" />
当我部署到IIS 7中的处理程序停止工作(404)。
When I deploy to IIS 7 the handler stops working (404).
什么我需要做的就是这个工作?
What do I need to do to get this working?
注册HttpHandlers的是不同的IIS7比IIS的previous版本。具体而言,您在名为web.config部分,注册处理程序&LT; system.webServer&GT;&LT;处理&GT;
不是&LT; HttpHandlers的&GT;
。
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>
.
请参阅this问题一个例子。