In my solution I have 4 projects named UI,Business,Data and common.In the Data project I have an app.config file with following values
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="LibrarySystemConnection" value="server=(local);Initial Catalog=SanasaLibrarySystem;Integrated Security=True;
User ID=sa;Password=123"/>
</appSettings>
</configuration>
In a class of the Data project I am accessing the above key as follows:
connectionString = ConfigurationSettings.AppSettings["LibrarySystemConnection"];
When I run the code the connectionString retuns null.Anybody have an idea what is the wrong in the code