This project has moved and is read-only. For the latest updates, please go here.

The naming of "security.dll" causes "SslStream.AuthenticateAsClient" to fail (and others)

Jun 29, 2012 at 6:54 PM
Edited Jun 29, 2012 at 6:55 PM


I think the naming of security.dll is causing an exception with the following code


class Program { static void Main(string[] args) { const string HostName = ""; TcpClient tcpClient = new TcpClient(HostName, 443); SslStream sslStream = new SslStream(tcpClient.GetStream(), false, null, null); sslStream.AuthenticateAsClient(HostName, null, SslProtocols.Tls, false); } }


other blogs indicate that anything named security.dll causes an exception..