title: SQL Server error : the pre-login handshake failed or the server was unable to respond back in time
body: <p>I have used identity server database for my project with membership. It is working fine. Now I connected new server with new database getting error. If use the old server means it is running without error. How to clear this? Can I set any property to new database?</p>
  
  <pre><code>MembershipUser membershipObj = Membership.GetUser(Context.User.Identity.Name.ToString());
  </code></pre>
  
  <p><code>membershipObj</code> getting this error</p>
  
  <blockquote>
    <p>Connection 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=1764; handshake=13233;</p>
  </blockquote>