Connection String Problem

Posted by Rrana under ASP.NET on 8/29/2011 | Points: 10 | Views : 869 | Status : [Member] | Replies : 1
Hi,

Iam facing The ConnectionString property has not been initialized.

Web.config

<connectionStrings>
<add name="SqlDB" connectionString="Server=10.24.36.33;InitailCatalog=WFM;User Id=sa;password=pwd2011*" providerName="System.Data.SqlClient" />
</connectionStrings>

Class FIle

public clsDBAccess(string ConnectionString)
{
try
{
strConnectionString = ConnectionString;
Connect();
}
catch (Exception ex)
{
throw ex;
}
}

Thanks in Advance

Sucharitha Goud
Bank Of America..



Responses

Posted by: Dhirendra on: 8/29/2011 [Member] Starter | Points: 25

Up
0
Down
give space in InitailCatalog as below
Initail Catalog

Rrana, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response