Link to home
Start Free TrialLog in
Avatar of mohantyd
mohantydFlag for India

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="OracleConnectionString" value="Data Source=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx="System.Data.OracleClient"/>

string connectionString = ConfigurationSettings.AppSettings["OracleConnectionString"];

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
Avatar of p_davis
p_davis

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of p_davis
p_davis

sorry the InitializeComponent, of course, shouldn't be in there.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial