473,396 Members | 1,755 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,396 software developers and data experts.

Database Deployment problem ?

How to avoid the connection string problem when i try to deploy my
application on an another computer

I'm using an Access 2003 db an get an error when i try to use my prog.
The programs can't find the db. and try to reach the db with the wrong path
E:\database\yyyy.mdb who doesn't exist on the pc

There is a solution like "Server.MapPath" to retrieve the path of the
installed application ?
Or any other solution ?

I'm using OLEDB and no DSN
the problem is only in the conection string cause if i put the db in a
coressponding path on the computer everything work fine
Nov 21 '05 #1
1 862
Mark,

There is the application class where you can find a lot. (By instance
applicationpath
http://msdn.microsoft.com/library/de...mberstopic.asp

(See the last 3 public properties in that)

However here I think it is more the
File.exist that you need

I hope this helps?

Cor
Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: DB developer | last post by:
Hello friends I am trying to create a deployment project to distribute my VB.NET application with MSDE database. I am using VS.NET with MSDE 2000 deployment toolkit (release candidate) to achieve...
4
by: Manu | last post by:
I would like to create a database for my application when it is deployed. This database can be from different types depending on the tool installed on the customer computer and will be chosen...
2
by: z | last post by:
I'm developing a couple of applications that I need some advice on which database structure to use. My first thought is SQL Server of course, but after looking at my potential users and their...
2
by: Bill Nguyen | last post by:
I ran into this error trying to run an app from Publish.htm. I can't find what is wrong with the deployment. Thanks a million Bill -------- PLATFORM VERSION INFO
0
by: mszpor | last post by:
Hi, sometimes my JBoss (3.2.7) starts first before the database server is running. An EJB-based application need an open database connection to be deployed. So, if there is no connection to the...
1
by: lexman | last post by:
Hello, How do you deploy a vb.net application with a SQL express database? My vb.net programming book offers a single paragraph that amounts to "Select publish, choose options in wizard, job...
0
by: Just D | last post by:
All, What's the simplest way of a deployment of an application written in C# and using ADO.NET and MS SQL Server? I created a deployment project in the VS2005, aded it to the solution,...
0
by: Marek Kolesar | last post by:
Hi all i have a big problem with simple program wpf browser apliacation(xbap) app had only 1 label in grind where is loaded datatime from DB:) ( very easy sql comand )
1
by: iscariot | last post by:
While deploying an app for estate management agents which I built, I backed up and included the mssql database in the deployment project (specifically in the Application folder of the File System...
1
by: kitemad69 | last post by:
How i can i deploy and attach a database from a C# project. I created the database in sql manager now i want to deploy it using a C# project is this possible
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.