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
GoldwindGoldwind 

Login failed - Urgent

Hi,

I"m trying to use login (partner web service), but on some computers it fails while on the others it work ok

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

What may be the problem? Can't I relay on the web service for all computers?

 

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

DevAngelDevAngel
Not sure what the problem may be.  What is the difference between the systems that it works well on and the systems that it doesn't?  Proxy issues? Firewall? .Net framework versions?
GoldwindGoldwind

Both computers are connected to the same network  and both are XP pro. I"m also looking in the differences between them.

I think it may be in the definitions of the web service.

Can i send you a small project of the Login to examine?

Thanks

GoldwindGoldwind

Can i sent you a small project in .net with the login process?

I think it may be connected to the web service definitions.

Thanks

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?