A
Ashish
I am writing a business layer component and want to store some
configuration parameters for it, i dont want to use web.config of the
web application that would use this business layer because of testing
reasons...
I created a file called Mydllname.dll.config file and set the build
action to 'Copy Always'.
Iam trying to read the configuration elements using following code..
string myValue = ConfigurationManager.AppSettings["somekey"];
and my config file looks like
<configuration>
<add key ="somekey" value ="somevalue"/>
</configuration>
but the appsettings collection is empty...,
can some one guide me to right direction ?
many thanks
configuration parameters for it, i dont want to use web.config of the
web application that would use this business layer because of testing
reasons...
I created a file called Mydllname.dll.config file and set the build
action to 'Copy Always'.
Iam trying to read the configuration elements using following code..
string myValue = ConfigurationManager.AppSettings["somekey"];
and my config file looks like
<configuration>
<add key ="somekey" value ="somevalue"/>
</configuration>
but the appsettings collection is empty...,
can some one guide me to right direction ?
many thanks