Creating Redemption.MAPIUtils failed with Windows 7 x64

Status
Not open for further replies.
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

Adrian Miller
 
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)

-

"Adrian Miller" <adrian.miller@hotmail.com> wrote in message

news:ul$lli2fKHA.5564@TK2MSFTNGP06.phx.gbl...
> 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

> > Adrian Miller
>
 
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" <dmitry@dimastr.com> wrote in message

news:u4zJMzAgKHA.2188@TK2MSFTNGP04.phx.gbl...
> 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)
>

>

>

> -
> "Adrian Miller" <adrian.miller@hotmail.com> wrote in message
> news:ul$lli2fKHA.5564@TK2MSFTNGP06.phx.gbl...
> > 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
>

>> > > Adrian Miller
> >


>
 
D

Dmitry Streblechenko

yes.

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

Dmitry Streblechenko (MVP)

-

"Adrian Miller" <adrian.miller@hotmail.com> wrote in message

news:%23lQRVTMgKHA.3552@TK2MSFTNGP06.phx.gbl...
> 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" <dmitry@dimastr.com> wrote in message
> news:u4zJMzAgKHA.2188@TK2MSFTNGP04.phx.gbl...
> > 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)
> >

> >

> >

> > -
> > "Adrian Miller" <adrian.miller@hotmail.com> wrote in message
> > news:ul$lli2fKHA.5564@TK2MSFTNGP06.phx.gbl...
> >> 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
> >
>>> > >> Adrian Miller
> >>

>

>>


>
 
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

Adrian Miller

"Dmitry Streblechenko" <dmitry@dimastr.com> wrote in message

news:%23XElQp5gKHA.6096@TK2MSFTNGP02.phx.gbl...
> yes.
> Also, what exacrly do you mean by "this does not work"?

> > Dmitry Streblechenko (MVP)
>

>

>

> -
> "Adrian Miller" <adrian.miller@hotmail.com> wrote in message
> news:%23lQRVTMgKHA.3552@TK2MSFTNGP06.phx.gbl...
> > 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" <dmitry@dimastr.com> wrote in message
> > news:u4zJMzAgKHA.2188@TK2MSFTNGP04.phx.gbl...
> >> 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)
> >>

> >>

> >>

> >> -
> >> "Adrian Miller" <adrian.miller@hotmail.com> wrote in message
> >> news:ul$lli2fKHA.5564@TK2MSFTNGP06.phx.gbl...
> >>> 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
> >>
>>>> > >>> Adrian Miller
> >>
>>
>>>

>

>>


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

-

"Adrian Miller" <adrian.miller@hotmail.com> wrote in message

news:uGvPbH%23hKHA.2132@TK2MSFTNGP05.phx.gbl...
> 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

> > Adrian Miller
> "Dmitry Streblechenko" <dmitry@dimastr.com> wrote in message
> news:%23XElQp5gKHA.6096@TK2MSFTNGP02.phx.gbl...
> > yes.
> > Also, what exacrly do you mean by "this does not work"?
>

>> > > Dmitry Streblechenko (MVP)
> >

> >

> >

> > -
> > "Adrian Miller" <adrian.miller@hotmail.com> wrote in message
> > news:%23lQRVTMgKHA.3552@TK2MSFTNGP06.phx.gbl...
> >> 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" <dmitry@dimastr.com> wrote in message
> >> news:u4zJMzAgKHA.2188@TK2MSFTNGP04.phx.gbl...
> >>> 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)
> >>>

> >>>

> >>>

> >>> -
> >>> "Adrian Miller" <adrian.miller@hotmail.com> wrote in message
> >>> news:ul$lli2fKHA.5564@TK2MSFTNGP06.phx.gbl...
> >>>> 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
> >>>
>>>>> > >>>> Adrian Miller
> >>>
>>>
>>>
>>
>>>

>

>>


>
 
Status
Not open for further replies.
Top