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;
}