function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
EnOfirEnOfir 

Login error - Could not establish trust relationship

Hi,

I"m trying to use login (partner web service), but on some computers it fails while on the others it work ok. The computers are connected to the same network and their os is XP pro.

The error message is: "The underlying connection was closed: Could not establish trust relationship with the remote server"

What may be the problem?

I understand that it may be the binding so what is missing?

This is an urgent problem since the basic operation of application: "Login" doesnt work well

I can send a small login project to inspect and test, by responding with a given email address.

 

below is code which calls the login:

binding = New sforce.SforceService

'// Time out after a minute

binding.Timeout = 60000

' Set Client Id

binding.CallOptionsValue = New sforce.CallOptions

binding.CallOptionsValue.client = CLIENT_ID

Try

loginRes = binding.login(UserName, Password)

Catch ex As System.Web.Services.Protocols.SoapException

...

Catch ex As Exception

...

End Try

 

 

Thanks in advance

GoldwindGoldwind

We found the solution in a strange way:

The computers, which failed with the login, had a wrong date (the computer's date had a date of march 2005 instead of september).

We changed it to the date of today and, amazingly enough, the login work.

So we know it works but we dont know why!

Do the web service has a date check?

SuperfellSuperfell
Because the SSL cert's currently in use aren't valid for march 2005 (the current ones are valid July 2005->July 2007)