HttpHandler的不工作在IIS 7 [英] HttpHandler not working in IIS 7

查看:146
本文介绍了HttpHandler的不工作在IIS 7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经配置在我的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?

推荐答案

注册Htt​​pHandlers的是不同的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>.

请参阅<一href="http://stackoverflow.com/questions/1272971/custom-http-handlers-iis7-and-asp-net/1273021#1273021">this问题一个例子。

这篇关于HttpHandler的不工作在IIS 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆