473,320 Members | 2,112 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,320 software developers and data experts.

Publishing project

jamesd0142
469 256MB
Hi i have a program which retrieves and copies data to and from a database. the database is located in the project bin/debug folder.

When i publish the project and run on a different machine i get error cant find database (or along the lines of that).

Why doesnt the database get published with the programme?
Or how can i do this correctly?

Thanks James
Sep 14 '07 #1
2 877
Hi i have a program which retrieves and copies data to and from a database. the database is located in the project bin/debug folder.

When i publish the project and run on a different machine i get error cant find database (or along the lines of that).

Why doesnt the database get published with the programme?
Or how can i do this correctly?

Thanks James
HI Jamesh,

First make practice of keeping the database(*.mdb) in the path where ur project files exists and use app.path\*.mdb to access it.

then copy the database along with the projectfiles in any system it will work.

If you are creating a setup package using package and deployment wizard, you'll have to include the database file along in the setup(option will be available while creating the setup). Then once you install the application in any system database will also be copied in the installation path.

Hope it solves your problem

Regards
Jawad Ali(jawada@kpitcummins.com)
Sep 14 '07 #2
jamesd0142
469 256MB
Thanks for your reply,

Could you please correct me if im wrong:

1. The new source is "& Application.StartupPath & "\FAQs.mdb;"
(this is the vb.net version of the app.path you advised me to use). seems to work well.

2. i save the *mdb file to to project folder where all vb.net forms are saved etc.

3. i now get the message mdb file cannot be found in PATHNAME\bin\debug\ how can i change this to only look as far as the pasthname and not in the bi\debug directory?

thanks James
Sep 14 '07 #3

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

Similar topics

3
by: EqDev | last post by:
Hello I have set up a new windows server 2003 standard edition for training (on new software we have developed) and am having problems publishing webs to it from VS 2005. I have a C# Web...
3
by: Steve Teeples | last post by:
I have a simple application built with several DLLs that access XML files for information. My local setup works just fine. As defined in my Install folder, the files are copied to the...
2
by: DCC700 | last post by:
VS 2005 Converted Header causing error when publishing After converting from Visual Studio 2003 to 2005, I have had several issues with a header that is used throughout the project. The...
5
by: Andy G | last post by:
I'm having a hell of a time publishing my first VS 2005 web site. All it tells me is publish failed. Is there any place that gives me a hint on why it failed? I'm typing in the website address...
6
by: =?Utf-8?B?RWFnbGVSZWRASGlnaEZseWluZ0JpcmRzLmNvbQ== | last post by:
I have an ASP.NET application that I have been deploying by using the publish option on the project which compiles the project into a directory on my machine. It has been working fine and then...
4
by: Joey | last post by:
asp.net 2/C#/VS2005 I have a web app that uses a third party control. The control requires a license file that is located in the root folder of the website. Each time I publish the website,...
2
by: Max2006 | last post by:
Hi, After I right-click on my web application project file and choose "Publish ." and do the publishing, the result publishable files does not include the *.ashx files. Is it by design? How...
4
by: cj | last post by:
I'm finally back to trying to write a web service. In VB 2005 I created a new web site and then ASP.NET Web Service. It opened showing App_Code/Service.VB with the following code already in it ...
0
by: =?Utf-8?B?Qi4gQ2hlcm5pY2s=?= | last post by:
I have not tried this before. I have been building an ASP.Net 2.0 app for some weeks now and up till now I have not had any problems publishing. I was given a Word doc to include in the app. I...
11
by: cj | last post by:
Perhaps someone knows how to do this. When I open a new ASP.NET web service application in VS 2008, it opens with a simple Hello World web service already written. I want to see this work. ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.