Posts Tagged ‘calendar’

Outlook interop exception when updating appointments

An odd issue I encountered doing Outlook interop with the Outlook Primary Interop Assembly; an exception with the message “You don’t have the permission to move this item” is raised when attempting to update an appointment. Thanks to this post I discovered the issue is caused by attempting to set the start and end times of an appointment with a recurrence pattern.

You cannot set the Outlook._AppointmentItem.Start and Outlook._AppointmentItem.End properties. You only set the Outlook.RecurrencePattern.StartTime and Outlook.RecurrencePattern.EndTime properties to indicate the start and end times of the event.