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 4555246
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T17:11:55+00:00 2026-05-21T17:11:55+00:00

I am working on big ASP.NET project(we using ASP.NET 3.5) which comprised of 5

  • 0

I am working on big ASP.NET project(we using ASP.NET 3.5) which comprised of 5 different WebSites and some shared assemblies. Recently I added custom section into web.config files for each site. When I deploy all these applications, each site is deployed separately under same app pool.
Is there any way to make this section editable in IIS on site level, just like you can edit ConnectionString section for each site?

Sections I added all look like this:

<sectionGroup name="RegistriesCustomSettings">
  <section name="RegistriesSettings" 
           type="Registries.Business.Utilities.RegistriesConfigurations"/>
</sectionGroup >

<RegistriesCustomSettings>
    <RegistriesSettings ContextCommandTimeout="30" 
           logLinq="true" DisplayUser="true" BaseReportPath="/DDD/" 
           ReportingServer="http://patriot-regdev:8000/ReportServer"
           TopInstitution="1000001" />
</RegistriesCustomSettings>

We using are IIS 7.0, 2008 RC 2.

  • 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-21T17:11:56+00:00Added an answer on May 21, 2026 at 5:11 pm

    Yes there is a way to do this by extending the IIS configuration schema.

    1. Create a file called RegistriesSchema.xml and copy and paste the following XML:

      <configSchema>
          <sectionSchema name="RegistriesCustomSettings">
              <element name="RegistriesSettings">
                  <attribute name="ContextCommandTimeout" 
                             type="int" 
                             validationType="integerRange" 
                             validationParameter="1,600" 
                             allowInfinite="true" 
                             defaultValue="30" />
                  <attribute name="logLinq" 
                             type="bool" 
                             defaultValue="True" />
                  <attribute name="DisplayUser" 
                             type="bool" 
                             defaultValue="True" />
                  <attribute name="BaseReportPath" 
                             type="string" 
                             validationType="nonEmptyString" />
                  <attribute name="ReportingServer" 
                             type="string" 
                             validationType="nonEmptyString" />
                  <attribute name="TopInstitution" 
                             type="string" 
                             validationType="nonEmptyString" />
              </element>
          </sectionSchema>
      </configSchema>
      
    2. Grab a copy of a tool called IisSchema.exe from here:

      IISSCHEMA.EXE – A tool to register IIS7 configuration sections

      Unzip and make sure both the exe and the xml schema file are in the same folder.

    3. From an administrator command line (i.e. open cmd.exe using “Run As Administrator”):

      IISSCHEMA.EXE /install RegistriesSchema.xml

      This will do two things:

      • drops the schema file into %systemroot%\system32\inetsrv\config\schema
      • adds the following XML to applicationHost.config:

        <section name="RegistriesCustomSettings" 
                     overrideModeDefault="Allow" 
                     allowDefinition="Everywhere" />

    4 . Launch IIS Manager and open the feature settings for your website and open the Configuration Editor:

    enter image description here

    5 . Select the Section drop down list:

    enter image description here

    If all is good you should see “RegistriesCustomSettings”, select this item.

    6 . You can now edit these settings and they’ll be added to your site’s web.config file:

    enter image description here

    This is just a demonstration so the schema settings may not be quite right and will probably need some fine tuning.

    What To Do With <sectionGroup name="RegistriesCustomSettings">?:

    You will still need to add the configSection/sectionGroup xml to your web.config file for each site or you could add it to the root machine.config file for whatever version of ASP.NET you’re using, i.e.:

    For .NET Framework 2.0 (which also applies to .NET3.0 and 3.5):

    %systemroot%\Microsoft.NET\Framework\v2.050727\CONFIG\machine.config
    %systemroot%\Microsoft.NET\Framework64\v2.050727\CONFIG\machine.config

    For .NET Framework 4.0:

    %systemroot%\Microsoft.NET\Framework\v4.0.30319\CONFIG\machine.config
    %systemroot%\Microsoft.NET\Framework64\v4.0.30319\CONFIG\machine.config

    If you put your assembly’s configSection/sectionGroup in your machine.config file(s) then you don’t need to declare it in every site’s web.config. If quite a few sites are going to be using this assembly then this may be good timesaver.

    Update:

    There seems to be a bug or limitation in the IIS7.5 Configuration Editor. It appears that if you have your own custom configSections <sectionGroup> or <section> declarations in your site’s web.config file this breaks the IIS7.5 Configuration Editor. I’m trying to get to the bottom of this:

    ASP.NET custom configuration section declaration breaks IIS Manager Configuration Editor


    Update 2:

    I think the MS docs on this are a bit bogus particularly where your custom config section needs to be consumable by ASP.NET and editable in the IIS Manager Configuration Editor. The trick seems to be to declare the schema as follows in the RegistriesSchema.xml file:

    <configSchema>
        <sectionSchema name="RegistriesCustomSettings/RegistriesSettings">
            <attribute name="ContextCommandTimeout" 
                       type="int" 
                       validationType="integerRange" 
                       validationParameter="1,600" 
                       allowInfinite="true" 
                       defaultValue="30" />
            <attribute name="logLinq" 
                       type="bool" 
                       defaultValue="True" />
            <attribute name="DisplayUser" 
                       type="bool" 
                       defaultValue="True" />
            <attribute name="BaseReportPath" 
                       type="string" 
                       validationType="nonEmptyString" />
            <attribute name="ReportingServer" 
                       type="string" 
                       validationType="nonEmptyString" />
            <attribute name="TopInstitution" 
                       type="string" 
                       validationType="nonEmptyString" />
        </sectionSchema>
    </configSchema>
    

    Also, and importantly, remove the section reference from applicationHost.config:

    <section name="RegistriesCustomSettings" 
             overrideModeDefault="Allow" 
             allowDefinition="Everywhere" />
    

    This is not required.

    Additionally, you don’t actually need to use the iisschema.exe tool, just grab a copy of NotePad2 (it’s a 64bit editor, you need this to edit anything in inetsrv\config) and create the RegistriesSchema.xml file directly in inetsrv\config\schema.


    You can find out more about extending the IIS7 schema here:

    Extending IIS 7.0 Schema and Accessing the Custom Sections Using MWA

    You can poke about the existing schema files to learn more about how to construct these settings. They can be found in:

    %systemroot%\system32\inetsrv\config\schema

    Caveat: The example above was tested on IIS7.5 x64 RTM on Windows 7 x64 Ultimate. You mention that you’re running a release candidate so your mileage may vary because of that.

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

Sidebar

Related Questions

I'm currently working on an ASP.NET MVC project using NHibernate and I need to
I'm currently working on an C#/ASP.NET project that will host several differents e-commerce websites,
I have a pretty big web application that I created last year using ASP.NET
I am currently working on a localization project for an ASP .NET application. I
I am working on a big .NET project. I am currently creating an automated
I have a big project I am working on right now using Visual Studio
I am working on a asp.net web site, like normal user, we use asp.net
I'm currently working through an assignment that deals with Big-O and running times. I
The team I am working in has embraced scrum in a big way. I
Whilst trying to get our app working in Firefox (I'm a big proponent of

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.