Error Page

Discussion in 'General troubleshooting' started by olinad, Aug 29, 2009.

  1. Hi, Good Day.

    I created several sub-folders to my website (www.mywebsite.com/admin/ .... & www.mywebsite.com/contacts/ ....) and i had a problem with my error page handler from my root folder... If i type www.mywebsite.com/pagedoesnotexist my website is able to handle the error and displays the error page that i created from my website root folder, Now the problem is when i try to write another URL like www.mywebsite.com/admin/pagedoesnotexist and www.mywebsite.com/pagedoesnotexist.aspx the error would be Server Error in '/' Application. instead of the custom error that i created - 404 handler.

    Do i need to create another web.config file for each sub-folder of my website ?
    Or what would be the nice thing to do ?

    - I configure already the IIS tools - Custom Errors to handle the error 404 & 500 to my folder error/pagenotfound.aspx
    - I disable the Directory Browsing also.:confused:
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    the customError property should inherit down to sub folder unless you specifically override it.

    Check your subfolder's web.config to make sure you are not overriding the settings.
     
  3. Thanks

    Thank you so much
     

Share This Page