473,405 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

How to create setup project with database attached to it?

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
3 1752
Have you created database connection and using that in your project?
Aug 20 '13 #2
redz
12
what type of database are you using for?
Aug 22 '13 #3
redz
12
suggestion:
i think you have to use "Inno setup" to compile an exe file
Aug 22 '13 #4

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

Similar topics

2
by: | last post by:
I got trouble in creating Setup Project i use VS.Net and don't know how to create Setup Project which can add my win app into "Windows Startup" (which this win app can start when windows start)...
0
by: Sunny | last post by:
Hi I have made a Database Application for which i am trying to create a SETUP Project. The application uses three custom Ms access Databases. Those database i added in the correct folder in the...
1
by: Ryan | last post by:
How can I create a Setup Project in VS.NET similar to that of the "PortalCSVS" project on www.asp.net which creates a database on a selected server during setup? (I can create a DTS file or SQL...
0
by: Shawn | last post by:
Hi, I am trying to create a setup project for a install, which includes 3 XML web services, 1 ASP.NET application. I've done setup project in Visual Studio before with 1 ASP.NET application,...
0
by: dirtydozen | last post by:
HI all, i need to understand how to generate the project described in subject. Now my application works only where i have installed .net! Which merge modules have i to use? I tryed some...
6
by: Lloyd Dupont | last post by:
I ordered VS2005 a while ago standart edition (still waiting for it). Anyway looking closely at the various edition's features again I suddenly realized: 1]. VS2005 standart doesn't seems to...
4
by: Paul | last post by:
Hi, I am developing a c# windows .NET application. The application is going to run on a standalone PC and use an access database. I have figured out that I will need to create a project and add it...
0
by: Parrot | last post by:
When I attempt to create a setup project for packaging my system I get nothing in the Solution Explorer Window and I get nothing in the Add Project Output Box. This happens both for web projects...
5
by: joerozario | last post by:
i have created windows application in .net 2005 then i have created setup Project for that application i want create setup project with .net Frame work when the user start installing the...
1
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgRGVzYXJyb2xsbw==?= | last post by:
Hi misters, I continue installing; my production PC is Windows 2003; development environment: using VS 2005 in Windows XP for create Setup Project Now, I need install Acrobat Reader...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.