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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:17:06+00:00 2026-06-01T06:17:06+00:00

In code ConfigurationManager.AppSettings(IsFill) showing null but when i open exe.config file manually that key

  • 0

In code ConfigurationManager.AppSettings("IsFill") showing null

but when i open exe.config file manually that key is present in file

den i modify exe.config file using below code

Dim configFile As Configuration
                    configFile = ConfigurationManager.OpenExeConfiguration(Application.ExecutablePath)
                    configFile.AppSettings.Settings("AppVersion").Value = "1.0.1"
                    configFile.Save()

ConfigurationManager.AppSettings("AppVersion") value is changed but when i open exe.config manually changes not shows.

means if u modify exe.config file from outside,eg. like u add one more key in exe.config then that new key is not getting in code when i am using below code

configFile.AppSettings.Settings("AppVersion").Value
ConfigurationManager.AppSettings("AppVersion")

now u conclude that both files r different – which i open manually & other one i open in code
but path is same , same file i m opening .

  • 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-01T06:17:07+00:00Added an answer on June 1, 2026 at 6:17 am

    above error came in only windows7 OS. because windows7 doesnt reflect exe.config value.
    after restart or log off it shows reflected value.

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

Sidebar

Related Questions

I am not able to read the appSettings from the config file ( MyService.exe.config
App.config: <add key=SaveDraftPath value=C:\Drafts\/> C#: var saveDraftPath = ConfigurationManager.AppSettings[SaveDraftPath]; var sfDialog = new SaveFileDialog();
How to get values from App.Config. Code: <configuration> <appSettings> <add key=ShowRoomCode value=1000/> <add key=FolderPath
I have the following line of code called very often: var configValue = System.Configuration.ConfigurationManager.AppSettings[ConfigValueKey];
If I have code like this: public XALServiceConfiguration CreateInstance() { var config = ConfigurationManager.GetSection(ConfigurationSectionName)
we're configuring parts of an application at runtime: ConfigurationManager.AppSettings[someKey] = someValue; This code is
I coded a C# project, and I configured app.config file as follows: <appSettings> <add
I'm using this code (in my DAL project): ConfigurationManager.AppSettings[server] to access appsettings section in
i have this code: string filePath = ConfigurationManager.AppSettings.Get(FILE_SAVE_PATH) + fileName; string newFilePath = ConfigurationManager.AppSettings.Get(FILE_SAVE_PATH)
I have a method in my windows service as follows: System.IO.File.Copy(path, ConfigurationManager.AppSettings[BulkInsertGiftRegisterCreatorDirectory] + System.IO.Path.GetFileName(path));

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.