473,386 Members | 1,758 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,386 software developers and data experts.

ASP.Net 2.0 HttpHandler configuration

I found by accident following behavior with ASP.Net 2.0 web.config

Background:

I am trying to implement WebDav protocol for serving information from
database.
I had to route all requests (with or without file extension) to my WebDav
Httphandler.

Step 1:
I added IIS wildcard map to aspnet_isapi.dll (with 'Verift that file exists'
turned off).
This routed all requests to ASP.Net http pipeline.
I verified this by adding an http module and logging the url of incoming
requests.

Step 2:
I had added an web.config entry as follows:
<httpHandlers> <add verb="*" path="*" type="RV.WebDav.CommonHandler" />
</httpHandlers>

This routed the calls to the Common handler as long as an file extension is
given.
Example: http://localhost/Sub1/Sub2/AnyFile.anyextension
Still urls with no file extension didn't reach the handler.
Example: http://localhost/Sub1/Sub2/

I accidentally typed two stars for the path:
<httpHandlers> <add verb="*" path="**" type="RV.WebDav.CommonHandler" />
</httpHandlers>

This routed all url requests (with or with out any file extension) to my
handler.

Question:
Is this TWO START behavior a bug or is this by design that I can bank on?

Thanks in advance.




Nov 18 '05 #1
1 1615
I have the job to do the same thing. Do you have any tips, documents, examples ... sourcecode?

I would really appreciate to hear from you!
Chris
I found by accident following behavior with ASP.Net 2.0 web.config

Background:

I am trying to implement WebDav protocol for serving information from
database.
I had to route all requests (with or without file extension) to my WebDav
Httphandler.

Step 1:
I added IIS wildcard map to aspnet_isapi.dll (with 'Verift that file exists'
turned off).
This routed all requests to ASP.Net http pipeline.
I verified this by adding an http module and logging the url of incoming
requests.

Step 2:
I had added an web.config entry as follows:
<httpHandlers> <add verb="*" path="*" type="RV.WebDav.CommonHandler" />
</httpHandlers>

This routed the calls to the Common handler as long as an file extension is
given.
Example: http://localhost/Sub1/Sub2/AnyFile.anyextension
Still urls with no file extension didn't reach the handler.
Example: http://localhost/Sub1/Sub2/

I accidentally typed two stars for the path:
<httpHandlers> <add verb="*" path="**" type="RV.WebDav.CommonHandler" />
</httpHandlers>

This routed all url requests (with or with out any file extension) to my
handler.

Question:
Is this TWO START behavior a bug or is this by design that I can bank on?

Thanks in advance.




User submitted from AEWNET (http://www.aewnet.com/)
Nov 18 '05 #2

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

Similar topics

2
by: Hanse Davion | last post by:
Can anyone provide some insight on what this problem could be? I have searched the web, read forums, and all the installation documentation for the dotnetnuke feeware portal from asp.net. I am...
0
by: Bruce B | last post by:
Hi group, I'm experiencing some extreme weirdness over the last week with IIS related to it's Mappings and how .NET is behaving. I can't explain the behavior as it seems very random. Our...
4
by: Jeremy Lew | last post by:
When my HttpHandler is processing a request when installed on a particular 2003 Server machine, the Context.Session object is null. Any idea why this might be? My handler implements...
14
by: qwerty | last post by:
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...
0
by: Chris Carter | last post by:
Hi, I created this HttpHandler, very simple: using System; using System.Web; namespace HttpHandlerTest { public class HelloWorldHandler : IHttpHandler
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="*"...
3
by: Michael Schwarz | last post by:
Hi, I have a own HttpHandler running and configured like this in my web.config: <add verb="*" path="subfolder/*.ashx" type="Class,Assembly"/> Now, when turning cookieless Sessions on my...
0
by: pamelafluente | last post by:
I have implemented an example of HttpHandler to talk with my Windows application running on the server. I want to send some command (to do something) from IE (client) to my program running on...
4
by: Anbu | last post by:
Hi All, I'm implementing a soapreceiver class in a web site. The required httpHandler tag was also added in the web.config as below. <httpHandlers> <add verb="*" path="Receiver.ashx"...
5
by: Author | last post by:
I followed the example at http://support.microsoft.com/kb/308001/EN-US/ and created my own HttpHandler. Here is the code: using System.Web; namespace MyNameSpace { public class...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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:
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
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...

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.