Your server administrator has limited the number of items you can

  • Thread starter Thread starter Johan Verrept
  • Start date Start date
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
 
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.
 
Back
Top