mohammed sameeh
mohammed sameeh

Reputation: 5099

error deploying C# project with sql database : unable to open physical file

I am deploying C# windows application with an sql server database

This is the error I get when I deploy:

enter image description here

Upvotes: 0

Views: 429

Answers (1)

Ryan
Ryan

Reputation: 28207

It says your database file is missing. Make sure you deploy the database file with your project.

See MSDN for more information. If you have your MDB file as part of your project, make sure that its properties are set to be deployed, specifically the Build Action (set to Content) and Copy to Output Directory(set to Copy if newer) properties. Your requirements may vary though.

Upvotes: 3

Related Questions