yashwant wadkar

yashwant wadkar

  • NA
  • 33
  • 4.2k

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:
Web.Config:
<connectionStrings>
<add name="conn" connectionString="initial catalog=NtierDemo;integrated security=true;server=yash-pc" providerName="System.Data.SqlClient"/>
</connectionStrings>
and
public static string GetconString()
{
return ConfigurationManager.ConnectionStrings["conn"].ConnectionString;
}
 

Answers (3)