Not sure if this is in the right group, but here goes. Recently put a
small asp.net project on iis 5, and all is well. However, the client
wanted all 404 errors to go to the root of this web (the start page in
iis, which is called index.aspx). They did not want a custom 404 message
or iis default. So that's what we did. The problem is that if you type in
a non-existant page (for example http://www.whatever.com/junk.html), the
server displays the start page's code---not the page as it should look in
the browser, but display's the actual aspx code in the browser---tags and
all. Is this a bug? Anybody else encounter this? Code was displayed in
both IE 5.5 and IE 6. All updated sp's on IIS, IE and .Net Framework
(including the new sp 2 for .Net)
The index.aspx page is static, uses no code behind, and just has a few if
then asp.net tags within it. Nothing fancy at all, very basic.
I've since persuaded the client to accept a custom 404 error page to be
display, and it works great, but was wondering why this occured. Any
insight would be appreciated. Thanks!
jeffbellus@y...