Results 1 to 3 of 3

Thread: Custom errors and web.config file...and parse error when running

  1. #1

    Thread Starter
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    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
    Attached Images Attached Images  

  2. #2
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131

    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

    If I have been helpful please rate my post. If I haven't tell me!

  3. #3

    Thread Starter
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width