I'm sorry for reposting this question. Just couldn't find an answer that was working for me.
Problem
This error occurs with Louis Vuitton's website but not with for example a specific ebay listing... "The underlying connection was closed: An unexpected error occurred on a receive. ---> System.ComponentModel.Win32Exception: The client and server cannot communicate, because they do not possess a common algorithm " This is the console's output after running the following code and I can't figure out why:
public static string checkThisProduct = "https://en.louisvuitton.com/eng-nl/products/time-out-trainers-nvprod2750020v";
static void Main(string[] args)
{
GetInfoFromWeb(checkThisProduct);
}
public static void GetInfoFromWeb(string url)
{
try
{
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls13;
using (WebClient wb = new WebClient())
{
string info = wb.DownloadString(url);
}
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
}
Already Tried
Tried running this with no luck:
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls13 | SecurityProtocolType.Tls12;
Can this community help me out?