I can't connect to the SQL server instance in my UWP app when the instance is on the server.
Here is the situation:
Using SQL Server Management Studio to connect to remote SQL Server instance, everything is fine, and I can check all databases.
Using a local SQL Server instance, the app connection is established and working properly.
When trying to connect to the remote SQL Server instance via the UWP app, I get the following 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: TCP Provider, error: 40 - Could not open a connection to SQL Server)
Having tried almost every solution in this fix error topic, the problem still remains the same.
What else can I do?
Edit: Here is my connection string:
public static string DefaultConnection { get; } = "Server=172.28.17.3; Database=kcsDB; User ID=QuadM; Password=**********; MultipleActiveResultSets=true";
and ssms connection window: