473,396 Members | 1,982 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.

http handlers and non existing folders

Hi,

I'm trying to implement an http handler that will redirect requests made for
specific folder which don't exists.

Currently my handler gets called if i request a non existing file but if i
try and request a folder, I get a 404 error.

Example:

If I request /testapp/nonexistingfolder/nonexistingfile.aspx
My handler gets called and all works fine.

However if I request /testapp/nonexistingfolder/ A 404 is returned.
Does anyone know how i could fix this?
Nov 19 '05 #1
5 1772
Hello,

in IIS that HTTP handler would need to be mapped to handle all requests (*
as symbol for extensions which will be handled). So in ASP.NET too. Do you
have it so?

Steps to do this are described in following KB article while it also covers
one problem situation that looks similar to yours.
http://support.microsoft.com/?kbid=834270

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke
Nov 19 '05 #2
afaik , what Shaun is trying to do can't be done from within asp.net.
the asp.net pipeline is not invoked unless an asp.net resource is requested.
requests for 'directories' are 100% handled by iis , the request never gets
to asp.net
to handle this type if mapping would require an isapi filter in iis.

Gerry

"Teemu Keiski" <jo****@aspalliance.com> wrote in message
news:e8**************@tk2msftngp13.phx.gbl...
Hello,

in IIS that HTTP handler would need to be mapped to handle all requests (*
as symbol for extensions which will be handled). So in ASP.NET too. Do you
have it so?

Steps to do this are described in following KB article while it also covers one problem situation that looks similar to yours.
http://support.microsoft.com/?kbid=834270

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke

Nov 19 '05 #3
It can handle directories but would need .* extension mapping to ASPNET
ISAPI in IIS, that's what I was trying to explain. Then in ASP.NET you could
handle it with a custom HTTP handler.

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke
Nov 19 '05 #4
Sorry I just reread your original reply.
What threw me off was where you said "that HTTP handler would need to be
mapped to handle all requests" which by itself is not true as this seems to
refer to the httphandler mappings in the web.config.
I missed the "in IIS" part.
The mapping is of all requests to the aspnet_isapi.dll, it really has
nothing to do with any particular http handler.


"Teemu Keiski" <jo****@aspalliance.com> wrote in message
news:uC**************@TK2MSFTNGP12.phx.gbl...
It can handle directories but would need .* extension mapping to ASPNET
ISAPI in IIS, that's what I was trying to explain. Then in ASP.NET you could handle it with a custom HTTP handler.

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke

Nov 19 '05 #5
Yup,

my original reply was confusing in that part.

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke

Nov 19 '05 #6

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

Similar topics

0
by: Vinay Sajip | last post by:
Currently, if the logging module is used with no handlers configured for a logger or its parents and you try to log events with that logger, a single message is printed to sys.stderr: No...
3
by: John Reese | last post by:
Hello there. I've run into some missing functionality with HTTP Digest authentication in the 2.3 library and I was wondering if I'm just missing something. Missing functionality the first:...
7
by: Paul Reddin | last post by:
Hi, Having just upgraded one of our servers to V8.2, the CONTINUE HANDLERs in Stored procedures seem to be behaving differently? i.e Instead of continuing at the next statement (as they did...
1
by: Robert Jones | last post by:
I have an asp.net web site that I want to develop further, but I don't have the Visual Studio project files for the site. I have all the source files for the site (aspx, cs etc) and the site...
0
by: hortoristic | last post by:
We currently have a solution up and working on VS 2005 and bound to source control VSS 6. I want to now add our DATABASE folder from VSS to our existing solution. My first approach has been...
2
by: Rob Dob | last post by:
Hi, How do I go about installing another Web Site Project inside my existing VS2005 website project. I currently have both a forum WSP and my main WSP application within the same solution. Both...
0
by: MarkusJNZ | last post by:
Hi, I have a bunch of VS2003 rdl files which exist in named folders and I want to import all these files and their associated folders into a new VS2005 report server project. So, I tried just...
2
by: Smithers | last post by:
I have a Windows Forms application that implements a plug-in architecture whereby required assemblies are identified and loaded dynamically. Here are the relevant classes: A = application =...
0
by: \(O\)enone | last post by:
I'm working on some code which dynamically adds WinForms controls to a form. It's all working well but I'm having to manually call AddHandler repeatedly for each event I am using each time I add...
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: 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...
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:
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
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
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...

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.