Sign UpSign Up   Sign InSign In Welcome Guest,
Live Chat Live Chat

Exception when fetching eMails

Last post 06-18-2009, 7:39 AM by psalvatori. 2 replies.
Sort Posts: Previous Next
  •  06-18-2009, 7:17 AM 184417

    Exception when fetching eMails .NET


    Dear Aspose-Team,

    we are evaluating your Networking-Components.

    We want to fetch e-Mails from an exchange server,
    Unfortunately we are getting exceptions from your component:

    Object Reference not set to an instance:

    {"Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt."}
        System.NullReferenceException: {"Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt."}
        Data: {System.Collections.ListDictionaryInternal}
        HelpLink: Nothing
        InnerException: Nothing
        Message: "Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt."
        Source: "Aspose.Network"
        StackTrace: "   bei Aspose.Network.xb48d0c971e5c9051.get_Length()    bei Aspose.Network.xb48d0c971e5c9051.Read(Byte[] buffer, Int32 offset, Int32 count)    bei Aspose.Network.x465598d3637eaed7.x3ad8e53785c39acd(Stream x50a18ad2656e7181, Stream x6b8e154b42d5c1e3)    bei Aspose.Network.Imap.ImapClient.SaveMessage(String uniqueId, Stream output)    bei Aspose.Network.Imap.ImapClient.SaveMessage(String uniqueId, String fileName)    bei IMAP_Queue_Aspose.getMailQueue(Collection& inQueue, XmlDocument objXML, String strLicencePath) in C:\IMAP\E-MAIL-SERVICETEST-IMAP\E-MAIL-SERVICETEST-IMAP\Modules\IMAP_Queue_ASPOSE.vb:Zeile 123."
        TargetSite: {System.Reflection.RuntimeMethodInfo}


    This is the code we are using:

    Do While i < list.Count
                                'save the eml file locally
                                Try
                                    objASPOSEIMAP.SaveMessage(list(i).UniqueId, "c:\temp\" & list(i).UniqueId & ".eml")
                                    i += 1

                                    'Threading.Thread.Sleep(100)
                                    'Application.DoEvents()

                                Catch ex As Exception
                                    Stop
                                End Try
     Loop


    If we uncomment the Sleep-Statement then it works ...

    Kind regards,

    Peter

     
  •  06-18-2009, 7:32 AM 184420 in reply to 184417

    Re: Exception when fetching eMails

    Hi Peter,

    1. Could you please tell me what version of Aspose.Network are you using?

    2. You are running on .NET 2.0 or .NET 3.5?

    3. What exchange server version?

    thanks,


    Team Lead
    Aspose Guangzhou Team
    About Us

    Contact Us
     
  •  06-18-2009, 7:39 AM 184421 in reply to 184420

    Re: Exception when fetching eMails

    We use:

    1) Runtime Version v2.0.50727/ Version 4.7.1.0
    2) 3.5
    3) 6.5

    Thanks
     
View as RSS news feed in XML