when I am going to add some website, for example: http://www.nirmauni.ac.in/ , then it talks about the above error, to fix this problem I gave my code, just go through and where the change should be made
bool IsLinkWorking(string url) { HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(url); //You can set some parameters in the "request" object... request.AllowAutoRedirect = true; ServicePointManager.ServerCertificateValidationCallback = (s, cert, chain, ssl) => true; try { HttpWebResponse response = (HttpWebResponse)request.GetResponse(); return true; } catch {
source share