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