Exception in connection stringHi All,
I'm trying to connect to MS access database.while connecting getting some exception like could not find the database.PFB exception.
An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in System.Data.dll
Additional information: Could not find file 'E:\OrgActivity\ORG Database.mdb'.
My database is present in E:\Org Activity folder.
do I need to add any references to the project.
Connection string is following:
OleDbConnection addCon = new OleDbConnection(@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=E:\\OrgActivity\\ORG Database.mdb;");
Is there any mistake in my connection string.
Please suggest me to resolve this exception.
Thanks in advance.