SSL Web Service calls from Compact Framework app

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
 
A

Alistair Harrison

Sorry - I forgot to mention it is compact framework version 1.0 with SP3.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top