Reputation: 5099
I am deploying C# windows application with an sql server database
This is the error I get when I deploy:
Upvotes: 0
Views: 429
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