Unable to connect to database. Access to the database file is not allowed.

This error may happen when using MS Access or MS SQL CE database files and running application using IIS. To resolve this copy database file inside the application folder .