M
MichaelQuinlan
We have a very old application that uses custom templates and a shared folder
in Microsoft Outlook for managing some data. I am afraid I am not familiar at
all with this. What I am trying to do is to begin automating importing data
into the system so the users don't have to manually enter the data.
I have written a C# test application that does this
outLookApp = new Application();
NameSpace mapiNS = outLookApp.GetNamespace("MAPI");
Recipient recipient = mapiNS.CreateRecipient("* Subdivisions");
recipient.Resolve();
MAPIFolder folder = mapiNS.GetSharedDefaultFolder(recipient,
OlDefaultFolders.olFolderContacts);
The error occurs on the last line with the message "The operation failed."
The error code is -2009857777.
This leaves an Outlook process running. If I re-run the program with the old
Outlook process still running I get a different error, but I assume that is
because of the old Outlook process. I can re-create the error by using Task
Manager to end the Outlook process then re-running my test.
I would appreciate any help or advice.
Thanks,
in Microsoft Outlook for managing some data. I am afraid I am not familiar at
all with this. What I am trying to do is to begin automating importing data
into the system so the users don't have to manually enter the data.
I have written a C# test application that does this
outLookApp = new Application();
NameSpace mapiNS = outLookApp.GetNamespace("MAPI");
Recipient recipient = mapiNS.CreateRecipient("* Subdivisions");
recipient.Resolve();
MAPIFolder folder = mapiNS.GetSharedDefaultFolder(recipient,
OlDefaultFolders.olFolderContacts);
The error occurs on the last line with the message "The operation failed."
The error code is -2009857777.
This leaves an Outlook process running. If I re-run the program with the old
Outlook process still running I get a different error, but I assume that is
because of the old Outlook process. I can re-create the error by using Task
Manager to end the Outlook process then re-running my test.
I would appreciate any help or advice.
Thanks,