![]() |
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
|
|||
|
|||
![]()
We have written a server application that periodically accesses
certain folders in Exchange user's mailboxes (for which the server has permission) and moves the messages to the Deleted Items folder. The application is a service running on Windows XP or Server 2003. It is written in C# and uses the RDO methods in Redemption.dll to operate on the folders and items. This process usually goes smoothly, but every once in a while it looks like the application does not move some of the messages. Upon further inspection, the messages have been moved out of the folder, but the OST file does not reflect the change. If we look at the Synchronization tab in the Properties dialog for the folder (Outlook 2007, in this case), the "Server folder contains:" value is different than the "Offline folder contains:" value. If we use the Scan OST tool from Microsoft, it repairs the problem. If we use the "Clear Offline Items" button on the General tab of the folder Properties, that also seems to fix the problem. My first question is whether or not I can prevent this situation from occurring, or is this some form of OST corruption as a result of another process moving messages? We also have an Outlook add-in on the client, so if we could figure out a way to repair the problem programmatically, that would be a reasonable workaround. I tried the ExchangeSynchronizer / RDOFolderSynchronizer, but that did not help. I also tried adding these folders to the Send/Receive group, and that did not work either. Is there any way to get the Offline and Exchange folder in sync programmatically? Any help would be appreciated. Michael |
Ads |
#2
|
|||
|
|||
![]()
Is your service running against an existing profile (RDOSession.Logon) that
uses cached mode (OST) or against an online store returned by a dynamic profile (RDOSession.LogonExchangeMailbox)? What is the Outlook version? If you need a service grade version of MAPI, use the standlaone version. If you absolutely need to have Outlook installed, use Outlook 2002 SP3. Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Michael" wrote in message ... We have written a server application that periodically accesses certain folders in Exchange user's mailboxes (for which the server has permission) and moves the messages to the Deleted Items folder. The application is a service running on Windows XP or Server 2003. It is written in C# and uses the RDO methods in Redemption.dll to operate on the folders and items. This process usually goes smoothly, but every once in a while it looks like the application does not move some of the messages. Upon further inspection, the messages have been moved out of the folder, but the OST file does not reflect the change. If we look at the Synchronization tab in the Properties dialog for the folder (Outlook 2007, in this case), the "Server folder contains:" value is different than the "Offline folder contains:" value. If we use the Scan OST tool from Microsoft, it repairs the problem. If we use the "Clear Offline Items" button on the General tab of the folder Properties, that also seems to fix the problem. My first question is whether or not I can prevent this situation from occurring, or is this some form of OST corruption as a result of another process moving messages? We also have an Outlook add-in on the client, so if we could figure out a way to repair the problem programmatically, that would be a reasonable workaround. I tried the ExchangeSynchronizer / RDOFolderSynchronizer, but that did not help. I also tried adding these folders to the Send/Receive group, and that did not work either. Is there any way to get the Offline and Exchange folder in sync programmatically? Any help would be appreciated. Michael |
#3
|
|||
|
|||
![]()
The Outlook version we have been testing on the server is 2007
(12.0.6212.1000), though we also use Outlook 2003 (with service packs). We are logging into the default profile for the account that the service is running (RDOSession.Logon), and that profile is set up in the default Cached Exchange Mode. It is always an Exchange account. The Exchange version is 6.5.7651.61. The user's mailbox folders have the appropriate permissions so that the server can access necessary folders. I use the RDOSession.GetSharedDefaultFolder() method to get the Inbox and then find the other folders relative to that one. After the server processes all the users, calls RDOSession.Logoff(), releases the last COM objects (it does that all along too), collects garbage a few times, and sleeps for a while before it logs in again to do work. Michael On Feb 5, 6:58*pm, "Dmitry Streblechenko" wrote: Is your service running against an existing profile (RDOSession.Logon) that uses cached mode (OST) or against an online store returned by a dynamic profile (RDOSession.LogonExchangeMailbox)? What is the Outlook version? If you need a service grade version of MAPI, use the standlaone version. If you absolutely need to have Outlook installed, use Outlook 2002 SP3. Dmitry Streblechenko (MVP)http://www.dimastr.com/ OutlookSpy *- Outlook, CDO and MAPI Developer Tool "Michael" wrote in message ... We have written a server application that periodically accesses certain folders in Exchange user's mailboxes (for which the server has permission) and moves the messages to the Deleted Items folder. *The application is a service running on Windows XP or Server 2003. *It is written in C# and uses the RDO methods in Redemption.dll to operate on the folders and items. This process usually goes smoothly, but every once in a while it looks like the application does not move some of the messages. *Upon further inspection, the messages have been moved out of the folder, but the OST file does not reflect the change. *If we look at the Synchronization tab in the Properties dialog for the folder (Outlook 2007, in this case), the "Server folder contains:" value is different than the "Offline folder contains:" value. If we use the Scan OST tool from Microsoft, it repairs the problem. If we use the "Clear Offline Items" button on the General tab of the folder Properties, that also seems to fix the problem. My first question is whether or not I can prevent this situation from occurring, or is this some form of OST corruption as a result of another process moving messages? We also have an Outlook add-in on the client, so if we could figure out a way to repair the problem programmatically, that would be a reasonable workaround. *I tried the ExchangeSynchronizer / RDOFolderSynchronizer, but that did not help. *I also tried adding these folders to the Send/Receive group, and that did not work either. *Is there any way to get the Offline and Exchange folder in sync programmatically? *Any help would be appreciated. Michael- Hide quoted text - - Show quoted text - |
#4
|
|||
|
|||
![]()
Firstly, try to use LogonExchangeMailbox instead of Logon to make sure you
are always in the online mode. Secondly, try to keep the same RDOSession object alive at all times rather than recreating it. Thirdly, try to use the standalone version of MAPI. Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Michael" wrote in message ... The Outlook version we have been testing on the server is 2007 (12.0.6212.1000), though we also use Outlook 2003 (with service packs). We are logging into the default profile for the account that the service is running (RDOSession.Logon), and that profile is set up in the default Cached Exchange Mode. It is always an Exchange account. The Exchange version is 6.5.7651.61. The user's mailbox folders have the appropriate permissions so that the server can access necessary folders. I use the RDOSession.GetSharedDefaultFolder() method to get the Inbox and then find the other folders relative to that one. After the server processes all the users, calls RDOSession.Logoff(), releases the last COM objects (it does that all along too), collects garbage a few times, and sleeps for a while before it logs in again to do work. Michael On Feb 5, 6:58 pm, "Dmitry Streblechenko" wrote: Is your service running against an existing profile (RDOSession.Logon) that uses cached mode (OST) or against an online store returned by a dynamic profile (RDOSession.LogonExchangeMailbox)? What is the Outlook version? If you need a service grade version of MAPI, use the standlaone version. If you absolutely need to have Outlook installed, use Outlook 2002 SP3. Dmitry Streblechenko (MVP)http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Michael" wrote in message ... We have written a server application that periodically accesses certain folders in Exchange user's mailboxes (for which the server has permission) and moves the messages to the Deleted Items folder. The application is a service running on Windows XP or Server 2003. It is written in C# and uses the RDO methods in Redemption.dll to operate on the folders and items. This process usually goes smoothly, but every once in a while it looks like the application does not move some of the messages. Upon further inspection, the messages have been moved out of the folder, but the OST file does not reflect the change. If we look at the Synchronization tab in the Properties dialog for the folder (Outlook 2007, in this case), the "Server folder contains:" value is different than the "Offline folder contains:" value. If we use the Scan OST tool from Microsoft, it repairs the problem. If we use the "Clear Offline Items" button on the General tab of the folder Properties, that also seems to fix the problem. My first question is whether or not I can prevent this situation from occurring, or is this some form of OST corruption as a result of another process moving messages? We also have an Outlook add-in on the client, so if we could figure out a way to repair the problem programmatically, that would be a reasonable workaround. I tried the ExchangeSynchronizer / RDOFolderSynchronizer, but that did not help. I also tried adding these folders to the Send/Receive group, and that did not work either. Is there any way to get the Offline and Exchange folder in sync programmatically? Any help would be appreciated. Michael- Hide quoted text - - Show quoted text - |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlook 2007 Cached Mode and Exchange/OWA not in sync | Jascha | Outlook - General Queries | 0 | December 9th 07 05:55 PM |
Users local emails not in sync with Exchange 2007.. so i deleted their ost file (resetting cached mode).. Typical ? | markm75 | Outlook - General Queries | 0 | October 12th 07 01:20 AM |
How to Sync Public Folder Contacts with Personal Folder Contact Li | Larz | Outlook - Using Contacts | 0 | May 14th 07 07:22 PM |
Cached Exchange Mode out of sync | Joshua A. Booker | Outlook - General Queries | 2 | September 20th 06 11:50 AM |
activate contact folder from public folder with "show this folder as email address book using a prf file | Frankie K. | Outlook - Using Contacts | 7 | July 25th 06 05:37 PM |