I saw a lot of answers but it didn't work!!!!! Here is my code:
List<KeyValuePair<string, string>> lstItemsIndexC = new List<KeyValuePair<string, string>>();
XmlDocument xmlDoc = new XmlDocument();
ServicePointManager.ServerCertificateValidationCallback = new System.Net.Security.RemoteCertificateValidationCallback(AcceptAllCertifications);
xmlDoc.Load("https://apps.myexponet.com/apps/aspnet/budget/js/indices_heb.xml");
I get the following exception :
The request was aborted: Could not create SSL/TLS secure channel.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel.
Source Error:
Line 31:
ServicePointManager.ServerCertificateValidationCallback = new System.Net.Security.RemoteCertificateValidationCallback(AcceptAllCertifications); Line 32: Line 33:
xmlDoc.Load("https://apps.myexponet.com/apps/aspnet/budget/js/indices_heb.xml"); Line 34: Line 35: XmlNodeList MList = xmlDoc.SelectNodes("/indices/date");
Can someone please help me? I saw a lot of answers, but it didn't really work! Thanks!