Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!
all groups > inetserver iis > may 2007 >

inetserver iis : 404 fails for aspx but works for asp and htm


Stephen Cassels
5/7/2007 5:04:01 AM
Hi

I appear to have a configuration problem whereby a redirect I have set in
IIS fails for files with the aspx extension but works for all asp and htm.

I have even tried settting the Custom Errors for a 404 to redirect to a
local url for all web sites, yet it does not get caught. Annoyingly I have
it working correctly in IIS 6 on one server but it fails on another.

Any thoughts?


--


Stephen Cassels
5/7/2007 6:18:02 AM
Thanks Ken, but I specifically do not want to use the web.config, I'd lose
the context that way because of the redirect;

I am running MSCMS 2002 and have 404s and 500s handled by my
systemerror.aspx file which handles email notification, log writing and
reporting the correct http status code instead of the default 200ok that
mscms produces for just about any request. I have had this working
successfully in the past.

However, that is getting off topic;

I am trying to figure out why the framework (1.1 or 2.0 as I've tried two
different app pools) handles the 404 and IIS doesn't get a look in. I've
checked the metabase for IIS but the rules appear to be applied correctly.




--


Stephen


[quoted text, click to view]
Ken Schaefer
5/7/2007 10:54:17 PM
Generally, you would configure ASPX custom errors in your web.config file,
not in IIS. .NET framework implements it's own custom errors handler.

Cheers
Ken

--
My IIS Blog: www.adOpenStatic.com/cs/blogs/ken


"Stephen Cassels" <StephenCassels@discussions.microsoft.com> wrote in
message news:1547EE08-DADF-4DBB-916D-685216370B66@microsoft.com...
[quoted text, click to view]
AddThis Social Bookmark Button