Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

IMessage::CopyTo fails with HRESULT=0x80070015

39 views
Skip to first unread message

scottm

unread,
Jun 30, 2009, 5:58:01 PM6/30/09
to

I have some C++ extended MAPI code that saves messages from Exchange
mailboxes to outlook msg files. This typically works just fine but today I
started seeing a bunch of errors when running this code against a new
client's exchange server (Win2003/Exchange 2003)

The following code will fail with HRESULT=0x80070015 / "The device is not
ready."

hr = pMessage->CopyTo(0, NULL, (LPSPropTagArray)&excludeTags, NULL, NULL,
(LPIID)&IID_IMessage, pMessageCopy, 0, &pProblems );

Probably half of the emails succede and the other half fails with 0x80070015.

My guess is that this is that this error description does not adaquately
describe what the real problem is in exchange. Surely this isn't exchange
database corruption. Has anyone else ran into this?

thanks!

Dmitry Streblechenko

unread,
Jul 1, 2009, 2:38:10 AM7/1/09
to

So are you copying MSG to Exchange or the other way around?

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"scottm" <sco...@discussions.microsoft.com> wrote in message
news:E4983C05-9C64-4040...@microsoft.com...

scottm

unread,
Jul 1, 2009, 10:58:10 AM7/1/09
to

From exchange mailbox to MSG file. I am logged in as the domain admin
directly on the AD/Exchange server when doing this.

scottm

unread,
Jul 1, 2009, 11:56:01 AM7/1/09
to

Forgot to mention. I also put MFCMapi on the Exchange server. Logged in as
one of the users whose emails puke with the Device Is Not ready error. Tried
to open one of those problem emails and MFCMapi display sthe following error:

MAPI_E_CALL_FAILED == 0x80004005
Function MAPIOpenFormMgr(m_lpMAPISessionk ppFormMgr)
Line 216

Server is running Win2003/Exchange 2003 SP2.

SvenC

unread,
Jul 2, 2009, 8:50:34 AM7/2/09
to

HI Scott

> Forgot to mention. I also put MFCMapi on the Exchange server. Logged in
> as
> one of the users whose emails puke with the Device Is Not ready error.
> Tried
> to open one of those problem emails and MFCMapi display sthe following
> error:
>
> MAPI_E_CALL_FAILED == 0x80004005
> Function MAPIOpenFormMgr(m_lpMAPISessionk ppFormMgr)
> Line 216
>
> Server is running Win2003/Exchange 2003 SP2.

Do you have Outlook (or any other MAPI client) installed as well?
If yes: that is not supported. You cannot (in a supported way) have
client and server MAPI installed on the same machine.
Uninstall Outlook and try if that helps.

--
SvenC

scottm

unread,
Jul 2, 2009, 8:21:01 PM7/2/09
to

No, Outlook is not installed on the Exchange Server. Just MFCMapi and my
VC2008 MAPI app.

Dmitry Streblechenko

unread,
Jul 3, 2009, 1:47:35 AM7/3/09
to

Do you see anything suspicious if you open that message in OutlookSpy (Misc
| OpenIMsgOnIStg)?

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"scottm" <sco...@discussions.microsoft.com> wrote in message

news:6968D347-34BB-4D7B...@microsoft.com...

SvenC

unread,
Jul 3, 2009, 2:07:53 AM7/3/09
to

Hi Scott,

> Forgot to mention. I also put MFCMapi on the Exchange server. Logged in
> as
> one of the users whose emails puke with the Device Is Not ready error.
> Tried
> to open one of those problem emails and MFCMapi display sthe following
> error:
>
> MAPI_E_CALL_FAILED == 0x80004005
> Function MAPIOpenFormMgr(m_lpMAPISessionk ppFormMgr)
> Line 216
>
> Server is running Win2003/Exchange 2003 SP2.

If you do not have Outlook installed (and you should not on the server)
then I expect that no mail at all can be displayed, correct?
You simply have no MAPI forms implementation without Outlook.

--
SvenC

0 new messages