Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET Objects

 AfterLogic Forum : MailBee.NET Objects
Subject Topic: System.ArgumentNullException Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
jvinis
Newbie
Newbie


Joined: 20 May 2008
Online Status: Offline
Posts: 18
Posted: 07 April 2009 at 12:12am | IP Logged Quote jvinis

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 View jvinis's Profile Search for other posts by jvinis
 
jvinis
Newbie
Newbie


Joined: 20 May 2008
Online Status: Offline
Posts: 18
Posted: 07 April 2009 at 12:14am | IP Logged Quote jvinis

.... 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 View jvinis's Profile Search for other posts by jvinis
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 07 April 2009 at 12:32am | IP Logged Quote Andrew

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 View Andrew's Profile Search for other posts by Andrew
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide