Redemption MAPI access(c#)

Status
Not open for further replies.
E

entvex

HI every one i have coded a program can searches all our company

calendars.

and looks for tags like vacation and adds them to a database. and then

a project manager can view all the data in a web interface.

But it seem like OOM is very unstable when using olNameSpace =

olApplication.GetNamespace("MAPI");

From redemtion API

Important note: if you set this property to Namespace.MAPIOBJECT

property from the Outlook Object Model and your code is running

outside the outlook.exe address space (i.e. it is not a COM add-in)

some RDO features (RDOFolder.ACL, RDOPSTStore.PstPath,

GetSharedDefaultFolder, GetSharedMailbox, etc) will not function

properly due to bugs in the MAPI COM marshaling support.

and i make heavy use for olMAPIFolder =

olNameSpace.GetSharedDefaultFolder(olRecipient,

Outlook.OlDefaultFolders.olFolderCalendar);

i am now trying to use Redemtion

i am trying to logon to a exchnage to search calendar data

Session.LogonExchangeMailbox("OutlookCalendarSvc@terma.com", "exch-

be.terma.com");

how do i connect ?

Greetings Entvex
 
The Outlook object model isn't unstable in that case. As Dmitry says it's a

marshaling problem. In cases where you are running from outside the Outlook

process you use a logon instead of using NameSpace.MAPIOBJECT.

That's if there's already an Outlook profile on that machine that logs into

the mailbox you want to log into. If not you need to set that up, or you

need to use a server side version of MAPI on that machine. Then if you have

permissions on that mailbox you can use that logon. The machine would need

to have no Office installed on it and no MAPI and have the downloaded server

side MAPI installed then.

In my experience using LogonExchangeMailbox() works with the server side

MAPI and not the client side MAPI installed by Outlook.

"entvex" <entvex@gmail.com> wrote in message

news:51c637f8-eaca-45aa-88b5-4e44f39930bc@m37g2000yqf.googlegroups.com...
> HI every one i have coded a program can searches all our company
> calendars.
> and looks for tags like vacation and adds them to a database. and then
> a project manager can view all the data in a web interface.

> But it seem like OOM is very unstable when using olNameSpace =
> olApplication.GetNamespace("MAPI");

> From redemtion API
> Important note: if you set this property to Namespace.MAPIOBJECT
> property from the Outlook Object Model and your code is running
> outside the outlook.exe address space (i.e. it is not a COM add-in)
> some RDO features (RDOFolder.ACL, RDOPSTStore.PstPath,
> GetSharedDefaultFolder, GetSharedMailbox, etc) will not function
> properly due to bugs in the MAPI COM marshaling support.

> and i make heavy use for olMAPIFolder =
> olNameSpace.GetSharedDefaultFolder(olRecipient,
> Outlook.OlDefaultFolders.olFolderCalendar);

> i am now trying to use Redemtion

> i am trying to logon to a exchnage to search calendar data

> Session.LogonExchangeMailbox("OutlookCalendarSvc@terma.com", "exch-
> be.terma.com");

> how do i connect ?

> Greetings Entvex
 
LogonExchangeMailbox shoudl work fien with either flavor of MAPI, the rule

of thumb is to run your code as the user specified in the call to

LogonExchangeMailbox. If you then need to ope nothe ruser's mailbox, call

RDOSession.Stores.GetSharedMailbox.

Dmitry Streblechenko (MVP)

-
<kenslovak@mvps.org> wrote in message

news:OQWkRlsvKHA.2436@TK2MSFTNGP04.phx.gbl...
> The Outlook object model isn't unstable in that case. As Dmitry says it's
> a marshaling problem. In cases where you are running from outside the
> Outlook process you use a logon instead of using NameSpace.MAPIOBJECT.

> That's if there's already an Outlook profile on that machine that logs
> into the mailbox you want to log into. If not you need to set that up, or
> you need to use a server side version of MAPI on that machine. Then if you
> have permissions on that mailbox you can use that logon. The machine would
> need to have no Office installed on it and no MAPI and have the downloaded
> server side MAPI installed then.

> In my experience using LogonExchangeMailbox() works with the server side
> MAPI and not the client side MAPI installed by Outlook.

> >

>

> "entvex" <entvex@gmail.com> wrote in message
> news:51c637f8-eaca-45aa-88b5-4e44f39930bc@m37g2000yqf.googlegroups.com...
> > HI every one i have coded a program can searches all our company
> > calendars.
> > and looks for tags like vacation and adds them to a database. and then
> > a project manager can view all the data in a web interface.
>

>> But it seem like OOM is very unstable when using olNameSpace =
> > olApplication.GetNamespace("MAPI");
>

>> From redemtion API
> > Important note: if you set this property to Namespace.MAPIOBJECT
> > property from the Outlook Object Model and your code is running
> > outside the outlook.exe address space (i.e. it is not a COM add-in)
> > some RDO features (RDOFolder.ACL, RDOPSTStore.PstPath,
> > GetSharedDefaultFolder, GetSharedMailbox, etc) will not function
> > properly due to bugs in the MAPI COM marshaling support.
>

>> and i make heavy use for olMAPIFolder =
> > olNameSpace.GetSharedDefaultFolder(olRecipient,
> > Outlook.OlDefaultFolders.olFolderCalendar);
>

>> i am now trying to use Redemtion
>

>> i am trying to logon to a exchnage to search calendar data
>

>> Session.LogonExchangeMailbox("OutlookCalendarSvc@terma.com", "exch-
> > be.terma.com");
>

>> how do i connect ?
>

>> Greetings Entvex

>
 
when i run this code to login

Redemption.RDOSession Session = new RDOSession();

try

{

Session.LogonExchangeMailbox("XXX@domain.com",

"intern.domain.com");

}

catch (Exception)

{

}

Debug.WriteLine(Session.LoggedOn);

i get this error from the Exception

"Catastrophic failure"

do any of you have an idea why it won't logon ?

Greetins Entvex
 
What are the exception details?

Dmitry Streblechenko (MVP)

-

"entvex" <entvex@gmail.com> wrote in message

news:fdab7ea8-a03e-4fdb-9061-3bb241f56fa1@b30g2000yqd.googlegroups.com...
> when i run this code to login

> Redemption.RDOSession Session = new RDOSession();
> try
> {
> Session.LogonExchangeMailbox("XXX@domain.com",
> "intern.domain.com");
> }
> catch (Exception)
> {
> }
> Debug.WriteLine(Session.LoggedOn);

> i get this error from the Exception
> "Catastrophic failure"
> do any of you have an idea why it won't logon ?

> Greetins Entvex
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
A Edit subject - and change conversationTopic - using VBA and redemption Outlook VBA and Custom Forms 2
N Redemption VBA basics...something's missing Using Outlook 0
D Redemption? Need rapid pull of Outlook Contacts, email + notes for VBA Using Outlook 1
J 64-bit version of Redemption? Outlook VBA and Custom Forms 2
E Redemption access AppointmentItem Label from outlook Outlook VBA and Custom Forms 6
W Redemption::RDOMail.PrintOut() / DoAction(maPrint) not working Outlook VBA and Custom Forms 1
B Use Redemption to get sender's email address Outlook VBA and Custom Forms 3
M EMail1Address and EMail1AddressType strangeness using Redemption Outlook VBA and Custom Forms 2
A Creating Redemption.MAPIUtils failed with Windows 7 x64 Outlook VBA and Custom Forms 5
D href tags does not result in the full url with Redemption Outlook VBA and Custom Forms 4
E Redemption Foldes.Add doesn't work Outlook VBA and Custom Forms 3
E Redemption Foldes.Add doesn't work Outlook VBA and Custom Forms 3
N Redemption.RDOSession logon() stops emails sending-they stay in Ou Outlook VBA and Custom Forms 3
E Should I switch to redemption Outlook VBA and Custom Forms 11
E Should I switch to redemption Outlook VBA and Custom Forms 11
C Redemption - Rules for outlook Outlook VBA and Custom Forms 1
G Error in Outlook Object Model with redemption and google apps prem Outlook VBA and Custom Forms 3
P Redemption Send EMail Outlook VBA and Custom Forms 10
S redemption reference Outlook VBA and Custom Forms 1
T Configure mailbox OutofOffice with Redemption Outlook Outlook VBA and Custom Forms 1
D redemption dll not registering in windows vista Outlook VBA and Custom Forms 3
Y Redemption MessageItem SaveAs problem Outlook VBA and Custom Forms 8
R Newbie Redemption ISafeMailItemPtr question Outlook VBA and Custom Forms 6
Q GAL.ResolveName issue with REDEMPTION Outlook VBA and Custom Forms 5
Q REDEMPTION HANGING during LOGON Outlook VBA and Custom Forms 2
P Redemption not working on OL2007 Outlook VBA and Custom Forms 2
P Redemption Send EMail fails Outlook VBA and Custom Forms 4
S delete appointmentitem permanently using redemption Outlook VBA and Custom Forms 2
D redemption - foldercreate event + delegate user Outlook VBA and Custom Forms 8
C Assign To and CC list while using Redemption.dll library Outlook VBA and Custom Forms 10
U Re: Read fields with Redemption Outlook VBA and Custom Forms 1
V redemption MAPIUtils Outlook VBA and Custom Forms 3
B Strange MAPI/Exchange/IMAP behaviour in OL 2016 under10.0.19044.2006 Using Outlook 0
pcunite Outlook 2019/O365 Build 13127.20408 errors when using MAPI calls Using Outlook 1
F MAPI, User Defined Fields and perspective after 20 years Outlook VBA and Custom Forms 0
Dennis Gaudenzi Your setup couldn't be started because of an unexpected error (mapi 0x80040604) Using Outlook 14
A How to enable outlook room finder (outlook connector (mapi)) user ? Using Outlook 3
J Unwanted US Holiday Contact folder in Outlook.com syncs to MAPI/Phone Address book Using Outlook.com accounts in Outlook 9
P office 2013 communigate mapi Using Outlook 0
S Outlook 2013 MAPI 1.0 Error Using Outlook 2
L Mapi folder.FIND: error Using Outlook 0
J [outlook-users] Icloud + Mapi profile + Using Outlook 1
C MAPI to access a 64 bit Outlook from a 32 bit application; or access via ODBC Using Outlook 0
K Two MAPI Accounts One Contacts data set Using Outlook.com accounts in Outlook 2
E Google MAPI account Outlook VBA and Custom Forms 4
P CDO MAPI Session failing to retrieve user name but Getexchage user Outlook VBA and Custom Forms 2
R Create a new contact use MAPI? Outlook VBA and Custom Forms 2
A Generating valid MAPI URLs for Outlook 2003 Outlook VBA and Custom Forms 2
M Custom mapi is not displayed in the readingpane. Why? Outlook VBA and Custom Forms 1
M How to install custom mapi form programmatically? Outlook VBA and Custom Forms 1

Similar threads

Back
Top