Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["Constr"].ToString());



<connectionstrings>
<add name="Constr" connectionstring="data source=PANDIAN-PC\SQLEXPRESS;Persist Security Info=True; Initial Catalog=CustomerDetails;User Instance=true; User ID:sa; Password:somu" providername="System.Data.SqlClient">
Posted
Comments
DamithSL 15-Oct-15 0:54am    
check the web config and make sure that connection string added correctly
[no name] 15-Oct-15 0:55am    
Please provide you web.config connection string section only. How did you write. You can add code by improving your question. Thanks..
Philippe Mori 15-Oct-15 18:02pm    
Essential information is missing. Given that you have the index from where the string does not conform, it should be very obvious to find the problem.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900