By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,899 Members | 1,230 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,899 IT Pros & Developers. It's quick & easy.

How to create setup project with database attached to it?

P: 38
I have created a setup project for my database application.

Here is the connection string

Expand|Select|Wrap|Line Numbers
  1. con.ConnectionString=@"Data Source=|DataDirectory|\data\Employees.sdf";
After its installation when i opened it, it is showing the following error

Access to the database file is not allowed.

How to solve it.
Aug 10 '13 #1
Share this Question
Share on Google+
3 Replies


P: 10
Have you created database connection and using that in your project?
Aug 20 '13 #2

P: 12
what type of database are you using for?
Aug 22 '13 #3

P: 12
suggestion:
i think you have to use "Inno setup" to compile an exe file
Aug 22 '13 #4

Post your reply

Sign in to post your reply or Sign up for a free account.