Nirman
Nirman

Reputation: 6783

Unable to read new keys from App.config in C#.NET Windows Application

my app.config file has 6 key-value pairs.

return 
  System.Configuration
    .ConfigurationManager.AppSettings.Get("FTPDirectory").ToString();

What could be the possible reason?

Upvotes: 0

Views: 1333

Answers (1)

Kevin Blake
Kevin Blake

Reputation: 444

Are you recompiling between changes to the app.config? msbuild will copy your app.config to the output folder as .exe.config, for example.

Upvotes: 3

Related Questions