I don't see VSTO preventing any saves of items. It's mostly a shim loader
and wrapper for unhandled exceptions and for the IDTExtensibility
interfaces.
I think the problem is your algorithm. If you extend the number of
occurrences the new item goes at the end of the series. You are trying to
reschedule the new appointment to some other date, triggering the Outlook
error: "cannot reschedule an occurrence if it skips over a later occurrence
of the same appointment". That's the problem.
What you'd have to do is to change the occurrence just after the new desired
date to that date, change the following appointment to the date of the
occurrence you just changed, repeat for every occurence in the series to
avoid that error. It would be hell to manage and code, if it would even work
at all.
And if it did work you'd end up with the entire series being exceptions.
As I said, this has nothing to do with VSTO or Outlook version. It's a
limitation of the implementation of RecurrencePattern and its binary blob.

Signature
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
> Hi Ken,
>
[quoted text clipped - 17 lines]
> Thanks a lot for your help,
> Mike
mikeo - 09 May 2008 22:35 GMT
Hi Ken,
Thanks again for your insightful feedback.
I'm not convinced that this is the specific issue. Since the addition of
exception items is fundamental to the requirements for my add-in, I'm not
ready to throw in the towel yet ...
I receive the protected memory exception even if the item I'm trying to
create/save remains as the last item in the pattern. For example, the last
recurrence of a weekly recurring meeting is on Friday, May 9th. When my code
increments recurPattern.Occurrences by 1, Outlook creates a new occurence on
Friday, May 16th. When I programmatically try to update the Start date of
this new item to Thu May 15, I get the error. Note that Outlook lets me do
this manually (i.e. increment Occurrences by 1, save, open the new last
recurrence, update date, save.
Any other theories as to what is going wrong here? Debugging suggestions?
Thanks,
mikeo
> I don't see VSTO preventing any saves of items. It's mostly a shim loader
> and wrapper for unhandled exceptions and for the IDTExtensibility
[quoted text clipped - 38 lines]
> > Thanks a lot for your help,
> > Mike
Ken Slovak - [MVP - Outlook] - 12 May 2008 14:04 GMT
No other suggestions, my guess is that Outlook doesn't like your
incrementing Occurrences in code. But that's just a guess.

Signature
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
> Hi Ken,
>
[quoted text clipped - 21 lines]
> Thanks,
> mikeo