asp.net httphandler won't invoke

Q

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
 
T

Tod Birdsall

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/securing-html-pages-using-aspnet-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
 
Q

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
 
J

John Timney \(ASP.NET MVP\)

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
 
T

Tod Birdsall

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
 
Q

qwerty

To drhowarddrfinedrhoward ,

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

qwerty

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
 
J

John Timney \(ASP.NET MVP\)

it should probably be if thats the version, is it mapped in IIS

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director
 
Q

qwerty

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?
 
J

John Timney \(ASP.NET MVP\)

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
 
Q

qwerty

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
 
Q

qwerty

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top