1 Attachment(s)
Custom errors and web.config file...and parse error when running
WHen I run my app I get the error that is in the attached screen shot.
It says that the custom error should be in an <Error> tag. But it is, and all info on the web, including MS site, say that my code is correct.
What am I doing wrong? :(
Woka
Re: Custom errors and web.config file...and parse error when running
I think the web.config file is case sensitive so it should be statusCode not statuscode. Also have you got a space before the / at the end of the error tag?
DJ
Re: Custom errors and web.config file...and parse error when running
yup, you are right.
Code:
<customErrors defaultRedirect="Error.aspx" mode="On">
<error statusCode="404" redirect="Error.aspx"/>
</customErrors>
Capital C...Boooo MS web site is wrong. Bad MS *slap*
Woof