Hi,
I have Aspose .net version 20.2.0
I have a file that has a simple appointment that was exported from an actual calendar, I am trying to read it and populate it into a MailMessage item, and in some scenarios I am getting a error like the following.
I have other appointments with similar settings which doesn’t have the same issue
“Aspose.Email.AsposeException: ‘Start date 13/11/2014 02:00:00 not valid for this rule - Recur every 2 month(s) on the Wednesday on the 2nd set position(s) for a maximum of 10 occurrences.’”
Below is the sample Code that I am using and attached are the appointments that I am having some issues.Testing Data.zip (2.2 KB)
var rawAppointment = File.ReadAllBytes(@“appointment_error1.dat”);
using (var memoryStream = new MemoryStream(rawAppointment))
{
var appointment = Appointment.Load(memoryStream, new AppointmentLoadOptions() { IgnoreSmtpAddressCheck = true });
using (var mailMessage = new MailMessage())
{
mailMessage.AddAlternateView(appointment.RequestApointment());
using (var mapiMessage = MapiMessage.FromMailMessage(mailMessage))
{
}
}
}