I ve created a C#.NET Project in my PC. I used MS Access as Database. When I tried to copy and run the same project in other PC's its showing path error.
I tried using Application.StartupPath() in my connection string path. But while using it the database is empty as soon as i stopped running the project. Somebody please help me.
Mukesh KumarPosted Oct 17, 2015, 12:56 AM
It seems that your database is not accessible to your project using the connection string which you are providing. .. chech this point
Thanks
Hari MPosted Oct 16, 2015, 11:37 PM
Sujeet SumanPosted Oct 16, 2015, 11:27 PM
Hari MPosted Oct 16, 2015, 10:56 PM
Mukesh KumarPosted Oct 15, 2015, 1:29 PM
Sujeet SumanPosted Oct 15, 2015, 1:25 PM
Srinivas RaoPosted Oct 15, 2015, 11:12 AM
connection.Connection String=@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source= give the path name here";Persist Security Info=False;
Hari MPosted Oct 15, 2015, 10:56 AM
Srinivas RaoPosted Oct 15, 2015, 10:49 AM
Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\myFolder\myAccessFile.accdb;
Persist Security Info=False;
mention the path of database u created, [eg..,as I mentioned above]