![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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 |
Ads |
#2
|
|||
|
|||
![]()
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 |
#3
|
|||
|
|||
![]()
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 |
#4
|
|||
|
|||
![]()
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Administrator sees even non-shared items | Radtherapy | Outlook - Calandaring | 0 | December 12th 07 06:13 PM |
When exporting Outlook 2007 Contacts inly a limited number go. | mcfarmer | Outlook - Using Contacts | 2 | October 26th 07 10:01 PM |
You server administrator has limited ... | Brian Ross | Outlook - General Queries | 1 | April 10th 07 03:07 PM |
maximum number of server connections on IMAP server | om | Outlook - General Queries | 3 | March 5th 07 11:49 PM |
Outlook 2003 doesn't show number of selected items | RD | Outlook - Installation | 1 | March 2nd 06 10:47 PM |