I'm connecting to a SQL server on another PC in our network. While coding this UWP app (using the latest versions of everything, i.e., SQL, Windows 17763) everything works fine. Queries are returning results. I'm using VS 2017.
However, when I created a package for it to sideload to other PCs (including on the PC where the server is), I get an error saying the server was not found or not accessible:
provider: TCP Provider, error: 25 - Connection string is not valid
For reference, the generated connection string is as simple like:
Data Source=PC-1\\SQLEXPRESS;Initial Catalog=NewDatabase;User ID=sa;Password=password
I checked every other thread I could find on this topic. I even got the Capabilities checklist covered too - Private Networks, Internet (Client & Server)
What could be causing this error?
UPDATE: The sideloaded app does work when installed in other PCs except the one where the SQL server instance is, for some reason.