EldoS | Feel safer!

Software components for data protection, secure storage and transfer

ElPOP3Client-Error Connectin to Gmail:EElSSLClientConnectionLostError

Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.
#18908
Posted: 02/02/2012 19:02:06
by toledogu (Basic support level)
Joined: 09/27/2011
Posts: 15

Hi,

I'm using the .Net package version 9.0.203.40591

Right now i'm testing a connection to a Gmail POP3 account using the sample provided (MailBlackbox\POP3Client), but when I try to open the connection I get the following error:

EElSSLClientConnectionLostError (Connection lost (error code is 10058))

Obviously I had enabled POP3 access for the account, and I had used the settings described here: https://support.google.com/mail/bin/answer.py?hl=en&answer=13287

Incoming Mail (POP3) Server: pop.gmail.com
Use SSL: Yes
Port: 995

I had tested the connection succesfully with Outlook

Can you please help me to solve this issue and connect to my GMail account?

Thanks,
#18909
Posted: 02/03/2012 02:33:17
by Vsevolod Ievgiienko (EldoS Corp.)

Thank you for contacting us.

Do you use implicit SSL/TLS mode?
#18916
Posted: 02/03/2012 08:11:10
by toledogu (Basic support level)
Joined: 09/27/2011
Posts: 15

Hi,

Thanks for your reply,


I have tried selecting both modes in the list (implicit and explicit) and I was getting the same error, but I found the error and is in the code of your example that isn't setting correctly the mode according to the selection, because the items are in reverse order on the list.
#18917
Posted: 02/03/2012 09:04:08
by Vsevolod Ievgiienko (EldoS Corp.)

Hmm.. the sample sets SSLMode correctly. Could you please clarify what do you mean by "items are in reverse order on the list"?
#18918
Posted: 02/03/2012 10:26:39
by toledogu (Basic support level)
Joined: 09/27/2011
Posts: 15

This is the enum of property of SSLMode
Code
public enum TSBSSLMode
   {
      smImplicit = 0,
      smExplicit = 1,
   }



On the file ConnectFrm.cs line 206, you are adding the items to the cbSSLMode ComboBox in this way

Code
this.cbSSLMode.Items.AddRange(new object[] {
            "Explicit",
            "Implicit"});


And since you are setting this property on the TElPOP3Client control based on the selected index of the ComboBox, it should be added in reverse order to match the enum

It should be:

Code
this.cbSSLMode.Items.AddRange(new object[] {
            "Implicit",
            "Explicit"});
#18919
Posted: 02/03/2012 10:36:03
by Vsevolod Ievgiienko (EldoS Corp.)

Yes but SSLMode it set this way:
Code
switch (Frm.GetSSLMode()) // cbSSLMode.SelectedIndex
{
case 0: // Explicit
  client.SSLMode = TSBSSLMode.smExplicit;
  break;
case 1: // Implicit
  client.SSLMode = TSBSSLMode.smImplicit;
  break;
}

so the order of the elements in combo box doesn't matter.
#18920
Posted: 02/03/2012 11:04:04
by toledogu (Basic support level)
Joined: 09/27/2011
Posts: 15

Sorry, that's true. Actually what i'd post and the lines you post were the things that I had changed to make it work.

I obtained the original version of the samples and checked again to see which was the original problem, and this is what i've found

Code
switch (Frm.GetSSLMode())
{
case 1:
  client.SSLMode = TSBSSLMode.smExplicit;
  break;
case 2:
  client.SSLMode = TSBSSLMode.smImplicit;
  break;
}


Here you can see that the cases are 1 and 2, and that was the problem. It should be 0 and 1 as you had posted. Probably you have fixed it in the last version but that the code available for the version i have been testing (9.0.203.40591).
Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.

Reply

Statistics

Topic viewed 1322 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!