yashwant wadkar

yashwant wadkar

  • 0
  • 33
  • 3.9k

Connection string error used in ASP.Net project...

May 17 2014 6:31 AM
I have face the problem of connection string which gives me the error as:

Format of the initialization string does not conform to specification starting at index 0.

Pls give me suggestions on this problem. 
the code which i had written is:
<add name="conn" connectionString="initial catalog=NtierDemo;integrated security=true;server=yash-pc" providerName="System.Data.SqlClient"/>
public static string GetconString()
return ConfigurationManager.ConnectionStrings["conn"].ConnectionString;

Answers (3)