Hello everyone,
I am using VSTS 2008 + C# + .Net 3.5 to develop a Silverlight 3 application and I need to access some https address on another web server (other than the server delivering the Silverlight application).
Here is my code which works with .Net 3.5 console application, But I cannot find class like ServicePointManager when using Silverlight. Any suggestions how to implement the same feature in Silverlight (accept all certificate from server).
public static void SetBypassSslCertificateValidation()
{
ServicePointManager.ServerCertificateValidationCallback
+= new RemoteCertificateValidationCallback(BypassSslCertificateValidation);
}
private static bool BypassSslCertificateValidation(object sender, X509Certificate cert, X509Chain chain, SslPolicyErrors error)
{
return true;
}
thanks in advance, George