Reading keys from app.config
is not working
I have 4 layers in my solution:
- Business Layer
- Data Access Layer
- Presentation Layer
- Shared Layer
I added this app.config
file in the shared layer:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="TEST" value="ItsWorking" />
</appSettings>
</configuration>
and I included the System.Configuration
dll in references
I tried
var value = ConfigurationManager.AppSettings["TEST"];
but it returns null