Redemption Pickfolder at offline throws an error

B

Bert_Bert

Please could someone help me to find a workaround to pick folder ?

After I compile DLL in VB6 for Outlook 2003EN and run it at offline mode,
when user clicks button that fires
ses.Pickfolder
of Redemption Session, the following error displays:

Run-time error '-2147221219 (8004011d)':

Error in MAPISession::OpenMsgStore: 0x8004011D
Error: The information store could not be opened.
Component: MAPI 1.0

The different offline replica at my developping machine (looks at the same
mailbox but more historically) throws no error.

Also problematic machine, when logged in online, the Pickfolder normally
works fine.

I tried also Outlook namespace.Pickfolder, then to remember .EntryID +
StoreID and then for my Redemption session to use .GetFolderFromID but it
tells that the folder with my ID does not exists, perhaps not being
persistent.

Any hint how to workaround my trouble welcome.
 
D

Dmitry Streblechenko

How do you initialize RDOSession? Do you call RDOSession.LOgon?
If you already have a pointer to Outlook.Application, have yo utried to set
RDOSession.MAPIOBJECT to Application.Session.MAPIOBJECT insterad of calling
Logon?

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
 
B

Bert_Bert

historically I set MAPIOBJECT as recommended at homepage of Redemption. Then
my problems with OST Pickfolder started. So I remember I have read this
method was not 100% reliable because of ?marshalling? or I do not remeber
exactly and COM is a big mystery for me so I changed it to use .Logon method
withou any parameters, since I am already logged in as the DLL starts when
Outlook application starts. It work fine.
And strage with the problem is, it does not fail on all offline replicas of
the same Exchange.

I am a big fanatic of using Outlook as synchronized store of my personal
structured data and syncing my Store to home computer, working laptop and
Virtual development environment ... etc.

I test the ready DLL at some other machine (all have Outlook 2003 EN), all
look to the same Exchange mailbox using RPC over HTTP.

And the machine that fail is not debugging one, so it took me a while -
recompiling and recompilig and finally as I put .Pickfolder to "On Error
Resume Next" block, probleem disappears but nothing happens :)

This way I found where is the problem and at developping Virtual machine at
OST Pickfolder works fine even when I compile my DLL and register it.

I use Redemption 4.7.0.936 that is the one, you sent me via email and have
corrected national keyboard/bug in Outlook 2007 email writing that was caused
when the official one is registerred.

But I think ( not sure) the error goes into history but then I did not
dedicate so much attention to it.

Now I can at least catch the error and say to user "sorry guy, switch to
online, choose folder and then the app will work online ok".

Tha is true, then my remembered EntryID and StoreID in registry get folder
via GetFolderByID (or similar, dont remember exact name) and program works
really fine even when folder was picked online and is used GetFoldeFromID
offline.

Strange, isn't it ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top