question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot connect to SQL Server

See original GitHub issue

On my development machine EF successfully connecting to SQL Server, I’ve deployed the .NET 6 app with EF Core 7 on Windows Server 2012r2 and SQL Server 2014. Now I’m getting this error message:

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.)

I’ve included TrustServerCertificate=True in connection string with no luck.

In server log I can see these errors:

A fatal alert was generated and sent to the remote endpoint. This may result in termination of the connection. The TLS protocol defined fatal error code is 10. The Windows SChannel error state is 1200.

A fatal alert was generated and sent to the remote endpoint. This may result in termination of the connection. The TLS protocol defined fatal error code is 10. The Windows SChannel error state is 1202.

What can be the issue? Login and password are correct.

Issue Analytics

  • State:closed
  • Created 3 months ago
  • Comments:27 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
Bykievcommented, Jun 14, 2023

The issue will be fixed in the next update of CryptoPro CSP

1reaction
alex-radchcommented, Jun 13, 2023

Is all working after remove of CryptoPro?

yeah

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to connect to MSSQL database
Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that...
Read more >
Cannot connect to a SQL server database
Hello, I created a connection to MS SQL server from Talend. The connection is ok. But I can not create a table in...
Read more >
Error Cannot Connect to Server - A network-related or ...
Open "SQL Server Configuration Manager" · Now Click on "SQL Server Network Configuration" and Click on "Protocols for Name" · Right Click on...
Read more >
Resolving could not open a connection to SQL Server errors
Sometimes you may have issues connecting to SQL Server and you may get messages such as could not open a connection to SQL...
Read more >
Unable to Connect to SQL Server in ...
In the Connect to Server window, make sure you have the correct server name for your course. · Under the Connection Properties tab,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found