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

  • Home
  • SEARCH
  • 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 8322009
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T23:13:41+00:00 2026-06-08T23:13:41+00:00

I have modified my web.config file in my asp.net web application so that I

  • 0

I have modified my web.config file in my asp.net web application so that I am showing a custom error page:

<configuration>
    <system.web>
       ...snip
        <customErrors mode="On" defaultRedirect="WebForms/ErrorPage.aspx">
          <error statusCode="404" redirect="WebForms/ErrorPageNotFound.aspx" />
        </customErrors>        
    </system.web>  
</configuration>

When I run the site on IIS I get the following error:

Error code: 0x800700b7
Config section 'system.web/customErrors' already defined. 
Sections must only appear once per config file. 
See the help topic <location> for exceptions 

Clearly I have some config hierarchy at play here but I don’t know which file I need to look at (I have 276 web.config files on my machine) – can someone point me in the right direction.

When I find the file can I just rem out the top level customErrors section or is this going to cause an issue for other web applications on the same machine that don’t have customErrors defined?

  • 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-06-08T23:13:44+00:00Added an answer on June 8, 2026 at 11:13 pm

    That section should be modified on the root web.config

    If you re receiving that error, maybe you have several web.config in sub-directories of your main application, you should start checking those to remove them

    Clearly I have some config hierarchy at play here but I don’t know which file I need to look at (I have 276 web.config files on my machine) – can someone point me in the right direction.

    Why don’t you simply use windows search to find documents containing the string customErrors

    To enable Windows 7 advanced search:

    http://answers.microsoft.com/en-us/windows/forum/windows_7-files/in-windows-7-i-want-to-search-for-all-files/aadfe1f1-4a33-406b-8e72-bb920efa4f30

    Config files hierarchy

    1. Global machine. <windir>\Microsoft.NET\Framework\<ver>\Config\Machine.config
    2. Root Web config. <windir>\Microsoft.NET\Framework\<ver>\Config\Web.config
    3. Website. <wwwroot>\Web.config
    4. Web application. <wwwroot>|IIS Web Site path\<webapp>\Web.config
    5. Folder. <wwwroot>|IIS Web Site path\<webapp>\<dir>\Web.config
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an app.config file that I need to distribute with my application. It
I have a web application which is written in ASP.NET 4. I'm using IIS7
EDIT: After I modified the web.config and I don't get error that's good.... then
I have set UserIsOnlineTimeWindow =2 in web.config then my logout() function has been modified
So I have the following situation. I have a configuration class config.py that holds
Problem I am trying to take an existing ASP.NET web application and manually migrate
I have an asp.net application in IIS 5.0(windows 2000 server), my application is working
In Visual Studio, when we develop, the web.config file is often modified but I
I've got a project that has a config file which I've modified. I want
I have an application that reads an XML file for information on projects and

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.