ssl.authenticateAsServer fails with "local security cannot be contacted" exception

Hi,

System.Net.Security.SslStream ssl =new System.Net.Security.SslStream(ns);

X509Certificate2 x509 =newX509Certificate2(webRoot +@"\My.pfx","test123");

ssl.AuthenticateAsServer(x509,false,SslProtocols.Default,false);

this piece of code raises the following exception

A call to SSPI failed - "The Local Security Authority cannot be contacted"

i will be glad if soneone could throw some light on this.

Thanks,

skrajmohan

[1524 byte] By [skrajmohan] at [2007-12-22]
# 2
I have the same problem....
MatthiasR at 2007-8-30 > top of Msdn Tech,.NET Development,.NET Framework Networking and Communication...

.NET Development

Site Classified