0

I can't seem to find a simple answer to this on google. I need to create an executable of my application, so that it can easily be opened and used. The application has a database in it, which is made within the same solution in visual studio. I have tried to simply publish the application, but then the database doesn't seem to work as it immediately shows exeptions every time it needs the database.

Bas Bastiaansen
  • 73
  • 1
  • 1
  • 8
  • https://stackoverflow.com/search?q=deploy+C%23+app+with+sql+express – Ken White Jan 02 '18 at 14:12
  • while you can make LocalDB work, it is not intended for production use. It is a development tool. You still need it installed and the proper instance name/version created. – Crowcoder Jan 02 '18 at 14:13
  • This is for school, and one of the requirements is that the database is build within the C# project. (first time I worked with databases) – Bas Bastiaansen Jan 02 '18 at 14:22
  • Please indicate the exception you're generating. This may make it easier to diagnose the root cause of the problem. – Bob Mc Jan 02 '18 at 14:46

1 Answers1

0

I managed to make it work with the answer of the question in this link: publish a project with local database

Bas Bastiaansen
  • 73
  • 1
  • 1
  • 8