![]() |
Your server administrator has limited the number of items you can
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 |
Your server administrator has limited the number of items you can
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. "Johan Verrept" wrote: 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 |
Your server administrator has limited the number of items you
You can also use Marshal.ReleaseComObject(app) when you are done with the item
"Johan Verrept" wrote: 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. "Johan Verrept" wrote: 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 |
Your server administrator has limited the number of items you
Does that work correctly with the foreach loop?
Johan "Jake Peters" wrote: You can also use Marshal.ReleaseComObject(app) when you are done with the item |
All times are GMT +1. The time now is 05:18 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com