A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Redemption MAPI access(c#)



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 8th 10, 11:02 AM posted to microsoft.public.outlook.program_vba
entvex
external usenet poster
 
Posts: 10
Default Redemption MAPI access(c#)

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@t erma.com", "exch-
be.terma.com");

how do i connect ?

Greetings Entvex
Ads
  #2  
Old March 8th 10, 02:45 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Redemption MAPI access(c#)

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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"entvex" wrote in message
...
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@t erma.com", "exch-
be.terma.com");

how do i connect ?

Greetings Entvex


  #3  
Old March 8th 10, 06:35 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Redemption MAPI access(c#)

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)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Ken Slovak - [MVP - Outlook]" wrote in message
...
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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"entvex" wrote in message
...
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@t erma.com", "exch-
be.terma.com");

how do i connect ?

Greetings Entvex




  #4  
Old March 9th 10, 09:01 AM posted to microsoft.public.outlook.program_vba
entvex
external usenet poster
 
Posts: 10
Default Redemption MAPI access(c#)

when i run this code to login

Redemption.RDOSession Session = new RDOSession();
try
{
",
"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
  #5  
Old March 10th 10, 12:40 AM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Redemption MAPI access(c#)

What are the exception details?

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"entvex" wrote in message
...
when i run this code to login

Redemption.RDOSession Session = new RDOSession();
try
{
",
"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



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Redemption and MAPI props. j Add-ins for Outlook 0 February 17th 09 05:45 PM
Redemption and MAPI props. j Add-ins for Outlook 4 February 17th 09 04:21 PM
Access MaiItem.UserProperties using Redemption MA[_2_] Outlook and VBA 10 December 12th 07 08:00 PM
Access using SendObject for MAPI client David Outlook and VBA 0 July 23rd 07 03:52 PM
How to access message recipients (MAPI) Ivan Add-ins for Outlook 6 July 10th 07 07:00 PM


All times are GMT +1. The time now is 08:59 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.