Connecting to Solace

etnuer Member Posts: 1

Hi All,

I am trying to connect to solace using the below details but have to use a truststore instead of a password using C#.

 SessionProperties sessionProps = new SessionProperties();

        sessionProps.Host = "********";

        sessionProps.VPNName = "*******";

        sessionProps.UserName = "*******";

        sessionProps.SSLValidateCertificate = true;

        sessionProps.SSLValidateCertificateDate = true;

        sessionProps.SSLValidateCertificateHost = true;

Can anyone kindly help me with how I can use the trust store because all the attempts to connect give me the below error.

Operation Error: ReturnCode = SOLCLIENT_FAIL Error Info: (Subcode=UnresolvedHost, Error string=host names in the hostlist '' could not be resolved from session '' configuration property 'SESSION_HOST',

thank you


  • Ragnar
    Ragnar Member, Employee Posts: 47 Solace Employee

    Hello etnuer,

    The problem is not related to the certificate or trust-store. We haven't got that far yet, so there may be problems there next.

    The problem is the configured 'sessionProps.Host' does not resolve to an IP address.

    Can you verify that the host name is resolvable? Can you ping the hostname from the client?


  • python_developper
    python_developper Member Posts: 3

    hi @etnuer how did you solve this please ?