S
spottedmahn
I'm receiving the following COMException:
"Your server administrator has limited the number of items you can open
simultaneously. Try closing messages you have opened or removing attachments
and images from unsent messages you are composing."
when I try to iterate thru a list of Contact Items.
I've read a few posts on this same error message but I'm still unsure how of
how to properly fix it.
Here is my code:
List<ContactItem> Results = new List<ContactItem>();
Outlook.Items Contacts = this.WcmsContactsMapiFolder.Items;
Outlook.ContactItem Contact = (Outlook.ContactItem)
Contacts.GetFirst();
do
{
ContactItem NewCont =
ContactItem.FromOutlookContactItem(Contact, this.SifApp);
Results.Add(NewCont);
Marshal.ReleaseComObject(Contact);
Contact = (Outlook.ContactItem)Contacts.GetNext();
} while (Contact != null);
return Results;
I've read posts that say you must call " Marshal.ReleaseComObject()" but
that doesn't appear to be closing the connection.
I've read posts that say to increase the simultaneous connection limit but
that doesn't see right to me. I'm able to view the contact list in Outlook
so it is reading it somehow.
"Your server administrator has limited the number of items you can open
simultaneously. Try closing messages you have opened or removing attachments
and images from unsent messages you are composing."
when I try to iterate thru a list of Contact Items.
I've read a few posts on this same error message but I'm still unsure how of
how to properly fix it.
Here is my code:
List<ContactItem> Results = new List<ContactItem>();
Outlook.Items Contacts = this.WcmsContactsMapiFolder.Items;
Outlook.ContactItem Contact = (Outlook.ContactItem)
Contacts.GetFirst();
do
{
ContactItem NewCont =
ContactItem.FromOutlookContactItem(Contact, this.SifApp);
Results.Add(NewCont);
Marshal.ReleaseComObject(Contact);
Contact = (Outlook.ContactItem)Contacts.GetNext();
} while (Contact != null);
return Results;
I've read posts that say you must call " Marshal.ReleaseComObject()" but
that doesn't appear to be closing the connection.
I've read posts that say to increase the simultaneous connection limit but
that doesn't see right to me. I'm able to view the contact list in Outlook
so it is reading it somehow.