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 - General Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook and Exchange Server mailboxes problem



 
 
Thread Tools Display Modes
  #1  
Old May 22nd 09, 09:29 AM posted to microsoft.public.outlook
Yevgen
external usenet poster
 
Posts: 4
Default Outlook and Exchange Server mailboxes problem

I have a problem with reading Exchange mailboxes from Outlook. And for
now I can't fine solution to solve it.

I have like this part of code:

For iCnt = 1 To oNamespace.Folders.Count

Set folder = oNamespace.Folders.Item(iCnt)
EntryID = folder.EntryID
StoreID = folder.StoreID
Path = folder.FolderPath

' Processing other function with current mailbox.

Next

And the problem is that after 200-300 mailboxes, Outlook returns "The
information store could not be opened." error. I have near 1000
mailboxes in my Outlook. All these mailboxes are additional mailboxes
from Exchange Server profile. This error occurs both at Outlook 2003
and Outlook 2007 and with both Exchange server 2003 and Exchange
server 2007.

Also I have tried to do the same using Redemption library through
Redemption.Session and after that try to enumerate through Stores
property, but I have received the same result, first 200-300 mailboxes
are OK and next 700 are return me error.

Could anyone help me with this problem?

Thanks a lot!
Ads
  #2  
Old May 22nd 09, 08:00 PM posted to microsoft.public.outlook
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Outlook and Exchange Server mailboxes problem

Firstly, never use multiple dot notation - the line
oNamespace.Folders.Count
is equivalent to

set tempFolders = oNamespace.Folders
tempFolders .Count

where tempFolders is an implicit variable created by the compiler that you
cannot explicitly release.
Secondly, explicitly release all COM objects that you retrive in the loop by
setting them to Nothing:

set tempFolders = Nothing.

If you are using VB.Net, calling Mrashal.ReleaseCOMObject and GC.Collect
would be a good idea.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Yevgen" wrote in message
...
I have a problem with reading Exchange mailboxes from Outlook. And for
now I can't fine solution to solve it.

I have like this part of code:

For iCnt = 1 To oNamespace.Folders.Count

Set folder = oNamespace.Folders.Item(iCnt)
EntryID = folder.EntryID
StoreID = folder.StoreID
Path = folder.FolderPath

' Processing other function with current mailbox.

Next

And the problem is that after 200-300 mailboxes, Outlook returns "The
information store could not be opened." error. I have near 1000
mailboxes in my Outlook. All these mailboxes are additional mailboxes
from Exchange Server profile. This error occurs both at Outlook 2003
and Outlook 2007 and with both Exchange server 2003 and Exchange
server 2007.

Also I have tried to do the same using Redemption library through
Redemption.Session and after that try to enumerate through Stores
property, but I have received the same result, first 200-300 mailboxes
are OK and next 700 are return me error.

Could anyone help me with this problem?

Thanks a lot!



 




Thread Tools
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
Multiple mailboxes per Outlook account for send as either mailbox user using Exchange mailboxes Old Rookie Outlook - General Queries 0 December 20th 08 06:36 PM
Exchange Server 2007 and exporting mailboxes Ben Anderson Outlook and VBA 1 April 3rd 08 07:34 PM
Problem Connecting to Exchange Server from Outlook DLN Outlook - General Queries 7 October 20th 07 03:58 PM
Outlook - MPAI connect to Exchange 2003 Server problem Tiger Wong Outlook - General Queries 3 May 25th 07 04:50 AM
Outlook crash for some users after move mailboxes to new server on Exchange 2003 SP2 Diamondas Outlook - General Queries 9 March 21st 06 09:59 PM


All times are GMT +1. The time now is 07:46 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2010 Outlook Banter.
The comments are property of their posters.