Craig Smith Craig Smith - 4 months ago 32
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?


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.