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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T16:15:07+00:00 2026-06-16T16:15:07+00:00

I am working in Visual Studio 2010 there I have a main project and

  • 0

I am working in Visual Studio 2010 there I have a main project and two other library projects and there reference is added to main project. Every project is having a settings file. After building solution there comes only one .config file for main project but there is no .config file for library projects. Due to this I can not change the settings of those library project externally.

So what will be the solution of this problem that I can have .config files of library projects into my debug/release folder?

app.config

<?xml version="1.0"?>
<configuration>
<configSections>
    <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
        <section name="Communicator.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
        <section name="DatabaseManager.Database.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
    </sectionGroup>
</configSections>
<applicationSettings>
    <Communicator.Properties.Settings>
        <setting name="ApplicationConfigsDirectory" serializeAs="String">
            <value>\Application_Configs</value>
        </setting>
        <setting name="MaxMeterConn" serializeAs="String">
            <value>10000</value>
        </setting>
        <setting name="MaxPhyConn" serializeAs="String">
            <value>20000</value>
        </setting>
        <setting name="ServerIP" serializeAs="String">
            <value>0.0.0.0</value>
        </setting>
        <setting name="Port" serializeAs="String">
            <value>1114</value>
        </setting>
        <setting name="TCPTimeOut" serializeAs="String">
            <value>3900000000</value>
        </setting>
        <setting name="isTCPTimeOut" serializeAs="String">
            <value>True</value>
        </setting>
        <setting name="SchedulerPoolingTime" serializeAs="String">
            <value>480000</value>
        </setting>
        <setting name="startKAScheduler" serializeAs="String">
            <value>True</value>
        </setting>
        <setting name="MinCacheAge" serializeAs="String">
            <value>00:02:00</value>
        </setting>
        <setting name="MaxCahceAge" serializeAs="String">
            <value>00:05:00</value>
        </setting>
        <setting name="SaveLogToDBFlag" serializeAs="String">
            <value>True</value>
        </setting>
        <setting name="Instance" serializeAs="String">
            <value>MDC_Tester</value>
        </setting>
    </Communicator.Properties.Settings>

    <DatabaseManager.Database.Properties.Settings>
      <Setting Name="Server" Type="System.String" Scope="Application">
        <Value Profile="(Default)">192.168.30.181</Value>
      </Setting>
      <Setting Name="Database" Type="System.String" Scope="Application">
        <Value Profile="(Default)">tester</Value>
      </Setting>
      <Setting Name="UserID" Type="System.String" Scope="Application">
        <Value Profile="(Default)">root</Value>
      </Setting>
      <Setting Name="pswd" Type="System.String" Scope="Application">
        <Value Profile="(Default)">nothing</Value>
      </Setting>
      <Setting Name="MaxPoolSize" Type="System.Int32" Scope="Application">
        <Value Profile="(Default)">512</Value>
      </Setting>
    </DatabaseManager.Database.Properties.Settings>
</applicationSettings>
<system.runtime.caching>
<memoryCache>
  <namedCaches>
    <add name="default"
         cacheMemoryLimitMegabytes="1024"
         pollingInterval="00:01:30" />
  </namedCaches>
</memoryCache>
</system.runtime.caching>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup>
</configuration>
  • 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-16T16:15:08+00:00Added an answer on June 16, 2026 at 4:15 pm

    This is the intended behaviour of settings and config files. You will need to copy the config sections from your library projects into the main project. You will also need to add the corresponding section elements to the applicationSettings section group:

    <configSections>
        <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
          <section name="SomeLibrary.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
          <section name="MainProject.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
        </sectionGroup>
    </configSections>
    

    then later in the main config:

    <applicationSettings>
         <SomeLibrary.Properties.Settings>
             <setting name="SomeSetting" serializeAs="String">
                <value>Whatever</value>
             </setting>
         </SomeLibrary.Properties.Settings>
         <MainProject.Properties.Settings>
            <setting name="MainSetting" serializeAs="String">
                <value>Yada yada</value>
            </setting>
        </MainProject.Properties.Settings>
    </applicationSettings>
    

    In the above, the “SomeLibrary” settings type is declared in the main project and settings relating to the library are then set in the main config file alongside the settings for the main project.

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

Sidebar

Related Questions

Recently we started working with Database project in Visual Studio 2010. I have added
I have a Qt project I am working on in Visual Studio 2010, with
I have a project I'm working on in Visual Studio 2010 Express in C++/CLI
I have about a dozen Visual Studio 2010 projects I've been working on that
I've got a Visual Studio 2010 C++ project. Previously everything was working fine but
some minutes ago i was working on a project in visual studio 2010 and
Hi I have been working with visual studio 2010 ultimate all day developing an
I'm working on a solution in Visual Studio 2010 Ultimate that contains two C#
I have the following scenario. My environment is Visual Studio 2010, Framework 4.0. There
I am working on a project in Visual Studio 2010 which is to produce

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.