We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

OutOfMemoryException when saving Appointment

I’m using Aspose Email 21.8.1 under .Net 6.
When I’m creating a simple Appointment, I always getting a OutOfMemoryException:
Also when I do create an Appointment and save it to disk, I have the same Issue.

using MemoryStream memoryStream = new MemoryStream();

        var recipients = new Aspose.Email.MailAddressCollection();
        recipients.Add(new Aspose.Email.MailAddress("someotherperson@somedomain.com"));

        var appointment = new Appointment("location",
            new DateTime(2021, 2, 8, 13, 0, 0),
            new DateTime(2021, 2, 8, 14, 0, 0),
            new Aspose.Email.MailAddress("someperson@somedomain.com"),

        // Save the appointment to disk in ICS format
        appointment.Save(memoryStream, AppointmentSaveFormat.Ics);


We have tested the scenario using the latest version of Aspose.Email for .NET 21.11 and have not found the shared issue. So, please use Aspose.Email for .NET 21.11.