Skip to content

A call to SSPI failed, see inner exception.

sumesh np

sumesh np

Asked Mar 12, 2015, 3:31 AM EDT1 answer
Share
LinkedInX
Hi,
There is an exception when connecting to Epp Server, "A call to SSPI failed, see inner exception." 
 
C#
  public void Connect()
        {
            var client = new TcpClient(EPP_REGISTRY_COM, PORT);

            stream = new SslStream(client.GetStream(), false, ValidateServerCertificate)
                     {
                         ReadTimeout = READ_TIMEOUT,
                         WriteTimeout = WRITE_TIMEOUT
                     };

            if (clientCertificate != null)
            {
                var clientCertificates = new X509CertificateCollection {clientCertificate};

                stream.AuthenticateAsClient(EPP_REGISTRY_COM, clientCertificates, SslProtocols.Tls, false);
            }
            else
            {
                stream.AuthenticateAsClient(EPP_REGISTRY_COM);
            }

        }
 
 How to solve this ?

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 1 short reply
    • Vithal Wadje
      +1
      check proxy setting
      +1