none
[E2010][EWSMA][C#]: Getting "One or more recipients are invalid" when updating appointment item RRS feed

  • Question

  • Exchange Version 14.1 (Build 218.15)

    I retrieve a list of appointments using EWS Manged API 1.0 and 1.1 from Ex2010 for a given user. When I then try to update the item using appointmentItem.Update(ConflictResolutionMode.AlwaysOverwrite) I get the "one or more recipients are invalid" error even though the update succeeds.

    Running the same code against Ex2007 SP1 works fine.

    Can anyone shed some light on this?

    Thanks,

    Casper

    Friday, March 18, 2011 9:56 AM

Answers

  • Problem solved!

    I was updating an object of type Item rather than Appointment. Casting to Appointment and using the overload

    appointmentItem.Update(ConflictResolutionMode.AlwaysOverwrite, SendInvitationsOrCancellationsMode.SendToNone);

    caused the problem to go away.

     

    Casper

    • Marked as answer by stromCruising Tuesday, March 22, 2011 7:47 AM
    Tuesday, March 22, 2011 7:46 AM