-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ADO.NET problems in Linux #267
Comments
What database exactly are you running against? Can you share your csproj, connection string, etc.? |
Also, which docker image exactly are you using? |
Hey Roji, sorry for the late response. I'm using SQL Server, my connection string is: "<providerName="System.Data.SqlClient" connectionString="Data Source=ServerName;Initial Catalog=DatabaseName;user=UserName;password=Password;MinPoolSize=10;MaxPoolSize=25;Pooling=true;"/> Unfortunatelly i cannot share my csproj, but the code snippet where the error occurs is something like: using (IDbConnection dbConnection = new SqlConnection(MyConnStringHere))
{
dbConnection.Open();
//everything else that is never reached
} As for the docker image, i tried using the default docker file:
When it didnt work i switched to:
Also to no avail. |
we solved our problem using mcr.microsoft.com/dotnet/core/aspnet:3.0-bionic |
I'm not being able to execute a simple DbConnection.Open() on a docker image running on Debian 10 (buster), i'm receiving the following message:
"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."
If i change the dockerfile to run in Ubuntu(bionic) everything works fine until i need to do a bulk insert.
Running in a windows container works just fine.
The text was updated successfully, but these errors were encountered: