473,398 Members | 2,368 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,398 software developers and data experts.

IHttpHandlerFactory registration

ASP.Net experts :

Fairly new to ASP.net, and I'm struggling to register a custom handler
in the <httpHandlers> section of my application WebConfig file. At
runtime I persistently get the 404 not found error.

The syntax I'm using is :

<httpHandlers>
<add verb="GET"
path="Pooled.calc"
type="PooledHandlerFactory.PooledCalcFactory,
CustomCalcHandler" />
</httpHandlers>

"Pooled.Calc" is the URL requested from the calling web page

I have an C# IHttpHandlerFactory implementation named
"PooledCalcFactory" in a "PooledHandlerFactory" namespace. My assembly
dll is named "CustomCalcHandler"

I also noticed that if I comment out the registration entries for
IHttpHandler classes in the Web.config file, then I can't subsequently
re-register them (requests untended for these class result in the 404
error, wheras they were working prior to being commented out)

I've registered *.calc with IIS for the virtual directory in question,
and mapped it to the framework "aspnet_isapi.dll"

I'm using VS.net ver 7.0.9446
Framework ver 1.0.3705

Any pointers on where I'm going wrong ?

Many Thanks

Andrew Eastwell
Nov 19 '05 #1
4 2369
Restart IIS.
CHeers,
Gaurav Vaish
http://mastergaurav.org
http://mastergaurav.blogspot.com
----------------------------

Nov 19 '05 #2
Restart IIS.
And remove the *.calc association with aspnet_isapi.dll in IIS. Let the
framework handle it directly.

CHeers,
Gaurav Vaish
http://mastergaurav.org
http://mastergaurav.blogspot.com
----------------------------

Nov 19 '05 #3
> Restart IIS.

I've never needed to do this to register custom extensions in IIS.
And remove the *.calc association with aspnet_isapi.dll in IIS. Let
the framework handle it directly.
I'm not sure how this is going to help. IIS won't know how to handle the
..calc request. Which framework were you thinking of?
Fairly new to ASP.net, and I'm struggling to register a custom handler
in the <httpHandlers> section of my application WebConfig file. At
runtime I persistently get the 404 not found error.
Which 404 page are you getting? Is it the default IIS 404 page or the ASP.NET
404 page? This tells you if the ISAPI is handling the request. Oh! This makes
me think that maybe you have the "Check that file exists" in your .calc ISAPI
registration. Make sure that the checkbox is not checked.
I've registered *.calc with IIS for the virtual directory in question,
and mapped it to the framework "aspnet_isapi.dll"


Make sure that you've mapped the correct ISAPI version if you have more than
one version of ASP.NET installed.

-Brock
DevelopMentor
http://staff.develop.com/ballen


Nov 19 '05 #4
Brock

Thanks - the problem was that "Check that file exists" in the .calc
ISAPI registration was ticked - I suppose this makes sense, given that
none of my URL extensions resolved onto physical files.

Thanks !
Brock Allen <ba****@NOSPAMdevelop.com> wrote in message news:<38**********************@msnews.microsoft.co m>...
Restart IIS.


I've never needed to do this to register custom extensions in IIS.
And remove the *.calc association with aspnet_isapi.dll in IIS. Let
the framework handle it directly.


I'm not sure how this is going to help. IIS won't know how to handle the
.calc request. Which framework were you thinking of?
Fairly new to ASP.net, and I'm struggling to register a custom handler
in the <httpHandlers> section of my application WebConfig file. At
runtime I persistently get the 404 not found error.


Which 404 page are you getting? Is it the default IIS 404 page or the ASP.NET
404 page? This tells you if the ISAPI is handling the request. Oh! This makes
me think that maybe you have the "Check that file exists" in your .calc ISAPI
registration. Make sure that the checkbox is not checked.
I've registered *.calc with IIS for the virtual directory in question,
and mapped it to the framework "aspnet_isapi.dll"


Make sure that you've mapped the correct ISAPI version if you have more than
one version of ASP.NET installed.

-Brock
DevelopMentor
http://staff.develop.com/ballen

Nov 19 '05 #5

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

Similar topics

1
by: Bartosz Krzywicki | last post by:
I have the problem with Session object witch is null, when I implement IHttpHandlerFactory. Implementing IRequiresSessionState interface doesn't help. My code is like this: class MyController :...
3
by: Bartosz Krzywicki | last post by:
I have the problem with Session object witch is null, when I implement IHttpHandlerFactory. Implementing IRequiresSessionState interface doesn't help. My code is like this: class MyController :...
0
by: Netveloper | last post by:
Hi, I'm playing around with url rewriting and I have come across a problem which I can't seem to get past. The general ide is to have a IHttpHandlerFactory class which checks the incoming...
3
by: Hope Paka | last post by:
I want to use my custom url extension instead of .aspx. I can achieve this by writing a custom handler that implements the IHttpHandlerFactory. In the GetHandler method of the IHttpHandlerFactory i...
5
by: John H Clark | last post by:
I am building an IHttpHandlerFactory to process all requests to folders in my site. When an attempt to access internal folders is detected the request is rerouted to an error page. All other...
2
by: news | last post by:
I just upgraded to PHP 4.4.2 on my Slackware 10.2 system. And Apache/mySQL/PHP all work great through a browser. No errors. But when I try to run a PHP script through the command line, which I...
0
by: Steve B. | last post by:
Hi, We have build a custom class that implement IHttpHandlerFactory in order to handle all request to a IIS web site. In IIS 6, we just added the aspnet_isapi.dll to the list of generic...
2
by: Steven Voordijk | last post by:
I'm using the IHttpHandlerFactory to do URL rewriting and generate webpages. One of those pages offers the possibility to upload a file with a <input type="file"...tag. When the user clicks the...
0
by: Jordan S. | last post by:
I'm just wondering if it's possible to have multiple HttpHandlerFactory classes active at once in an ASP.NET 3.5 app. In particular, I want for the "built-in" HttpHandlerFactory that ships with...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
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,...
0
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...

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.