473,568 Members | 2,935 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problem with wildcard application mapping & .net 2.0 & HttpModule

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 applicatio mapping to the .net 2.0 isapi dll:
C:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50727 \aspnet_isapi.d ll
with "check if file exists" disabled.

the HttpModule "RedirectMissin g" is called upon every request to the
webserver as predicted. but when an url to a non-existing file is called
(for example: http://test.local/missing.aspx), the http response status
(app.Response.S tatusCode) _always_ 200 (= "OK"), even if the file doesn't
exist and a 404 would be the proper value. when using trace.axd, it also
shows 200 instead of the proper error code. IIS6 on the other hand sends the
proper error code back to the client.

now when one removes the wildcard mapping and load up the same url again,
the status code is 404 as it should be.

in .net 1.1, in both cases (with & without wildcard mapping) the status code
is always set to the proper values. there are no behaviour changes noted by
MS....

someone else ran into this problem? someone knows a workaround/solution?
this is a showstopper for our product ;-(

thanks,
thomas

(environment: IIS6, w2k3 sp1, .net 2.0, c#)


Jun 11 '06 #1
0 1408

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

Similar topics

2
3427
by: Rob Mayo | last post by:
What I'm trying to do is Create an ASP.Net app that has both Windows-authenticated users and Anonymous users. The idea is this: When authenticated users attempt to access the site, their credentials are passed to the Request, and I use the DOMAIN\USER value via the AUTH_USER server variable to access their accounts. These people would never...
3
2868
by: Adam | last post by:
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?
1
1327
by: Hardy Wang | last post by:
Hi all, I built a HttpModule for one of my ASP.NET application to handle some special file format (*.DEC1, *. DEC2). My code is like below public class MyClass : IHttpModule { public MyClass() { } public bool IsReusable { get { return false; } }
0
1059
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 IIS 6.0 ? Does anyone know a workaround? Or does anyone have code to replace the "default document settings" in an isapifilter? I don't have any...
7
2533
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 mapping in IIS6 using the ASP.NET 2.0 ISAPI DLL. Here is what I am attempting and I cannot for the life of me figure this out. I have several...
6
3082
by: Jan Kucera | last post by:
Hi, does anybody know about wildcard mapping ASP.NET 2 in IIS6? Any tutorial? Thanks, Jan
0
1021
by: Alan Dean | last post by:
Hi, I have a confusing problem. I have written a web application that uses a wildcard mapping to ..\v2.0.50727\aspnet_isapi.dll with HttpModules and HttpHandlers. All works well when I install the application as a root web site, but when I install the application on to the Default Web Site then it doesn't work - I just get errors. I have...
0
1739
by: somnathmali | last post by:
Suppose I have site xyz.com. Site has a page called show_user.aspx where I need to access the Session variables. But this show_user.aspx page will not be called directly Instead , when user type xyz.com/somnath …it will interpret “somnath” as a user name and internally call page show_user.aspx?user=somnath. I have created a HTTP module...
3
1831
by: Joseph Geretz | last post by:
I'm implementing a web application whose purpose in life is to act as a data conduit. Data is posted to my Web app in XML format, my application examines the data and forwards it onward by posting it to the appropriate upstream server. Since transaction processing is largely identical regardless of the transaction details (these will be...
0
7693
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...
0
7605
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...
1
7665
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7962
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5501
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...
0
5217
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...
0
3651
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...
1
1207
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
933
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...

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.