Question Deploying an MS Access File with Application

JimStewart

Member
Joined
Oct 8, 2010
Messages
19
Programming Experience
Beginner
Ok, I am new to vb.net, I have a windows form application that needs an MS Access file packaged and built with it. It seems to be running fine when I debug. However, when I build the project and install, my application cannot find the database that should have installed with it. I have made sure that the file is in Solution Explorer, and is listed as required in the application publish settings, Yet it does not work. Can someone PLEASE explain what in the world I am doing wrong?

Thanks in advance!

Jim Stewart
 
PS the connection String is as follows"

Dim con As New OleDb.OleDbConnection

con.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\RegionalCatalog.accdb"
 
SOLVED: It was the use of the .deploy application extension, and I disabled the "create installer program", built it and it worked fine
 
Back
Top