.NET app fails to create appointment after installing Office 2003

R

ralonso

Hi,
I have a custom application that creates appointments in outlook.
It is quite simple and it uses MAPI.

Since I installed Office 2003 Service Pack 2 I noticed that I can still use
the application to create appointments in other users' calendars but not
anymore in my own!

If I go to another desktop with office 2003 SP1, everything is fine (we use
roaming profiles).

The code is quite simple:
Dim oApp As Outlook.Application
Dim golNameSpace As Outlook.NameSpace
Dim oAppt As Outlook.AppointmentItem
Dim myRecipient As Outlook.Recipient
Dim olCalendar As Outlook.MAPIFolder

oApp = New Outlook.Application
golNameSpace = oApp.GetNamespace("MAPI")
myRecipient = golNameSpace.CreateRecipient(employee) 'that's a string with
the login name
olCalendar = golNameSpace.GetSharedDefaultFolder(myRecipient,
olFolderCalendar)
oAppt = olCalendar.Items.Add

This last line generates the error
The error description is "Operation Aborted" and the code is 287

Any ideas?
Thanks
Ruben
 
Top