Hi,
I am developping an application in C# that creates outlook contacts from
a database. For the outlook part of the application, I use the outlook
COM object (Version 11 from Office 2003). If a contact is already
present in the outlook contact
database, it should be updated. Therefore I store the outlook EntryID
when adding a contact in outlook in the corresponding database record.
When adding a contact to outlook, I first check if I can get the contact
from outlook by it's EntryID (to update it instead of adding) using
Namespace.GetItemFromID. This is where the problem lies.
On the machine that I develop the software, everything works fine.
Outlook isn't used for anything but testing the application so no email
account is configured.
On another machine Namespace.GetItemFromID always throws a COMException
with the message "Clientoperation failed", no mather if the contact
exists or not. Adding a new contact with Application.CreateItem works.
The major difference that I can see between the two machines is that the
latter is configured to use exchange for sharing folders includig the
contact folder I want to add the contacts in. I have tried playing with
the permissions of the default and anonymous user, as well as the user I
log in with but it doesn't change a thing.
All help would be very welcome.