asp.net httphandler不会调用 [英] asp.net httphandler won't invoke

查看:76
本文介绍了asp.net httphandler不会调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我正在使用第三方赢取2003 iis 6.0来为我的网站服务。

该网站有一个httphandler,可以做一些自定义工作。


当我尝试从某个网址调用中调用httphandler时,它不会启动


并给出404错误网址。


我个人在本地创建一个简单的win 2003 iis 6.0服务器。

httphandler工作正常。


asp.net中有什么东西阻止调用httphandler吗?什么

是修复?


谢谢,


qwerty

Hi,

I am using a third party win 2003 iis 6.0 to serve my website.
The web site has a httphandler which does some custom jobs.

When I try to invoke the httphandler from some url call, it won''t start

and give a 404 error on the url.

I personally create a plain win 2003 iis 6.0 server locally. The
httphandler works fine.

Is there anything in asp.net prevent invoking a httphandler? And what
are the fixes?

Thanks,

qwerty

推荐答案

您好Qwerty,


您使用的是什么版本的.NET Framework?使用ASP.NET 2.0和HttpHandlers我遇到了问题。

。查看以下文章

我的博客了解详情,看看是否有帮助:

http://tod1d.blogspot.com/2005/01/se...net-20- on.html


你自己构建了这个HttpHandler吗?你如何指定什么

扩展应该使用HttpHandler?通常你可以在应用程序的Machine.Config或Web.Config中使用



Tod Birdsall,MCP
http://tod1d.blogspot.com

Hi Qwerty,

What version of the .NET Framework are you using? I have had issues
with ASP.NET 2.0 and HttpHandlers. Check out the following article on
my blog for details and see if it helps:

http://tod1d.blogspot.com/2005/01/se...net-20-on.html

Did you build this HttpHandler yourself? How do you specify what
extension should use the HttpHandler? Normally you do this in either
the Machine.Config or Web.Config of the application.

Tod Birdsall, MCP
http://tod1d.blogspot.com

我们使用win 2003,iis 6.0,web.config来声明httphandler。


我们的团队构建了这个HttpHandler。我们在web.config中特定处理程序

如下


< httpHandlers>

< add verb =" * "路径= QUOT * YYY"。 type =" xx.zz,xx" />


和delcare.yyy映射在iis 6.0配置中。


它适用于我构建的普通wini win 2003 iis 6.0但它确实

无法与第三方获胜2003 iis 6.0


不知道这个神秘的行为。一个迹象是,自定义

假URL正在服务并给出404错误而不是抓住

.yyy扩展并调用httphandler。


请帮忙。


qwerty

We are using win 2003, iis 6.0, web.config for declaring httphandler.

Our team build this HttpHandler. We specific the handler in web.config
as follow

<httpHandlers>
<add verb="*" path="*.yyy" type="xx.zz, xx" />

And delcare the ".yyy" mapping in iis 6.0 configuration.

It works in a plain vanilla win 2003 iis 6.0 that I build but it does
not work with a third party win 2003 iis 6.0

No idea on this mysterious behaviour. One indication is that the custom
fake URL is being serve and give a 404 error instead of grabbing the
".yyy" extension and invoking the httphandler.

Please help.

qwerty


可能是服务器托管服务商必须将您的扩展请求映射到asp.net dll,因此您的处理程序实际上可以接收请求


-

问候


John Timney

ASP.NET MVP

Microsoft Regional导演


" qwerty" < AR ***** @ wowgao.com>在消息中写道

news:11 ********************** @ f14g2000cwb.googlegr oups.com ...
could it be that the server hoster has to map request for your extension to
the asp.net dll, so your handler can actually pick up the request

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"qwerty" <ar*****@wowgao.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
我们使用win 2003,iis 6.0,web.config来声明httphandler。

我们的团队构建了这个HttpHandler。我们将web.config中的处理程序具体化为

< httpHandlers>
< add verb =" *"路径= QUOT * YYY"。 type =" xx.zz,xx" />

并且delcare.yyy在iis 6.0配置中进行映射。

它可以在一个简单的vanilla win 2003 iis 6.0中运行,但它确实无法与第三方获胜2003 iis 6.0

不知道这种神秘的行为。一个迹象是,定制的伪造URL正在服务并给出404错误而不是抓住
.yyy扩展并调用httphandler。

请帮助。

qwerty
We are using win 2003, iis 6.0, web.config for declaring httphandler.

Our team build this HttpHandler. We specific the handler in web.config
as follow

<httpHandlers>
<add verb="*" path="*.yyy" type="xx.zz, xx" />

And delcare the ".yyy" mapping in iis 6.0 configuration.

It works in a plain vanilla win 2003 iis 6.0 that I build but it does
not work with a third party win 2003 iis 6.0

No idea on this mysterious behaviour. One indication is that the custom
fake URL is being serve and give a 404 error instead of grabbing the
".yyy" extension and invoking the httphandler.

Please help.

qwerty



这篇关于asp.net httphandler不会调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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