Creating Redemption.MAPIUtils failed with Windows 7 x64

A

Adrian Miller

Hi,

with Windows Vista x64 I was able to create the Redemption.MAPIUtils, how
ever this does not work with Windows 7 and Windows Server 2008 R2 in my
environment. Is a certain version required or anything else need to be
considered? Did anybody get this to work?

Thanks for any advice
Adrian
 
D

Dmitry Streblechenko

Do you have Outlook or teh standalone version of MAPI on the problematic
machine?
Keep in mind that the MAPIUtils object is being deprecated, use RDOSession
instead.

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

Adrian Miller

Hi Dmitry,

thanks for your advice. I have Outlook 2007 SP2 on the machine. My .NET 2.0
app and Outlook is running in x86 mode. I'm actually using two methods. So
the solution would be to replace these as described below, right?
MAPIUtils.CurrentProfileName -> RDOSession.ProfileName
(http://www.dimastr.com/redemption/rdo/rdosession.htm)

MAPIUtils.Addressbook -> RDOSession.Addressbok
(http://www.dimastr.com/redemption/rdo/rdoaddressbook.htm)

Thanks for any advice in advance

Adrian

----
Adrian Miller

Dmitry Streblechenko said:
Do you have Outlook or teh standalone version of MAPI on the problematic
machine?
Keep in mind that the MAPIUtils object is being deprecated, use RDOSession
instead.

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

Dmitry Streblechenko

yes.
Also, what exacrly do you mean by "this does not work"?

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

thanks for your advice. I have Outlook 2007 SP2 on the machine. My .NET
2.0 app and Outlook is running in x86 mode. I'm actually using two
methods. So the solution would be to replace these as described below,
right?
MAPIUtils.CurrentProfileName -> RDOSession.ProfileName
(http://www.dimastr.com/redemption/rdo/rdosession.htm)

MAPIUtils.Addressbook -> RDOSession.Addressbok
(http://www.dimastr.com/redemption/rdo/rdoaddressbook.htm)

Thanks for any advice in advance

Adrian
 
A

Adrian Miller

Hi Dmitry,

thanks. The error is that running .NET Code in x86 mode on x64 that
Activator.CreateInstance does not instantiate MAPIUtils.

Thanks again
Adrian
 
D

Dmitry Streblechenko

Make sure your app is compiled as 32 bit only: since MAPI is 32 bit, and
Redemption loads it in-proc, Redemption must also be 32 bit. Which, since
Redemption is an in-proc COM library, requires that the calling app must be
32 bit.


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

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