Aspose.Email.Outlook.Pst.PersonalStorage.ExtractMessage exception

Last post 02-27-2012, 8:21 AM by robwingate. 23 replies.
Page 1 of 2 (24 items)   1 2 Next >
Sort Posts: Previous Next
  •  01-31-2012, 11:56 AM 358408

    Aspose.Email.Outlook.Pst.PersonalStorage.ExtractMessage exception .NET

    I have some PSTs that throw exceptions when extracting MSGs:

    System.NullReferenceException was caught
      Message=Object reference not set to an instance of an object.
      Source=Aspose.Email
      StackTrace:
           at ?..ReadMessage(UInt32 )
           at Aspose.Email.Outlook.Pst.PersonalStorage.ExtractMessage(Byte[] entryId)

    I can send you an example file, but it is large, so I need to upload it to the same account I sent to you previously. Is this OK?

    Thank you,
    Rob W

     
  •  02-01-2012, 5:19 AM 358599 in reply to 358408

    Re: Aspose.Email.Outlook.Pst.PersonalStorage.ExtractMessage exception .NET

    Hi Rob, 

    Thank you for your inquiry.

    Yes, it would be Ok to upload the sample file on your FTP server and provide us the access to specified server via an email. Also, please notify us via this thread after sending an email to babar.raza.

    Regards,

    Babar Raza
    Support Developer,
    Aspose Sialkot Team
    http://www.aspose.com/
    Aspose - Your File Format Experts
     
  •  02-01-2012, 8:38 AM 358664 in reply to 358599

    Re: Aspose.Email.Outlook.Pst.PersonalStorage.ExtractMessage exception

    I uploaded the file -- you should have received a link in your email.

    Thank you!

     
  •  02-01-2012, 9:06 AM 358676 in reply to 358664

    Re: Aspose.Email.Outlook.Pst.PersonalStorage.ExtractMessage exception .NET

    Hi Rob, 

    Thank you. I have received the link via an email.

    Babar Raza
    Support Developer,
    Aspose Sialkot Team
    http://www.aspose.com/
    Aspose - Your File Format Experts
     
  •  02-02-2012, 4:55 AM 358913 in reply to 358676

    Re: Aspose.Email.Outlook.Pst.PersonalStorage.ExtractMessage exception .NET

    Hi Rob,

    Thank you for your patience.

    I have tried extracting all the messages (folder wise) from your provided PST file by using the latest version of Aspose.Email for .NET v1.4.0. So far, I haven't succeeded in replicating your said exception at my end.

    Will you be kind enough to give the latest version a try and feed us back with your results?

    Regards,

    Babar Raza
    Support Developer,
    Aspose Sialkot Team
    http://www.aspose.com/
    Aspose - Your File Format Experts
     
  •  02-02-2012, 7:58 AM 358951 in reply to 358913

    Re: Aspose.Email.Outlook.Pst.PersonalStorage.ExtractMessage exception

    Yes, I am anxious to do this. I downloaded version 1.4 yesterday and will integrate it today. I will let you know the results of my test.

    Thank you very much!

    Rob W

     
  •  02-02-2012, 3:54 PM 359050 in reply to 358951

    Re: Aspose.Email.Outlook.Pst.PersonalStorage.ExtractMessage exception

    Using version 1.4, I still get the NullReferenceException.

    I am using the ExtractMessage(byte[] entryId) overload.

    Would you mind posting a snippet of code that you used to extract MSGs from the Old_Archive.pst file?

    Thank you,

    Rob W

     
  •  02-06-2012, 12:28 AM 359359 in reply to 359050

    Re: Aspose.Email.Outlook.Pst.PersonalStorage.ExtractMessage exception .NET

    Hi Rob,

    Earlier, I tried the simplest code as below to extract the messages from all the sub-folders at the root of PST and I was not able to reproduce the said exception. 

    C#
                var folderInfoCol = pst.RootFolder.GetSubFolders();             foreach (var folderInfo in folderInfoCol)             {                   Console.WriteLine(folderInfo.DisplayName);                   Console.WriteLine(folderInfo.ContentCount);                   var messageInfoCol = folderInfo.GetContents();                   foreach (var messageInfo in messageInfoCol)                   {                         var mapi = pst.ExtractMessage(messageInfo.EntryId);                         mapi.Save("C:\\temp\\Extracted\\" + ++i + ".msg");                   }             }

    Now I am using a recursive method to extract all the messages from all sub-folders and I am getting an exception of type System.NotSupportedException while extracting some of the messages. 

    I have to provide the sample PST to the development team for their analysis. When I try to re-download it using the link received via an email, I am getting a message that file is not available. Please extend the validity of the sample file on youSendIt server and re-share the link. 

    Thanks in advance

    Babar Raza
    Support Developer,
    Aspose Sialkot Team
    http://www.aspose.com/
    Aspose - Your File Format Experts
     
  •  02-08-2012, 1:57 AM 359974 in reply to 359359

    Re: Aspose.Email.Outlook.Pst.PersonalStorage.ExtractMessage exception .NET

    Attachment: Present (inaccessible)
    Hi Rob,

    I am finally able to observe the System.NullReferenceException. Two tickets have been logged into our tracking system. The details are as below,
    • NETWORKNET-33155: System.NullReferenceException
    • NETWORKNET-33154: System.NotSupportedException

    Just for future reference, if you have to share a large sample file via any file hosting service, please set the file validity to at least one week.

    Thanks and Regards

    Babar Raza
    Support Developer,
    Aspose Sialkot Team
    http://www.aspose.com/
    Aspose - Your File Format Experts
     
  •  02-08-2012, 1:25 PM 360180 in reply to 359974

    Re: Aspose.Email.Outlook.Pst.PersonalStorage.ExtractMessage exception

    Hi Babar Raza,

    Sorry for my delayed response on this. I have uploaded a file that throws exceptions in PersonalStorage.ExtractMessage(byte[] EntryId). Here is an example:

    System.InvalidOperationException: Could not read message ---> System.ArgumentException: Found a high surrogate char without a following low surrogate at index: 0. The input may not be in this encoding, or may not contain valid Unicode (UTF-16) characters.
    Parameter name: s
       at System.Char.ConvertToUtf32(String s, Int32 index)
       at ?..?(String )
       at ?..?(String )
       at ?..??(MapiPropertyCollection )
       at ?..??(? )
       at ?..ReadMessage(UInt32 )
       --- End of inner exception stack trace ---
       at ?..ReadMessage(UInt32 )

    I set the expiration for this download to 2 weeks. Thank you very much!

    Best regards,
    Rob

     
  •  02-08-2012, 2:01 PM 360193 in reply to 360180

    Re: Aspose.Email.Outlook.Pst.PersonalStorage.ExtractMessage exception

    Babar Raza,

    Thank you for uploading the OldArchiveAnsi project. I will take a look at it.

    Best regards,

    Rob

     
  •  02-09-2012, 3:18 AM 360314 in reply to 360193

    Re: Aspose.Email.Outlook.Pst.PersonalStorage.ExtractMessage exception .NET

    Hi Rob,

    Thank you for providing us another sample. 

    I am currently downloading it and I will let you know after executing my test cases. Will you be kind enough to share a sample application as well? I want to compare the code and execution flow. 

    Regards,

    Babar Raza
    Support Developer,
    Aspose Sialkot Team
    http://www.aspose.com/
    Aspose - Your File Format Experts
     
  •  02-09-2012, 2:45 PM 360511 in reply to 360314

    Re: Aspose.Email.Outlook.Pst.PersonalStorage.ExtractMessage exception

    I will work on getting you a sample application.

    The problem is: when PersonalStorage.ExtractMessage() encounters this high surrogate InvalidOperationException, something gets set inside the PersonalStorage class that causes every subsequent attempt to call ExtractMessage() to throw NullReference exceptions (Object reference not set to an instance of an object).

    So, subsequent MSGs that would otherwise get extracted fail, because of the earlier "Could not read message" error with InvalidOperationException and ArgumentException.

    Some of the files I've sent you illustrate this problem, like 'RV.pst' and the OST I sent yesterday. I have others.

    This particular problem is critical to the success of my project! Please let me know what you find.

    Thank you,

    Rob W

     
  •  02-14-2012, 3:03 AM 361362 in reply to 360511

    Re: Aspose.Email.Outlook.Pst.PersonalStorage.ExtractMessage exception .NET

    Hi Rob,

    Sorry for the delayed response on your latest sample.

    I am able to reproduce the said exception (System.InvalidOperationException) on my end. I used the same source code as shared earlier (in oldArchiveAnsi.zip) to recursively extract all messages from your provided OST. This problem has been logged in our bug tracking system for investigative purposes under ticket Id NETWORKNET-33166. 

    robwingate:
    This particular problem is critical to the success of my project! Please let me know what you find.

    I have attached your comments to the related ticket. I believe we will soon sort out this problem and inform you as soon as the issue gets resolved.

    Regards,


    Babar Raza
    Support Developer,
    Aspose Sialkot Team
    http://www.aspose.com/
    Aspose - Your File Format Experts
     
  •  02-14-2012, 8:27 AM 361491 in reply to 361362

    Re: Aspose.Email.Outlook.Pst.PersonalStorage.ExtractMessage exception

    Hi Babar,

    Thank you very much! I am very anxious to get past this issue.

    Best regards,

    Rob W

     
Page 1 of 2 (24 items)   1 2 Next >
View as RSS news feed in XML