Closed TWCM closed 4 months ago
Transferring to SqlClient as this doesn't seem related to EF.
@TWCM we will look into the issue. One question, have you tested EFCore 6 and 7 on the same client machine?
@JRahnama Notice that EF Core 6 and EF Core 7 uses very different versions of MDS
@TWCM we will look into the issue. One question, have you tested EFCore 6 and 7 on the same client machine?
Yes, I just changed the version ef core from 6 to 7 .
The assumption is SQL Server Setting cannot be changed
Why? Have a look and see if it can use a later version of tls if possible.
The assumption is SQL Server Setting cannot be changed
Why? Have a look and see if it can use a later version of tls if possible.
Coz our infra team doesn't take the risks to enable the tls1.2 in the production. If no solution in the short time, we will change back to use EF Core 6.
If EF7 and MDS do support TLS 1.0, but it occurred an error, then it should be an issue.
If it doesn't support TLS1.0, then the changes should be included in the breaking changes to let user know the limitation.
@TWCM note that none of this has anything to do with EF - only with SqlClient. If you really need to, you should be able to downgrade SqlClient specifically while keeping a new version of EF.
@TWCM note that none of this has anything to do with EF - only with SqlClient. If you really need to, you should be able to downgrade SqlClient specifically while keeping a new version of EF.
Sure, thanks for your reply.
Closing since SQL Server 2008 R2 is long out of support.
I'm trying to connect to SQL Server 2008R2(TLS1.0) with EF core 7, but got expcetion
A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The client and server cannot communicate, because they do not possess a common algorithm.)
but it is working on EF Core 6.
The assumption is SQL Server Setting cannot be changed Any workaround for this exception? Thanks
I tried on below approach, but it does not work
Add
TrustServerCertification=False;Encrypt=False
to ConnectionStringstack traces
provider and version information
EF Core version:7.0.11 Database provider: Microsoft.EntityFrameworkCore.SqlServer Target framework: .NET 6.0 Operating system: Windows 10 IDE: Visual Studio 2022 17.4