Reading Application Settings from another C# Project

  • Thread starter Thread starter Khabibulla
  • Start date Start date
K

Khabibulla

Guest
Hi,

I have a C# project with a settings file that looks like this:

1284172.png


From a second C# project I need to access the value of (for example) 'streetViewSetting', but I am not quite sure how to do it. I have been trying the following code from the 2nd C# application, but with no luck:

string theSetting = System.Configuration.ConfigurationManager.AppSettings["streetViewSetting"];

This just returns a 'NULL' value.

Any advice is appreciated. Thanks!





Brian

Continue reading...
 
Back
Top