Portable App with Database

  • Thread starter Thread starter DexterCamarillo
  • Start date Start date
D

DexterCamarillo

Guest
I have this problem when publishing and installing my app in another pc.

This program is a windows application written in c#. This comes with a local db (.mdf)

I made the Connection String to be relative, that is

Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\SampleDb.mdf;Integrated Security=True" providerName="System.Data.SqlClient

In the publish setting I did not include the SQL Server 2012 Express Local DB.

Only the .Net Framework 4.7.2 is included.

Then I encountered this error when running the app in another PC

error: 52: Unable to locate a Local Database Runtime installation. Verify that SQL Server Express is properly installed and the Local Database Runtime feature is enabled



What could I be missing out here. This is my first time publishing an application.

Thanks for the answer.

Continue reading...
 

Similar threads

D
Replies
0
Views
710
DexterCamarillo
D
D
Replies
0
Views
301
DexterCamarillo
D
D
Replies
0
Views
94
Donald Uko
D
M
Replies
0
Views
166
Markus Freitag
M
Back
Top