I have a desktop project in which i have sql server and visual studio 2010
in my app.config i have the connection string defined as
connectionString="Data Source=ASPKCO-DANISH\SQLEXPRESS1;Initial Catalog=DMS2008;Integrated Security=True;Connect Timeout=300;MultipleActiveResultSets=True"
providerName="System.Data.SqlClient" />
connectionString="Data Source=ASPKCO-DANISH\SQLEXPRESS1;Initial Catalog=DMS2008;Integrated Security=True;Connect Timeout=30"
providerName="System.Data.SqlClient" />
and in code i am accessing it with below line
_objdocumentheader = null;
con = new SqlConnection(DMS_2008_Data.Properties.Settings.Default.DataConnection.ToString());
con.Open();
but it gives an error saying a network or instance specific errorplease assists
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Danish HabibRank #2,024 · 715 reputationPosted Oct 13, 2015, 1:27 AM EDT