Could not establish secure channel for SSL/TLS
Hello,
simple problem: I can connect to an HTTPS webservice using
.NET Windows Forms, but from my Pocket PC device using the .NET Compact
Framework I get the error from the subject:
"Could not establish secure channel for SSL/TLS".
I suspect it has something to do with authentication to our proxy server... ,
but using the exact same code from my desktop works fine?
Here is the code snippet:
// connect to the webservice
private void btnConnect_Click(object sender, System.EventArgs e)
{
try
{
// connect to the webservice -> create webservice object
_ws = new SDiasPDA();
// trust all certificates -> always returns true
ServicePointManager.CertificatePolicy = new TrustAllCertificatePolicy();
// proxy authentication
WebProxy myProxy = new WebProxy("myproxy", 8080);
myProxy.Credentials = new NetworkCredential("login", "password", "mydomain.be");
_ws.Proxy = myProxy;
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
private void btnGetConnString_Click(object sender, System.EventArgs e)
{
try
{
// test() is a simple webservice method that returns a message
// HERE I GET THE EXCEPTION : Could not establish secure channel for SSL/TLS
MessageBox.Show(_ws.test());
}
catch (Exception ex)
{
ShowException("button1_Click", ex);
}
}
Can anybody give me some hint, please?
There MUST be a solution for this problem...
Thanks in advance,
nick;

