The problem of connecting to the database from the application. The remote host forcibly terminated the existing connection

84 Views Asked by At

My application is on C# .net core 7 Winforms with Entity Framework 7.0. MS SQL server version 11.0.7507.2.

When connecting to the database, it gives an error

A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - An existing connection was forcibly closed by the remote host.

The application runs on Windows Server 2016 - OS Build 14393.5006, and only on this OS is such an error, everything works on a regular win 11. Also my other C# .Net Framework Winforms program without Entity Framework runs on Windows Server 2016.

I tried to set true and false in the db connection string for trustservercertificate and encrypt . Also tried without these parameters.

0

There are 0 best solutions below