A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Your server administrator has limited the number of items you can



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 22nd 08, 04:27 PM posted to microsoft.public.outlook.program_addins,microsoft.public.outlook.program_vba
Johan Verrept
external usenet poster
 
Posts: 6
Default 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

Ads
  #2  
Old February 22nd 08, 05:18 PM posted to microsoft.public.outlook.program_addins,microsoft.public.outlook.program_vba
Johan Verrept
external usenet poster
 
Posts: 6
Default 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

  #3  
Old March 13th 08, 08:40 AM posted to microsoft.public.outlook.program_addins,microsoft.public.outlook.program_vba
Jake Peters[_2_]
external usenet poster
 
Posts: 3
Default 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

  #4  
Old March 13th 08, 04:57 PM posted to microsoft.public.outlook.program_addins,microsoft.public.outlook.program_vba
Johan Verrept
external usenet poster
 
Posts: 6
Default 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


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 11:49 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-2025 Outlook Banter.
The comments are property of their posters.