In Windows Server 2016 with SQL Server 2016, I disabled TLS 1.0 and 1.1 and got the problem with only one old site (other, newer sites on the server worked fine).
I tried updating the target assembly from 4.0 to 4.7, but that did not help.
The problem was in some really old code that called the database using OleDbDataReader , I updated it to SqlDataReader and this is OleDbDataReader .
I did not find it anywhere else, so I thought that a post here could help someone else in the future ...
source share