mohantyd
asked on
Problem in reading App.Config file
I have a config file in my classLibrary from where i am reading connection string.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="OracleConnectionStrin g" value="Data Source=xxxxxxxxxxxxxxxxxxx xxxxxxxxxx xxxxxxxxxx xxxxxxxxxx xxxxxxxxxx x="System. Data.Oracl eClient"/>
string connectionString = ConfigurationSettings.AppS ettings["O racleConne ctionStrin g"];
I am reading above line from my C# project .. but not able to get any value . This is a class library project
</appSettings>
</configuration>
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="OracleConnectionStrin
string connectionString = ConfigurationSettings.AppS
I am reading above line from my C# project .. but not able to get any value . This is a class library project
</appSettings>
</configuration>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
sorry the InitializeComponent, of course, shouldn't be in there.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.