473,396 Members | 2,003 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

asp.net httphandler won't invoke

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

Nov 19 '05 #1
14 2071
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

Nov 19 '05 #2
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

Nov 19 '05 #3
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...
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

Nov 19 '05 #4
Hi Qwerty,

Something similar happened to me, but when I specified the
<httpHandlers> tag in the Web.config it worked fine. I just told IIS to
have the .NET Framework handle that particular extension. What does
your entry in IIS look like?

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

Nov 19 '05 #5
Qwerty, do I know you from win32asm? This is Doc.
Nov 19 '05 #6
To drhowarddrfinedrhoward ,

No, sorry I don't do win32asm. It may be another qwerty.

Nov 19 '05 #7
This following is my entry in apps mapping

executable: ...\v1.1.4322\aspnet_isapi.dll
extension: .yyy
Verbs: All Verbs
Script engine: checked
Check that file exists: unchecked

Nov 19 '05 #8
Shouldn't it be ...\v1.1.4322\aspnet_isapi.dll?

qwerty

Nov 19 '05 #9
it should probably be if thats the version, is it mapped in IIS

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"qwerty" <ar*****@wowgao.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Shouldn't it be ...\v1.1.4322\aspnet_isapi.dll?

qwerty

Nov 19 '05 #10
Yes

Nov 19 '05 #11
I have talked to the third party and they even give me screen cap (a
while ago). There should be nothing wrong in the "normal" setup. The
version of .net framework should be correct. Something might be hidden.
Is there anything that will "intercept" the request "before" the
httphandler?

Nov 19 '05 #12
There are handlers in the isapi pipeline that may (will) have priority over
your own, but logically if its configured correctly to pass requests to your
extension through the asp.net dll and the web.config entries are correct
then it should work. The pipeline will get to your handler in due course.

I would pass your hosting company a copy of your setup on your own machine,
so they can mimic it and see if it works. If your handler does anything odd
with the pages then it may be a permissions problem.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"qwerty" <ar*****@wowgao.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
I have talked to the third party and they even give me screen cap (a
while ago). There should be nothing wrong in the "normal" setup. The
version of .net framework should be correct. Something might be hidden.
Is there anything that will "intercept" the request "before" the
httphandler?

Nov 19 '05 #13
I asked them to check metabase.xml as well.

However, the last time I checked with the third party, everything
starts to work. The problem solved.

Thanks everyone for the inputs.

qwerty

Nov 19 '05 #14
I asked them to check metabase.xml as well.

However, the last time I checked with the third party, everything
starts working. The problem solved.

Thanks everyone for the inputs.

qwerty

Nov 19 '05 #15

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Peter Rilling | last post by:
Okay, I need to create an HttpHandler that will process all requests to the server so that I can perform special logging. What happens if there are more than one handler registered with the same...
3
by: Jed | last post by:
I have written an HttpHandler which I invoke through an ashx page. The HttpHandler does various things to process the request, then it is supposed to redirect to a confirmation page. Everything...
10
by: Daniel Danilin | last post by:
How can I add/remove an HttpHandler in code (not in web.config)?
1
by: ori | last post by:
Hi, I'm facing a problem when trying to continue normal execution flow within a HttpHandler ProcessRequest method. In my application we currently have a custom HttpHandler registered which...
1
by: Patrick | last post by:
Hi you all, I'm facing a litle problem with a custom httpHandler for ASP.Net. The application will be precompiled for deployment, so I won't have any .aspx files which contain code or anything...
7
by: Adam | last post by:
Im trying to add an httphandler for all *.sgf file extensions. I have developed the handler, 1. installed it into the gac 2. added it to the machine.config: <httpHandlers> <add verb="*"...
8
by: bryan | last post by:
I've got a custom HttpHandler to process all requests for a given extension. It gets invoked OK, but if I try to do a Server.Transfer I get an HttpException. A Response.Redirect works, but I really...
7
by: Ty | last post by:
Hi, All- I have a custom httphandler that outputs an image to the browser based upon some user input. I'd like to be able to store information about that image in session and have them...
4
by: Victor | last post by:
Hi Guys I have a problem with my httphandler here. I have several httphandler in my application. each of them do the different job. but I found sometimes it really slow down the performance. Is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.