here is how you do it
// callback used to validate the certificate in an SSL conversation
private static bool ValidateRemoteCertificate(
object sender,
X509Certificate certificate,
X509Chain chain,
SslPolicyErrors policyErrors
)
{
if (Convert.ToBoolean(ConfigurationManager.AppSettings["IgnoreSslErrors"]))
{
// allow any old dodgy certificate...
return true;
}
else
{
return policyErrors == SslPolicyErrors.None;
}
}
what u need to do is to create a parameter in the app.config and give it a key
"IgnoreSslError" and set this to true or false up to ur conviniece and here is how you
streetmps_buffered.TrackingWS.Service m_proxy = new streetmps_buffered.TrackingWS.Service();
ServicePointManager.ServerCertificateValidationCallback += new RemoteCertificateValidationCallback(ValidateRemoteCertificate);
m_proxy.WriteDataAsync(m_DriverName, m_CurrentGPSPoint.X.ToString(), m_CurrentGPSPoint.Y.ToString(), (int)SMNavigation.MilesToKilometers(m_CurrentSpeed), DateTime.Now.ToString());
hope it helps others