Error when setting timezone to appointment

Following is a snippet of the code to create an appointment

var appointment = new Appointment(@event.Location.DisplayName,
Convert.ToDateTime(@event.Start.DateTime), Convert.ToDateTime(@event.End.DateTime),
new MailAddress(@event.Organizer.EmailAddress.Address,
@event.Organizer.EmailAddress.Name), attendees)
{
StartTimeZone = @event.Start.TimeZone,
EndTimeZone = @event.End.TimeZone
};

Lately, this has started giving the following exception

System.TypeInitializationException: The type initializer for ' ’ threw an exception.
—> System.TypeInitializationException: The type initializer for ' ’ threw an exception.
—> System.OutOfMemoryException: Exception of type ‘System.OutOfMemoryException’ was thrown.
at System.String.CreateStringFromEncoding(Byte* bytes, Int32 byteLength, Encoding encoding)
at System.Text.UTF8Encoding.GetString(Byte[] bytes, Int32 index, Int32 count)
at System.Text.Encoding.GetString(Byte[] bytes)
at System.Text.UTF8Encoding.UTF8EncodingSealed.GetString(Byte[] bytes)
at .(Stream , String )
at .(Stream )
at . ()
at …cctor()
— End of inner exception stack trace —
at . (String )
at Aspose.Email.Calendar.Appointment. (String )
at Aspose.Email.Calendar.Appointment.set_StartTimeZone(String value)
— End of inner exception stack trace —
at .()
at …ctor(Boolean )
at …ctor(String )
at …ctor(DateTime )
at . (Appointment )
at . ()
at . ()
at Aspose.Email.Calendar.CalendarWriter.Write(Appointment appointment)
at Aspose.Email.Calendar.Appointment. (IcsSaveOptions )
at Aspose.Email.Calendar.Appointment.RequestApointment(Int32 seqId)
at Aspose.Email.Calendar.Appointment.RequestApointment()

Any idea what is wrong here? This used to work before and suddenly started gving this error.

Hi @saitx
Please try the latest version of Aspose.Email.
If the error is still present, could you please provide a fully working code or a simple console application to reproduce on our side?