 |
|
|
|
| Author |
Message |
Michael
Joined: 06 Feb 2008 Posts: 3
|
Posted: Tue Feb 05, 2008 8:20 pm Post subject: Exchange folder and cached folder in OST file not in sync |
|
|
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
Archived from group: microsoft>public>outlook>program_addins |
|
| Back to top |
|
 |
Dmitry Streblechenko
Joined: 12 Aug 2007 Posts: 220
|
Posted: Tue Feb 05, 2008 9:58 pm Post subject: Re: Exchange folder and cached folder in OST file not in syn |
|
|
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 @q77g2000hsh.googlegroups.com...
> 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 |
|
| Back to top |
|
 |
Michael
Joined: 06 Feb 2008 Posts: 3
|
Posted: Wed Feb 06, 2008 1:36 am Post subject: Re: Exchange folder and cached folder in OST file not in syn |
|
|
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
>
> @q77g2000hsh.googlegroups.com...
>
>
>
> > 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 - |
|
| Back to top |
|
 |
Dmitry Streblechenko
Joined: 12 Aug 2007 Posts: 220
|
Posted: Wed Feb 06, 2008 5:13 am Post subject: Re: Exchange folder and cached folder in OST file not in syn |
|
|
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 @s12g2000prg.googlegroups.com...
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
>
> @q77g2000hsh.googlegroups.com...
>
>
>
> > 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 -
|
|
| Back to top |
|
 |
|
|
| Related Topics: | Message Class and Folder assignment Hello, I am trying to map a message class to a folder. Is there away to have messages get routed to a folder for a specific type of message class? In other words, I have a message class from a specific provider tha
Redemption and Exchange Server issues Hi ALL, I have AddIn devoloped on C# 2.0 VSTO 2005. Also i use Redemption ver 4.4. The problem i encountered is when my AddIn run in Outlook 12 and Exchange Server 2003 installed on same machine the Redemption seems to be not working, the Rdemption failed
Microsoft Exchange Client Extension v/s COM Add-in Hi, I am new to this field so Please help me out how to start.. I have read Microsoft Exchange client extension and Com add-in both. But I am unable to find out the difference between these two i.e which one should be used in which situations? I have to d
C++ Outlook Addin (New Folder Code) Hi, I'm developing a Outlook Addin, simply I want to create a new folder, at same level of Inbox folder, I'd tried some code, but the folder doesn't show. Neither if I try creating this folder inside the inbox folder, I'll like to get some code sample, i
access mail from public folder Hi, I'm trying to use outlook 2003 and access mail from public folder. storeId and mail Count is giving result but access mail mi.Subject have no any output. I am losing any scop for public folder. mapiNamespace = |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|