![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |