473,769 Members | 2,355 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2091
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.goo glegroups.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 drhowarddrfined rhoward ,

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\a spnet_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\a spnet_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.goo glegroups.com.. .
Shouldn't it be ...\v1.1.4322\a spnet_isapi.dll ?

qwerty

Nov 19 '05 #10

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

Similar topics

4
1260
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 file extension? For instance, someone accesses a .aspx page. Normally that would only be handled by normal handler. What I want to do is register a handler for this extension, but also allow the normal handler to process it after I am done. I...
3
7972
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 up to the redirect works fine, but I can't get the redirect to work. If I do a ... context.Response.Write("Hello World"); .... the HttpHandler works great and the browser loads the text fine, but if I change it to ...
10
1798
by: Daniel Danilin | last post by:
How can I add/remove an HttpHandler in code (not in web.config)?
1
4670
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 validates a user against some Authentication method and then allows him to continue his request if successfully authenticated or denies him access if not. We use a handler to do this authentication and we'd like to continue normal execution if...
1
1323
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 else. BUT the user can/may create such files (dynamically - filebased CMS), which should be executed then. So, my question is: Can I get a Page-Instance without using PageParser? Obviously I could use it, but I want to check @ runtime if the...
7
2921
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="*" path="*.sgf" type="CustomExtensionHandler, Extenders.CustomExtensionHandler, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d831d925597c1031" validate="True"/> </httpHandlers>
8
3901
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 need to avoid the extra round-trip to the client. I've tried Passing the page name, the full URL, and the instance of the handler class to the Transfer method, but everything gets me the same error 500. Any help would be appreciated.
7
2685
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 accessible to all aspx pages in my project. Session state seems to be working normally in my handler, however, the session variables are not accessible anywhere outside the handler itself. Any ideas?
4
1586
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 there a way I can specify that one handler can only be used on certain pages? like httphandler A is used on page A,B and httphandler B is only used on Page C, D? Cheers Victor
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10222
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10050
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7413
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5310
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3570
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.