I use MyDirect.NET2 Mobile for database access on a windows mobile 6 device. Now, I tried to make connections secure using SSL instead of plain text. The problem is, that I get always "Lost connection to MySQL server during query" when MySqlConnection.open() is called.

For testing purposes, I downloaded the dotConnect for MySQL 5.00 Professional Trial and created an application using the same sourc code and the same cert files and there it works fine, so the MySQL server setup and the certificates are correct.

I guess the problem is simply, that I don't know what paths should be specified for the cert files on the windows mobile device.

conclusion: file://\cacert.pem seems to be correct for windows mobile devices, a second \ is not required (no inner exception there); file://cacert.pem seems also to be valid. Nevertheless, I still get the "lost connection" exception and I don't find any reason for this.

As I already mentioned, the problem only occurs on the windows mobile device, it works fine on windows XP.

JorEl, we cannot reproduce the SSL problem with the 5.0.26.2 version of dotConnect Mobile for MySQL. Please try using this version. If the problem persists, please tell us:
1) your connection string;
2) is the connection successful without using SSL?