In my app.config
I have added a key with value
<add key="KeyName" value="someValue" />
But in my windows form when i try to access it by using configurationmanager it is not returning anything
ConfigurationManager.AppSettings["KeyName"]
this has null value
Also i dont have any web.config or connection string added in the app.config, but my
ConfigurationManager.connectionString
returns some value !!
What might be the issue? what should i change?
P.S
I have added reference to system.configuration
and added it in namespace too
its an excel add-in and has only one class library which has app.config