When i try to delete messages from PST which is ANSI format (Outlook 97-2002), it fails to delete and throws exception “The ANSI file version editing is not implemented.”
I was using Aspose.Email for .Net ver 17.7.0.0, but also tried latest version 19.2 and see same error when using FolderInfo.DeleteChildItems() method.
Can Aspose handle deleting messages from ANSI format PST file?
I have observed the issue shared by you and request you to please share the source PST with us around with used sample code. I will be able to verify the issue further on my end on provision of requested information.
I have worked with the sample code shared by you using Aspose.Email for .NET 19.3. There have been no exception on my end while working with sample code. Can you please try using suggested version.
I have tested using Aspose.Email for .NET 19.3 and there is no issue while using .NET 4.0 assembly as well. For your kind reference, can you please check following image. Can you please verify the same in a new test application on your end.
I looked at the image you posted. I noticed your code was setting a license in Main(). I had forgotten to do that in my test application, so i tried it but license i have doesn’t allow me to use new version 19.3.
Failed to set license. Details: The subscription included in this license allows free upgrades until 03 Sep 2018, but this version of the product was released on 28 Mar 2019. Please renew the subscription or use a previous version of the product.
When i use my current version of dll (17.7.0.0.), i still get error "The ANSI file version editing is not implemented.” If i try new dll without setting license, i still get error “The ANSI file version editing is not implemented.” I have downloaded trial version of 19.2 and 19.3 to test, but no luck. Is there a license file for trial version i need from Aspose?
I even tried getting temporary license and use latest 19.3 version of dll. But i still get error about “The ANSI file version editing is not implemented.”.
I have tried accessing the PST using provided sample code in Windows 7 x64 with VS 2015 and Aspose.Email for .NET 19.3 (.NET 4.0 assembly). There is no issue incurring on my end and I have already share the snapshot with you. Can you please share the sample VS project along with environment details where you are able to reproduce the issue.
I’m testing this on my windows 7 Professional x64 SP1, VS 2015 Professional SP3. I’ve attached full solution for my test project i’m using. To test it, when you run, browse and select an ANSI formatted pst (one i had uploaded earlier or any other), and then click on “Reduce PST” button.
Thank you for sharing the details. I have been able to reproduce the issue with shared sample project. An issue with ID EMAILNET-39438 has been created in our issue tracking system to investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.