Click here to Skip to main content
15,905,785 members

Comments by raja.dinakaran.c.r (Top 1 by date)

raja.dinakaran.c.r 29-Nov-12 6:06am View    
I am unable to pass the connection string value as you said,From the app config it is getting passed as null value to the service.
/////////////////////
Using System.Configuration;
/////////////////////////////
SqlConnection con = new SqlConnection(ConfigurationSettings.AppSettings["ConnectionString"].ToString());
///////////////////////////////////////////

<configuration>
<add name="Connectionstring" connectionstring="Data Source=Servername; Initial Catalog=DBName;User ID=sa;Password=password">

Please Reply .

Congrats in in advance.
Thank you.