I have a problem that I have been researching for the last 2 days. I have a program I wanted to give to a friend. It uses a MDF local database file. But once he installs it on his computer, it gives a sql 50 error (Error 1).
I have installed basically everything I can install, he even installed VS and it did not work. I can't give a list of what I have installed because its way too long, but everything with the name SQL in it I have installed it on a VM, to test. On my pc(Not the VM) it works fine but on someone else it doesn't work.
Here is the connection string :
"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\DataBases\Software.mdf;Integrated Security=True".
I've added the ports to the firewall 1433. I have tryed to just add the database true the "Inport data"program form sql 2012 express also does not work. I just cant seem to get it to work. I also tryed to make a MSSQLLocalDB But I don't know how to. There is no good tutorial to do that.
Error 1: A netowkr-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 configurad to allow remote connections (Profider; SQL Network interfaces Error 50 - Localc Database Runtime Error occurred the specified localDB instance does not exist).