I've created an mvc application. I used entity framework to work with database. When I tested my application, I filled my database with some data through web interface of my application. When I deploy app on IIS server and copy .sdf file to deployed app's folder I get the error:
Access to the database file is not allowed. [ 1914,File name = C:\last_project\published\App_Data\Data.sdf,SeCreateFile ]
How I can get working database in my deployed app?