View Single Post
  #10  
Old December 8th 06, 05:51 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Redemption Inbox problem + instability

Nope, you need to use RDOSession.Logon/LogonExchangeMailbox instead of
setting the MAPIOBJECT property - there's a marshalling bug in MAPI, nothing
Redemption can do. AFAIK that was fixed in Outlook 2007.
As a workaround, you can create a new message in the target folder
explicitly (RDOFolder.Items.Add), then call RDOMail.CopyTo(), then
RDOMail.Delete. Just keep in mind that doing so instead of calling MoveTo()
does not preserve created and last modified dates.
Why can't you use Logon?

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

"mirzoni" wrote in message
...

hi,
thanks for you help.
here is the copy of the error:

++++++++++++++++++

System.Runtime.InteropServices.COMException occurred
ErrorCode=-2147417852
Message="Error in IMsgServiceAdmin::AdminProviders: RPC_E_FAULT"
Source="Redemption.RDOReportItem"
StackTrace:
at Redemption.RDOMailClass.Move(RDOFolder DestFolder)
at EmailScanner.ScanManager.LoadRawMessageMAPI(Items&
FolderItems)

++++++++++++++++++

this started when this: session.MAPIOBJECT = oNS.MAPIOBJECT
was added and this: session.LogonExchangeMailbox(MailBoxName, Server)
was taken out.


++++++++++++++++++
i looked up this error on google and found the following:
http://peach.ease.lsoft.com/scripts/...-l&T=0&P=18593

..
Is your code running as a separate exe rather than an Outlook
add-in/extension?
There are quite a few bugs in MAPI when it comes to marshalling
IMAPISession
across the process boundaries - you will get back the RPC_E_FAULT error
when
you touch the profiles API (IProfAdmin etc) or call Imessage::CopyTo()
or
open the ACL table under Exchange.
Make sure that IMAPISession lives in your process address space so that
it
won't have to be marshalled - use MAPILogonEx() to retrieve
IMAPISession
instead of reading it from Namespace.MAPIOBJECT.
..
++++++++++++++
now, since i HAVE to use session.MAPIOBJECT = oNS.MAPIOBJECT (as only
that brings me back good results) is there a way to move these messages
to another folder? is there a way out?


again, thanks for you help.


--
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



Ads