0 votes

Hello!

I'm tried to solve my problem for hours but I'm completly clueless.
If im using the following code, the application runs without any error.

imapAuthenticate.ConnectSSL("imap.gmail.com", _serverPort);

But if im change the "imap.gmail.com" to this:

imapAuthenticate.ConnectSSL(_serverAddress, _serverPort);

_serverAddress is loaded from database, and has the same value.

I get ServerException was unhandled. An unhandled exception of type 'Limilabs.Client.ServerException' occurred in Mail.dll

An exception was intercepted and the call stack unwound the point before the call from user code where the exception occurred. "Unwind the call stack on unhandled exceptions" is selected in the debugger options.

Tried to turn off this in the options, but getting error too.

by (420 points)

1 Answer

+1 vote

This can't be Mail.dll problem.

The variable value must be incorrect (for example it specifies non-existing server).

What is the exception StackTrace?

by (301k points)
...