nessa linha:
string json = (new System.Net.WebClient()).DownloadString(url);
Está dando o erro de SSL/TLS, habilitei apenas o TLS 1.0, TLS 1.1 e TLS 1.2, o que há de errado nessa rotina
public static List<Municipios> BuscarMunicipios()
{
string url = "https://servicodados.ibge.gov.br/api/v1/localidades/municipios";
string json = (new System.Net.WebClient()).DownloadString(url); // Erro nessa linha
var mun = JsonConvert.DeserializeObject<List<Municipios>>(json);
return mun;
}
Windows Form, C#, Windows 10
Obrigado.