Your server administrator has limited the number of items you can

J

Johan Verrept

Hello,

When traversing the shared calendar folder of another user, I am confronted
with the following Exception:

"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"

If I run the same code on my own calendar folder, I have not seen the
exception.

I am using Microsoft.Office.Interop.Outlook and Outlook 2007

// rough code...
foreach (AppointmentItem app in f.Items)
{
string id = app.UserProperties.Find("custom properpty name", true);
if (id != null) continue;

// never reached
}

I added a counter and it breaks after a varying number of messages, at most
66... The code does not create any messages, it only access the properties.
The mail folder has over a 1000 appointments in it.

Please, any help or suggestion is appreciated, thank you!

regards,

Johan
 
J

Johan Verrept

The problem seems to be with the max 256 RPC connections. If I run the GC
every 100 loops or so, the exception goes away. I might just catch the
exception and run the GC then.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top