Question Problem using relative pathname while deploying the application

manubatham20

New member
Joined
Oct 1, 2008
Messages
2
Programming Experience
Beginner
Friends, i m noob in vb .net. I make a payroll application. I used relative pathname in it everywhere, as--

DBConn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;" _
& "DATA SOURCE=" _
& "database.mdb")
When i make the package of the application to deploy and install it on the pc, it says that it doesn't found the database. Now what to do??? And i am also unable to use relative pathname in crystalreport.load("Crystalreport.rpt) function. Please help soon.
 
Ok, i solve the problem of relative path, i given my path such like that -
DBConn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; " _
& "DATA SOURCE=" _
& application.startupPath + "/database.mdb")

but still when i am creating the deploy package and installing it, it doesn't found my database on that location. how can i include my database and crystal reports in my deployment package.
 

Latest posts

Back
Top