![]() |
| 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 | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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 | |
|
|
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 |