Quantcast
Channel: Exchange Server Development forum
Viewing all articles
Browse latest Browse all 7132

Error while generating Recurrence meeting request with Exchange Web service

$
0
0

getting this error while gerenating recurring meeting request using Exhcnage Webservice 2007 "One occurrence of the recurring calendar item overlaps with another occurrence of the same calendar item."

I am using the following code,

int

                       

if (DateTime.Parse(sStartTime).Date != DateTime.Parse(sEndTime).Date)

                        {

                            mtdate = (

DateTime.Parse(sEndTime).Date - DateTime.Parse(sStartTime).Date).Days;

                        }                       

                      

ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);

                        service.Credentials =

new NetworkCredential(" ", " ", " ");

                        service.AutodiscoverUrl(

");

                       

EmailMessage emmessage = new EmailMessage(service);

                        emmessage.Subject =

"-------";

                        emmessage.Body = sbDetailLog.ToString();

                       

                        emmessage.ToRecipients.Add(sRequestorEmail);

 

                       

                       emmessage.SendAndSaveCopy();

Appointment appointment = new Appointment(service);

                        appointment.Subject =

" ---- ";

                        appointment.Body = sbDetailLog.ToString();

                        appointment.Start =

DateTime.Parse(sStartTime);

                        appointment.End =

DateTime.Parse(sEndTime);

                        appointment.RequiredAttendees.Add(sRequestorEmail);

                       

if (mtdate != 0)

                        {

                            appointment.Recurrence =

new Recurrence.DailyPattern(appointment.Start.Date, 1);

                            appointment.Recurrence.StartDate = appointment.Start.Date;

                            appointment.Recurrence.EndDate = appointment.End.Date;

                           

                        }

                        appointment.Location = sListName +

" conference room";

                        appointment.ReminderMinutesBeforeStart = 15;

                        appointment.Save(

SendInvitationsMode.SendToAllAndSaveCopy);

Please help me in solving the issue

mtdate = 0;

Viewing all articles
Browse latest Browse all 7132

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>