![]() |
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
|
|||
|
|||
![]() I have an app that uses redemption and mapi to access the emails in an exchange mailbox. Redemption: Dim FolderItemsREDInbox As Redemption.RDOFolder FolderItemsREDInbox = session.GetDefaultFolder(6) (loads OK) mapi: Dim Folder As Outlook.MAPIFolder = oNS.GetDefaultFolder(6) Dim FolderItems As Outlook.Items = Folder.Items (also loads OK) (note that both are pointing to the Inbox) however, then i do the following: Dim HowManyItemsREDInbox As Integer HowManyItemsREDInbox = FolderItemsRED.Items.Count i get: HowManyItemsREDInbox = 25 and Dim HowManyItemsMAPIInbox As Integer HowManyItemsMAPIInbox = FolderItems.Count i get: HowManyItemsMAPIInbox = 50 how can this be? this is really mesing up some things for me over here! ![]() ALSO: when I load 500+ items redemptions becomes unstable by errors occurring randomly. ( as per recommendations on the official redemption site i have used: I have used a global var for the redemption instance + i have MS Outlook 2003 SP3 (11.6568.6568 version) ) can anyone out there shed some light on these two issues? Regards -- mirzoni ------------------------------------------------------------------------ mirzoni's Profile: http://www.officehelp.in/member.php?userid=5392 View this thread: http://www.officehelp.in/showthread.php?t=1277781 Posted from - http://www.officehelp.in |
#2
|
|||
|
|||
![]()
What is the real item count as reported by Outlook itself? Are you sure both
Redemption and Outlook are using the same MAPI profile? Since you are using .Net, most likely you are running out of the 255 RPC channels limit imposed by Exchange. .Net does not immediately release COM objects, you need to do that explicitly using Marshal.ReleaseCOMObject() in the loop. Avoid using multiple "." notation to make sure there are no implicit variables created by the compiler. Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "mirzoni" wrote in message ... I have an app that uses redemption and mapi to access the emails in an exchange mailbox. Redemption: Dim FolderItemsREDInbox As Redemption.RDOFolder FolderItemsREDInbox = session.GetDefaultFolder(6) (loads OK) mapi: Dim Folder As Outlook.MAPIFolder = oNS.GetDefaultFolder(6) Dim FolderItems As Outlook.Items = Folder.Items (also loads OK) (note that both are pointing to the Inbox) however, then i do the following: Dim HowManyItemsREDInbox As Integer HowManyItemsREDInbox = FolderItemsRED.Items.Count i get: HowManyItemsREDInbox = 25 and Dim HowManyItemsMAPIInbox As Integer HowManyItemsMAPIInbox = FolderItems.Count i get: HowManyItemsMAPIInbox = 50 how can this be? this is really mesing up some things for me over here! ![]() ALSO: when I load 500+ items redemptions becomes unstable by errors occurring randomly. ( as per recommendations on the official redemption site i have used: I have used a global var for the redemption instance + i have MS Outlook 2003 SP3 (11.6568.6568 version) ) can anyone out there shed some light on these two issues? Regards -- mirzoni ------------------------------------------------------------------------ mirzoni's Profile: http://www.officehelp.in/member.php?userid=5392 View this thread: http://www.officehelp.in/showthread.php?t=1277781 Posted from - http://www.officehelp.in |
#3
|
|||
|
|||
![]() Hi Dmitry, Thanks for you reply! The actual numbers a MAPI:6310 REDEMPTION:6305 -- mirzoni ------------------------------------------------------------------------ mirzoni's Profile: http://www.officehelp.in/member.php?userid=5392 View this thread: http://www.officehelp.in/showthread.php?t=1277781 Posted from - http://www.officehelp.in |
#4
|
|||
|
|||
![]()
1.What does Outlook show for that folder?
2. Are you sure you end up using the same MAPI profile? 3. Are both cases online or cached? 4. What happens if instead of calling RDOSession.Logon you set RDOSession.MAPIOBJECT ot Session.RDOSession from CDO? Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "mirzoni" wrote in message ... Hi Dmitry, Thanks for you reply! The actual numbers a MAPI:6310 REDEMPTION:6305 -- mirzoni ------------------------------------------------------------------------ mirzoni's Profile: http://www.officehelp.in/member.php?userid=5392 View this thread: http://www.officehelp.in/showthread.php?t=1277781 Posted from - http://www.officehelp.in |
#5
|
|||
|
|||
![]() Hi Dmitri, Thanks for you reply! I am not sure what do you mean by: 4. What happens if instead of calling RDOSession.Logon you set RDOSession.MAPIOBJECT ot Session.RDOSession from CDO? here is what I run to get to the information: '...logging on exchange... 'redemption Dim session As New Redemption.RDOSession session = CreateObject("Redemption.RDOSession") session.LogonExchangeMailbox(MailBoxName, Server) Dim FolderItemsRED As Redemption.RDOFolder FolderItemsRED = session.GetDefaultFolder(6) dim redcount as integer redcount = FolderItemsRED.Items.Count 'this gives me 11 'mapi Dim outlook_Profile As String = MailBoxName Dim oSession As New MAPI.Session oApp = New Outlook.Application oNS = oApp.GetNamespace("mapi") oNS.Logon(outlook_Profile, , False, True) Dim Folder As Outlook.MAPIFolder = oNS.GetDefaultFolder(6) Dim FolderItemsW As Outlook.Items = Folder.Items dim mapicount as integer mapicount = FolderItemsW.count 'this gives me 4039 Please let me know what is the other way to log on. Thanks again! -- mirzoni ------------------------------------------------------------------------ mirzoni's Profile: http://www.officehelp.in/member.php?userid=5392 View this thread: http://www.officehelp.in/showthread.php?t=1277781 Posted from - http://www.officehelp.in |
#6
|
|||
|
|||
![]()
How about questions 1 through 3?
When you call RDOSession.LogonExchangeMailbox, Redemption creates a temporary profile with an online (as opposed to cached) store. This is similar to using Session.Login with ProfileInfo parameter used in CDO 1.21. 4a. What happens if you call RDOSession.Logon(outlook_Profile)? 4b. What happens if you run your OOM code first, then instead of calling session.LogonExchangeMailbox call session.MAPIOBJECT = oNS.MAPIOBJECT? This way both Outlook and Redemption will be using the same physical MAPI session. I bet the existing profile (outlook_Profile) uses cached mode, while LogonExchangeMailbox() will give you aan online store, which can be different. Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "mirzoni" wrote in message ... Hi Dmitri, Thanks for you reply! I am not sure what do you mean by: 4. What happens if instead of calling RDOSession.Logon you set RDOSession.MAPIOBJECT ot Session.RDOSession from CDO? here is what I run to get to the information: '...logging on exchange... 'redemption Dim session As New Redemption.RDOSession session = CreateObject("Redemption.RDOSession") session.LogonExchangeMailbox(MailBoxName, Server) Dim FolderItemsRED As Redemption.RDOFolder FolderItemsRED = session.GetDefaultFolder(6) dim redcount as integer redcount = FolderItemsRED.Items.Count 'this gives me 11 'mapi Dim outlook_Profile As String = MailBoxName Dim oSession As New MAPI.Session oApp = New Outlook.Application oNS = oApp.GetNamespace("mapi") oNS.Logon(outlook_Profile, , False, True) Dim Folder As Outlook.MAPIFolder = oNS.GetDefaultFolder(6) Dim FolderItemsW As Outlook.Items = Folder.Items dim mapicount as integer mapicount = FolderItemsW.count 'this gives me 4039 Please let me know what is the other way to log on. Thanks again! -- mirzoni ------------------------------------------------------------------------ mirzoni's Profile: http://www.officehelp.in/member.php?userid=5392 View this thread: http://www.officehelp.in/showthread.php?t=1277781 Posted from - http://www.officehelp.in |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlook Redemption problem: Retrieving the COM class factory for component with CLSID {...} failed due to the following error: 80040154. | [email protected] | Outlook - Using Forms | 1 | September 18th 06 10:44 AM |
Outlook instability question for managed controls on OL homepages | [email protected] | Add-ins for Outlook | 1 | August 8th 06 03:14 PM |
Useing Redemption Object to Read an Inbox | Damian | Add-ins for Outlook | 9 | June 8th 06 07:57 AM |
Redemption - problem with Save | Martin | Outlook and VBA | 4 | January 31st 06 10:56 AM |
Problem with Sent Items/Redemption | קובץ | Outlook and VBA | 10 | January 12th 06 04:26 PM |