N1QL query not work in SSL


I used the CouchbaseNetClient 2.7.0 version.
In that we are making secure SSL connection between Service Fabric cluster and Couch base.
It works for all the scenario like Insert,Upsert,Delete and Get by document Id.
It got failed when I tested for N1QL query

Following code I have added to support N1QL query

clientConfiguration.HttpServerCertificateValidationCallback = OnCertificateValidation;

private static bool OnCertificateValidation(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)

        return sslPolicyErrors == SslPolicyErrors.None;

Still Exception
Message: System.MissingMethodException : Method not found: ‘Void Couchbase.Configuration.Client.ClientConfiguration.set_HttpServerCertificateValidationCallback(System.Func`5<System.Net.Http.HttpRequestMessage,System.Security.Cryptography.X509Certificates.X509Certificate2,System.Security.Cryptography.X509Certificates.X509Chain,System.Net.Security.SslPolicyErrors,Boolean>)’.

Can anyone know this issue??


Follow the steps described here https://dzone.com/articles/n1ql-support-for-x509 cc @isha