Author |
|
jvinis Newbie
Joined: 20 May 2008
Online Status: Offline Posts: 18
|
Posted: 07 April 2009 at 12:12am | IP Logged
|
|
|
With this code :
MailBee.ImapMail.Imap.Li censeKey = "xxxxxxxxxxxxxx"
Dim imp As MailBee.ImapMail.Imap = New MailBee.ImapMail.Imap()
imp.Log.Enabled = False
If UseSSL Then
imp.SslMode = MailBee.Security.SslStartupMode.OnConnect
Else
imp.SslMode = MailBee.Security.SslStartupMode.Manual
End If
If Port <= 0 Then
imp.Connect(Server)
Else
imp.Connect(Server, Port)
End If
Sometimes the Connect command throws the exception :
System.ArgumentNullException: Value cannot be null.
Parameter name: source
at System.Runtime.InteropServices.Marshal.CopyToManaged(IntPtr source, Object destination, Int32 startIndex, Int32 length)
at eo.i()
at eo.b(Int32 A_0, Int32 A_1)
at c1.a(SecurityProtocol A_0)
at d6.a()
at d6.a(String A_0, Int32 A_1, Boolean A_2, EndPoint A_3)
at d6.y()
at cf.a(Boolean A_0, String A_1, Int32 A_2, Boolean A_3)
at MailBee.ImapMail.Imap.Connect(String serverName, Int32 port)
Do you know what id wrong ?
|
Back to Top |
|
|
jvinis Newbie
Joined: 20 May 2008
Online Status: Offline Posts: 18
|
Posted: 07 April 2009 at 12:14am | IP Logged
|
|
|
.... And the same exception occurs in POP3:
System.ArgumentNullException: Value cannot be null.
Parameter name: source
at System.Runtime.InteropServices.Marshal.CopyToManaged(IntPtr source, Object destination, Int32 startIndex, Int32 length)
at eo.i()
at eo.b(Int32 A_0, Int32 A_1)
at c1.a(SecurityProtocol A_0)
at d6.a()
at d6.a(String A_0, Int32 A_1, Boolean A_2, EndPoint A_3)
at d6.y()
at cf.a(Boolean A_0, String A_1, Int32 A_2, Boolean A_3)
at MailBee.Pop3Mail.Pop3.Connect(String serverName, Int32 port)
|
Back to Top |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 07 April 2009 at 12:32am | IP Logged
|
|
|
Which version on MailBee.NET Objects do you use? That seems to be an obsolete version as the exception is thrown on managed/unmanaged joint, but we've implemented fully managed SSL in MailBee.NET Objects v5.
Please update your MailBee.NET.dll to the latest version and try to reproduce the issue.
Best regards,
Andrew
|
Back to Top |
|
|