Angular + dotnet core application that hosted on the Linux server(centos) is throwing time out error when try to connect MS SQL Server that installed in azure Virtual machine.
error:
Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.
But when I try to run the application in Visual studio editor(localhost and OS in windows) it is working. earlier it was throwing network related issue after whitelisting the IP now I am getting the the above mentioned TIMEOUT error .
using (SqlConnection connection = new SqlConnection(connectionString))
{
connection.Open();
///code
}
also I tried to give min and max pool size and "Integrated Security=false",true sspi etc in connection string.