You need to sign in to do that
Don't have an account?
HANS YADAV
System.Net.WebException: The underlying connection was closed:
Hi all,
When i login to the SFDC i get this error very frequently "System.Net.WebException: The underlying connection was closed: Could not establish secure channel for SSL/TLS." Please help me, this is urgent.
Regards
Hans
When i login to the SFDC i get this error very frequently "System.Net.WebException: The underlying connection was closed: Could not establish secure channel for SSL/TLS." Please help me, this is urgent.
Regards
Hans
System.Net.WebException: The underlying connection was closed: Could not establish secure channel for SSL/TLS. ---> System.ComponentModel.Win32Exception: The message or signature supplied for
Error: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel..
Have you determined why this error is occuring?
I am currently getting the same error described above.
Thanks!
I am also getting the same thing.
But the strang thing is when I execute the code in DEBUG mode, it works fine. If I execute the exe, it gives me the error.
"The underlying connection as closed: Could not establish secure channel for SSL/TLS"
Hey, I got it resolved.
write the below code in ur webservice code (reference.as/vb)
protected override System.Net.WebRequest GetWebRequest(Uri uri)
{
System.Net.HttpWebRequest webRequest = (System.Net.HttpWebRequest) base.GetWebRequest(uri);
webRequest.KeepAlive = false;
return webRequest;
}
Hope, this works!!!
Smith
My C# code is working...
sForce.LoginResult loginResult = null;
// Create the binding to the sforce servics
sForce.SforceService binding = new sForce.SforceService();
try {
// Time out after a minute
binding.Timeout = 60 * 1000;
loginResult = binding.login(un, pw);
// Check for a successful login
if (loginResult.sessionId.Trim().Length > 0) {
loggedIn = true;
}
Thanks,
Jason