I tried making a setup project and followed some answers I found, but when I rebuild the project it always seemed to fail because I clicked the radio button "Download prerequisites from the same location as my application". When I open the setup it's just blank. I had to click the "Download prerequisites from component vendor's website" radio button just so the setup just works.
However, every time I transfer my app onto my laptop and try to register, I always get the
The server was not found" error (full error is below).
I have a feeling I just did something wrong with my connection string, which is just this:
ReadOnly connection As New SqlConnection("Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\AladeenDatabase.mdf;Integrated Security=True")
I saw somewhere that if the database works fine on the development computer, it should work fine when installed on another computer. But it's always this error:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 50 - Local Database Runtime error occurred. The specified LocalDB instance does not exist.