I have connection string
public static string connectionString = @"Data Source=test123\SQLEXPRESS;Initial Catalog=TestDB;Integrated Security=true;Persist Security Info=true";
In my .xaml.cs file
private async void LoadData()
{
using (SqlConnection conn = new SqlConnection(LibCommon.connectionString))
{
try
{
conn.Open(); // error : System.Net.Sockets.SocketException: 'Could not resolve host 'name of the my host''
await DisplayAlert("OK", "Ok I am connected", "OK");
}
catch (Exception ex)
{
await DisplayAlert("Error", ex.ToString(), "OK");
}
}
}
Please, help me to solve this error