2
Answers

How to resolve this Error

Umer Ali

Umer Ali

7y
169
1
providerName="Sql.Client.Data" />
 
 
 
 
onnection Timeout Expired. The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement. This could be because the pre-login handshake failed or the server was unable to respond back in time. The duration spent while attempting to connect to this server was - [Pre-Login] initialization=42037; handshake=3; 
 
 I am  Created Windows Application , when i run application it shows me this Error ,
 
I did all the  things like ,,, enable tcp , creating inbound rule , etc 
Answers (2)
1
Amit Gupta

Amit Gupta

NA 16.5k 25.7k 7y
Have you tried checking running the same in sql with the same credentials and servername? Have a look to this link https://blog.devoworx.net/2017/01/30/connection-timeout-expired-pre-login-handshake/amp/
Accepted
0
Umer Ali

Umer Ali

NA 65 1.3k 7y
yes when i login to sql server management it connects