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

wildcard mappings/httpmodule/asp.net 2.0/iis6

Its my understanding that in asp.net 2.0 you can write an httpmodule that
will acts as a wildcard handler and pass requests on to the proper engine,
for instance, asp or perl for example, In the past I believe if it wasn't an
aspx file, things didnt work right. Can anyone provide input if this really
is the case now?
Nov 19 '05 #1
3 2855
Hi adamtuliper,

Welcome to ASPNET newsgroup.
As for the implementing wildcard mappings through ASP.NET httpmodule you
mentioned, I think there hasn't been any particular difference between the
httpmodule mechanism of ASP.NET 1.X and 2.0. Both of them still rely on the
IIS webserver to router the request to the managed ASP.NET
aspnet_isapi.dll. And this rountering is based on file extension (aspx...
ascx....). When we want to implementing our custom httpmodule to do URL
mapping, we need to redirect all the expected url(extensions) to our
ASPNET's filter dll first. So I still think using raw ISAPI filter is the
best approach to do raw url mapping which contains wildcard or other non
extension url(folder path ...). How do you think ?

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 19 '05 #2
Thanks. Actually I read it on one of the MS lists in the last few days I seem
to recall. It was mentioned that in asp.net 2.0 it will pass these requests
off whereas older versions did not. As for redirecting all extensions, isn't
that what a wildcard script mapping was designed for in iis6, so all requests
will go through your filter? You mention you need to redirect all mappings,
but if I understand a wildcard script mapping, I actually wouldn't need to
know every extensions, because the "*" handles that.

"Steven Cheng[MSFT]" wrote:
Hi adamtuliper,

Welcome to ASPNET newsgroup.
As for the implementing wildcard mappings through ASP.NET httpmodule you
mentioned, I think there hasn't been any particular difference between the
httpmodule mechanism of ASP.NET 1.X and 2.0. Both of them still rely on the
IIS webserver to router the request to the managed ASP.NET
aspnet_isapi.dll. And this rountering is based on file extension (aspx...
ascx....). When we want to implementing our custom httpmodule to do URL
mapping, we need to redirect all the expected url(extensions) to our
ASPNET's filter dll first. So I still think using raw ISAPI filter is the
best approach to do raw url mapping which contains wildcard or other non
extension url(folder path ...). How do you think ?

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 19 '05 #3
Thanks for the followup adamtuliper,

Yes, as you said we can use the "*" wildcard to redirect all the comming
request to ASP.NET runtime, however this is not a good idea since ASP.NET's
runtime , pipeline and handlers are designed for processing asp.net dynamic
page requests. As for those static pages or resource(image, script files)
requests, IIS has the sophisticated processing capability which'll have
much better performance than ASP.NET. Also, as far as what I saw in the
beta2 of the ASP.NET Whidbey, the IIS by default still only redirect those
ASP.NET page/components(ascx, asmx...)'s request to ASP.NET isapi.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 19 '05 #4

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

Similar topics

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...
7
by: nail | last post by:
Folks, I develop a HttpModule and it works correct, but one problem is occurs. After I register the httpmodule in the web.config, my pages (not testing http://localhost/site but...
2
by: Simon-Pierre Jarry | last post by:
Hi, I created a custom HttpModule for managing the security of my application. in "Init" sub, I regsiter the events doing that : Public Sub Init(ByVal context As System.Web.HttpApplication)...
0
by: Tiziana Loporchio MCSD.NET | last post by:
On IIS6 I have configured a wildcard application mapping, but now when I just browse to a URL or an IP without specifying a document, it does not add the "default document" anymore. Is it a bug in...
7
by: SlimFlem | last post by:
I have searched hard for 2 days on this and keep hitting a wall. I have a custom IHttpHandler setup to do Url mappings to prop up some old Urls for our site. I have also created a wildcard...
2
by: walter | last post by:
Hi there, I know there is pool of HttpApplications, and for each request coming in, HttpRuntime will dedicate one from pool to serve the request. My questions are : 1. since HttpModule is plug...
2
by: Jan Kucera | last post by:
Hi, I have virtual MyFolder/* and MyFolder/MySubFolder/* mapped to an httphandler in the web.config file and all works perfectly on the asp.net development server. However on the IIS6/Win2003 I'm...
0
by: Thomas | last post by:
in .net 1.1 we successfully use a HttpModule to catch 404 / 403.1 html errors. after migrating to .net 2.0, this modules is broken in a very, very strange way. we have defined a wildcard...
6
by: Jan Kucera | last post by:
Hi, does anybody know about wildcard mapping ASP.NET 2 in IIS6? Any tutorial? Thanks, Jan
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
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,...

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.