A connection was successfully established with the server, but then an error occurred during the pre-login handshake

前端 未结 24 3007
無奈伤痛
無奈伤痛 2020-11-27 03:37

I am getting following error when i am trying to connect Production DB from Local Environment.

I was able to connect Production DB before, but suddenly i am getting f

相关标签:
24条回答
  • 2020-11-27 04:05

    As described in the answer of Ricardo ,

    netsh Winsock reset
    

    has worked for me ,

    P.S. if you have Internet download manager or such programs which changes you IP Setting is installed then after running this command when you reboot your computer IDM will ask to change setting , Set NO in this case and then run your application it will work correctly.

    Hope it

    0 讨论(0)
  • 2020-11-27 04:06

    In my case this error occurred with dot net core and Microsoft.Data.SqlClient. The solution was to add ;TrustServerCertificate=true to the end of the connection string.

    0 讨论(0)
  • 2020-11-27 04:06

    For me the solution is to kill zombie IIS express worker processes.

    e.g. locate in Task Manager and end task.

    enter image description here

    0 讨论(0)
  • 2020-11-27 04:07

    Solution

    1) Clean your VS.Net Solution

    2) Rebuild Project.

    3) Reset IIS

    4) Run the project again.

    Basically that solved my problem, but in my case i was not getting this error and suddenly my local environment starts giving me above error, so may be that trick work for me.

    0 讨论(0)
  • 2020-11-27 04:09

    Had the same issue, the reason for it was BCrypt.Net library, compiled using .NET 2.0 framework, while the whole project, which used it, was compiling with .NET 4.0. If symptoms are the same, try download BCrypt source code and rebuild it in release configuration within .NET 4.0. After I'd done it "pre-login handshake" worked fine. Hope it helps anyone.

    0 讨论(0)
  • 2020-11-27 04:10

    I restarted SQL Server (Sharepoint) service and it solved the issue.

    0 讨论(0)
提交回复
热议问题