In the web.config folder at the root of my VS project I have the
following section:
<customErrors mode="On">
<error statusCode="404" redirect "404.aspx" />
</customErrors mode>
When access to a non-existent page is made from any aspx file in the
root then this 404.aspx page is execited as required.
However, I now put an aspx page in a subfolder and tried to access a
non-existent page from there and I now get the standard error. The
subfolder does not seem to be inheriting the setting in the web.config
in the parent.
Maybe it is looking for the 404.aspx file to be in the same folder as
the aspx file that generated it.
Any help please!
John L