I created a new config file called "samplesApp.config" and it looks as below.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="IDNUMBER" value="1200"/>
</appSettings>
</configuration>
and I am trying to read value from above config file as shown. but it is not reading value from new config file.how can I read values from new config file using c#
string port = ConfigurationManager.AppSettings["IDNUMBER"];