A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket ...

A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied at System.Net.Sockets.TcpClient.Connect(String hostname, Int32 port) at Microsoft.Online.CSE.HRC.Analysis.Analyzers.AutoD.SSLCertificateAnalyzer.CollectSSLCertificate()