M
Martin
Hi
I am noticing some strange behaviour in some asp.net pages that I have
put together and am hoping someone can explain to me what is
happening.
I have two domains hosted at oneandone.co.uk. My main domain points to
the root /. space in my account and contains various htm and aspx
pages that work just fine (well I had problems with Session state but
that's another story!) the web.config file for this 'app' resides in
this root folder and is pretty standard apart from the fact that I
have added :
<customErrors mode="On" defaultRedirect="Login.aspx"/> which again
works fine.
The second domain, which I have just purchased is configured to point
to a sub folder off of the root. It happens to be called ./PlayArea/
and within this folder I have put an index.htm file which contains a
hyperlink to an aspx file. This folder has it's own web.config file
and this has it's customErrors set to :
<customErrors mode="On" defaultRedirect="Error.aspx"/> notice a
different default error page.
When I navigate to the URL of the second domain and click on the link
an error ocurrs somewhere and I am presented with :
Server Error in '/' Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its
dependencies) could have been removed, had its name changed, or is
temporarily unavailable. Please review the following URL and make sure
that it is spelled correctly.
Requested Url: /Login.aspx
I cannot see why the default redirect is kicking in anyway, but it
should surely attempt to redirect to Error.aspx and not Login.aspx as
this is the destination contained in the other web.config file.
Am I missing something obvious or does this seem bizarre to you.
Any help would be most appreciated.
Martin
I am noticing some strange behaviour in some asp.net pages that I have
put together and am hoping someone can explain to me what is
happening.
I have two domains hosted at oneandone.co.uk. My main domain points to
the root /. space in my account and contains various htm and aspx
pages that work just fine (well I had problems with Session state but
that's another story!) the web.config file for this 'app' resides in
this root folder and is pretty standard apart from the fact that I
have added :
<customErrors mode="On" defaultRedirect="Login.aspx"/> which again
works fine.
The second domain, which I have just purchased is configured to point
to a sub folder off of the root. It happens to be called ./PlayArea/
and within this folder I have put an index.htm file which contains a
hyperlink to an aspx file. This folder has it's own web.config file
and this has it's customErrors set to :
<customErrors mode="On" defaultRedirect="Error.aspx"/> notice a
different default error page.
When I navigate to the URL of the second domain and click on the link
an error ocurrs somewhere and I am presented with :
Server Error in '/' Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its
dependencies) could have been removed, had its name changed, or is
temporarily unavailable. Please review the following URL and make sure
that it is spelled correctly.
Requested Url: /Login.aspx
I cannot see why the default redirect is kicking in anyway, but it
should surely attempt to redirect to Error.aspx and not Login.aspx as
this is the destination contained in the other web.config file.
Am I missing something obvious or does this seem bizarre to you.
Any help would be most appreciated.
Martin