A
Alistair Harrison
Hello,
I have been writing a .NET compact framework application for a CE device
that needs to call a web service over https. I have been getting an exception
when making the call to the web service. The details of the exception are:
System.Net.WebException: Could not establish trust relationship with remote
server
The exception also has a 'Status' of 'TrustFailure'.
I have managed to stop the exception occuring by assigning a custom
'CertificatePolicy' to the 'ServicePointManager' which always accepts the
certificate. However there should be no problem with the certificate to begin
with. I have installed the certificate on the client CE device. This seems to
be working ok as it has prevented the 'Security Alert' dialog (the one that
appears when there is a problem with the server certificate) appearing when
viewing the service wsdl in a browser.
I have also written a .NET application using the full 1.1 framework which is
using the web service over https fine from desktop clients.
Any ideas would be appreciated.
Thanks,
Alistair
I have been writing a .NET compact framework application for a CE device
that needs to call a web service over https. I have been getting an exception
when making the call to the web service. The details of the exception are:
System.Net.WebException: Could not establish trust relationship with remote
server
The exception also has a 'Status' of 'TrustFailure'.
I have managed to stop the exception occuring by assigning a custom
'CertificatePolicy' to the 'ServicePointManager' which always accepts the
certificate. However there should be no problem with the certificate to begin
with. I have installed the certificate on the client CE device. This seems to
be working ok as it has prevented the 'Security Alert' dialog (the one that
appears when there is a problem with the server certificate) appearing when
viewing the service wsdl in a browser.
I have also written a .NET application using the full 1.1 framework which is
using the web service over https fine from desktop clients.
Any ideas would be appreciated.
Thanks,
Alistair