Live Chat Icon For mobile
Live Chat Icon

Why do I get the error message ‘The ConnectionString property has not been initialized’

Platform: ASP.NET| Category: ADO.NET

Check if you have specified the connection string

VB.NET


dim cn as new SqlConnection('<your connection string>')
’dim cn as new OleDdConnection('<your connection string>')

C#


SqlConnection cn = new SqlConnection('<your connection string>');
OleDbConnection cn = new OleDbConnection('<your connection string>');

Share with

Share on twitter
Share on facebook
Share on linkedin

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.