path of database is missing

tirso

Active member
Joined
Nov 15, 2006
Messages
31
Programming Experience
1-3
Hi everyone, I have a poblem with the deployment of my windows application and it will accessing microsoft access database. Do we need to change that path of my code before I publish or build in which this database will be copied because on my PC it will works but once I setup to another PC the error occured like " the path of database is missing". Pls. give me an advice what I am going to do and where I'm gonna start cause this is my first program. Anny suggestions is greatly appreciated

Tirso
 
Sounds as you have a connection string that points to a path different.
 
path of database

Right, connection string. I have a connection string of my database in my code, but what I'm asking is if I deploy that application in other PC do I need to follow the path stated in my code? Is there a method that once I install that application it will automatically create a folder base on the connection string or path of my code.

Tirso
 
Yes, you have make the connection string dynamic. Application.StartupPath tell you what path application was started from.
 
Back
Top