Monday, December 10, 2012

to avoid The site's security certificate is not trusted! errors

use this in Global aspx


  void Application_Start(object sender, EventArgs e)
        {
            // Code that runs on application startup
            System.Net.ServicePointManager.ServerCertificateValidationCallback =
                ((certSender, certificate, chain, sslPolicyErrors) => true);
        }

of course , this is where there is no security issue

No comments:

Post a Comment