Craig Smith Craig Smith - 1 year ago 71
C# Question

Visual Studio Project with Access DataBase Published Project DataBase not found

I've written a program in Visual Studio which uses an Access database. When I run the program thru Visual Studio it works as intended, but when I publish to program it doesn't run because the database file is not found. Does anyone know how to fix this?

Answer Source

Right-click on your project than select properties -> publish -> application.

change the 'Publish Status' property of your database file from 'Include (Auto)' to 'Data File', make the file Required, and Include.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download