I have only one app.config inside my project and there is no web.config
It is an excel add-in project and there is only one app.config
inside the class library
But when i am trying to access the appSettings
, it is not returning values that i have saved in app.config
I tried
ConfigurationManager.AppSettings["KeyName"]
Also during debugging ConfigurationManager.connectionString
returns some values whereas there are no connection string that i have saved.
I searched the returned value inside the entire solution but no luck
So is there a way where i can identify which is the config file that it is referring to?
P.S I added reference to system.configuration and added that namespace too