Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 387587
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:41:16+00:00 2026-05-12T15:41:16+00:00

As the article ASP.NET Configuration File Hierarchy and Inheritance says the Web.config file for

  • 0

As the article ASP.NET Configuration File Hierarchy and Inheritance says

the Web.config file for a specific Web
site contains settings that apply to
the Web site and inherit downward
through all of the ASP.NET
applications and subdirectories of the
site.

I have these settings for a “parent” application

<customErrors mode="RemoteOnly" defaultRedirect="GenericError.htm">
    <error statusCode="403" redirect="NoAccess.htm" />
    <error statusCode="404" redirect="FileNotFound.htm" />
    <error statusCode="500" redirect="InternalError.htm" />
</customErrors>

but need only these for a “child” application

<customErrors mode="RemoteOnly" />

The article also says

In collections, configuration settings
are typically added to the collection
via an add child element, removed by
key name via a remove child element,
or the entire collection can be
cleared via a clear child element. An
added setting in a child configuration
file overrides a setting of the same
key name in a parent configuration
file unless duplicates are allowed.

But unfortunately this is illegal for some reason

<customErrors mode="RemoteOnly">
    <clear/>
<customErrors/>

So the question is how to clear inherited customErrors elements?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T15:41:16+00:00Added an answer on May 12, 2026 at 3:41 pm

    Did you try to add in the inheritInChildApplications=”false” XML element to your parent’s (top level) web.config?

    <location inheritInChildApplications=”false”>
    

    reference:
    – http://www.west-wind.com/WebLog/posts/133041.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a custom configuration file in my asp.net website, named urls.config , which
i found an article that says: To access the Web Site Administration Tool, on
I know that ASP.NET MVC 1.0 is bin-deployable as explained in Phil Haack's article.
I'm looking for a example or article that demonstrates using SimpleModal in an ASP.NET
Technology: Dot Net, ASP.Net We have articles stored in XML repository and article contains
I've been deploying ASP.NET websites and managing their configurations using the web configuration transforms
I implemented a small test that is based on Scott Guthrie article http://weblogs.asp.net/scottgu/archive/2010/07/27/introducing-asp-net-mvc-3-preview-1.aspx But
Every article on async programming in ASP.NET i've read so far states that while
Suggested Reading Similar: Are soft deletes a good idea? Good Article: http://weblogs.asp.net/fbouma/archive/2009/02/19/soft-deletes-are-bad-m-kay.aspx How I
From the ASP.Net Page Lifecycle article on MSDN : Although both Init and Load

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.