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.

Hari M8 reputationPosted Oct 15, 2015, 6:56 AM EDT
Srinivas Rao53 reputationPosted Oct 15, 2015, 7:12 AM EDT
connection.Connection String=@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source= give the path name here";Persist Security Info=False;
Sujeet SumanRank #790 · 2.9K reputationPosted Oct 15, 2015, 9:25 AM EDT
Mukesh KumarRank #119 · 18.2K reputationPosted Oct 15, 2015, 9:29 AM EDT
Sujeet SumanRank #790 · 2.9K reputationPosted Oct 16, 2015, 7:27 PM EDT
Mukesh KumarRank #119 · 18.2K reputationPosted Oct 16, 2015, 8:56 PM EDT
It seems that your database is not accessible to your project using the connection string which you are providing. .. chech this point
Thanks
Srinivas Rao53 reputationPosted Oct 15, 2015, 6:49 AM EDT
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]
Hari M8 reputationPosted Oct 16, 2015, 6:56 PM EDT
Hari M8 reputationPosted Oct 16, 2015, 7:37 PM EDT