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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:42:54+00:00 2026-06-11T21:42:54+00:00

I have this <?xml version=1.0?> <configuration> <configSections> <section name=FBI type=System.Configuration.NameValueSectionHandler /> </configSections> <FBI> <add

  • 0

I have this

<?xml version="1.0"?>
<configuration>
  <configSections>
    <section name="FBI" type="System.Configuration.NameValueSectionHandler" />
  </configSections>
  <FBI>
    <add key="FilePath" value="D:\C Drive\Desktop\test1.txt"/>
  </FBI>
<configuration>

in app.config..

And I set the Copy to Output Directory for app.config to copy if newer.

In the program,

   var section = ConfigurationManager.GetSection("FBI") as NameValueCollection;
            FilePath.Text = section["FilePath"];

where FilePath is a label.

When I change the config file to

D:\C Drive\Desktop\test2.txt

and build using VS (release mode), it shows correctly as

D:\C Drive\Desktop\test2.txt

But if I change the app.config in release folder to

D:\C Drive\Desktop\test3.txt

and run using the exe file in the release folder directly, it still shows me

D:\C Drive\Desktop\test1.txt

without updating to test3.txt

What’s the reason?

  • 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-11T21:42:55+00:00Added an answer on June 11, 2026 at 9:42 pm

    and I set the Copy to Output Directory for app.config to copy if newer.

    You don’t need to do this: it will be copied automatically to AppName.exe.config in the output folder. And it’s this file you need to modify.

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

Sidebar

Related Questions

what I have in app.config is this <?xml version=1.0?> <configuration> <configSections> <sectionGroup name=applicationSettings type=System.Configuration.ApplicationSettingsGroup,
I have XML-file with settings like this <?xml version=1.0 encoding=utf-8 ?> <configuration> <configSections> <sectionGroup
I have a following configSection in App.Config. <?xml version=1.0 encoding=utf-8 ?> <configuration> <configSections> <section
I have this xml file <?xml version=1.0 encoding=UTF-8?> <bo:C837ClaimParent xsi:type=bo:C837ClaimParent xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns:bo=http://somelongpathHere/process/bo> <claimAux> ...
I have this XML at http://localhost/file.xml : <?xml version=1.0 encoding=utf-8?> <val:Root xmlns:val=http://www.hw-group.com/XMLSchema/ste/values.xsd> <Agent> <Version>2.0.3</Version>
Currently, I have this version of the autocomplete control working when returning XML from
I have an getting an xml response on this format <?xml version=\1.0\ encoding=\utf-8\?>\r\n <PlatformResponse
I have this xml <products> <product> <name>Demo</name> </product> <product> <name>Black Beauty III</name> <description>Beautiful les
I have this xml file which has text init. i.e Hi my name is
I have this XML : <?xml version=1.0 encoding=utf-8 ?> <IMPORT mode=FULL> .... </IMPORT> I'm

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.