Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: MAPI_E_NOT_FOUND when trying to open other user's calendar

Geek News

MAPI_E_NOT_FOUND when trying to open other user's calendar
"Alex Yakhnin" <a.yakhnin[ at ]online.att.net> 1/7/2007 9:16:09 PM
I am trying to open other user's calendar using CDO and getting the
MAPI_E_NOT_FOUND (8004010F) exception. I have a full access to her mail box
and verified that I can successfully open Inbox and Outbox from the CDO. The
code worked fine against Exchange 2007 Beta 2 and it doesn't with the RTM.
The CDO session is openned anonymously.

Any ideas?

Thx... Alex
--
Alex Yakhnin, Device Application Developer MVP
http://blog.opennetcf.org/ayakhnin

Re: MAPI_E_NOT_FOUND when trying to open other user's calendar
"Dmitry Streblechenko" <dmitry[ at ]dimastr.com> 1/7/2007 10:20:50 PM
Do you specify both the folder and store entry ids?

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

"Alex Yakhnin" <a.yakhnin[ at ]online.att.net> wrote in message
news:4BE9FDBC-9B89-41A0-8678-4651FEDFD132[ at ]microsoft.com...
[Quoted Text]
>I am trying to open other user's calendar using CDO and getting the
>MAPI_E_NOT_FOUND (8004010F) exception. I have a full access to her mail box
>and verified that I can successfully open Inbox and Outbox from the CDO.
>The code worked fine against Exchange 2007 Beta 2 and it doesn't with the
>RTM. The CDO session is openned anonymously.
>
> Any ideas?
>
> Thx... Alex
> --
> Alex Yakhnin, Device Application Developer MVP
> http://blog.opennetcf.org/ayakhnin
>


Re: MAPI_E_NOT_FOUND when trying to open other user's calendar
"Alex Yakhnin" <a.yakhnin[ at ]online.att.net> 1/7/2007 11:13:59 PM
Hi Dmitry,

It fails when I make a call to GetDefaultFolder(0) on the valid session
object.

--
Alex Yakhnin, .NET CF MVP


"Dmitry Streblechenko" <dmitry[ at ]dimastr.com> wrote in message
news:uo2NknqMHHA.2028[ at ]TK2MSFTNGP03.phx.gbl...
[Quoted Text]
> Do you specify both the folder and store entry ids?
>
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
>
> "Alex Yakhnin" <a.yakhnin[ at ]online.att.net> wrote in message
> news:4BE9FDBC-9B89-41A0-8678-4651FEDFD132[ at ]microsoft.com...
>>I am trying to open other user's calendar using CDO and getting the
>>MAPI_E_NOT_FOUND (8004010F) exception. I have a full access to her mail
>>box and verified that I can successfully open Inbox and Outbox from the
>>CDO. The code worked fine against Exchange 2007 Beta 2 and it doesn't with
>>the RTM. The CDO session is openned anonymously.
>>
>> Any ideas?
>>
>> Thx... Alex
>> --
>> Alex Yakhnin, Device Application Developer MVP
>> http://blog.opennetcf.org/ayakhnin
>>
>
>


Re: MAPI_E_NOT_FOUND when trying to open other user's calendar
"Alex Yakhnin" <a.yakhnin[ at ]online.att.net> 1/8/2007 12:10:02 AM
It fails when I make a call to GetDefaultFolder(0) on the session.

--
Alex Yakhnin, Device Application Developer MVP
http://blog.opennetcf.org/ayakhnin


"Dmitry Streblechenko" <dmitry[ at ]dimastr.com> wrote in message
news:uo2NknqMHHA.2028[ at ]TK2MSFTNGP03.phx.gbl...
[Quoted Text]
> Do you specify both the folder and store entry ids?
>
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
>
> "Alex Yakhnin" <a.yakhnin[ at ]online.att.net> wrote in message
> news:4BE9FDBC-9B89-41A0-8678-4651FEDFD132[ at ]microsoft.com...
>>I am trying to open other user's calendar using CDO and getting the
>>MAPI_E_NOT_FOUND (8004010F) exception. I have a full access to her mail
>>box and verified that I can successfully open Inbox and Outbox from the
>>CDO. The code worked fine against Exchange 2007 Beta 2 and it doesn't with
>>the RTM. The CDO session is openned anonymously.
>>
>> Any ideas?
>>
>> Thx... Alex
>> --
>> Alex Yakhnin, Device Application Developer MVP
>> http://blog.opennetcf.org/ayakhnin
>>
>
>

Re: MAPI_E_NOT_FOUND when trying to open other user's calendar
"Alex Yakhnin" <a.yakhnin[ at ]online.att.net> 1/8/2007 12:11:31 AM
It fails when I make a call to GetDefaultFolder(0) on the session object.

--
--
Alex Yakhnin, Device Application Developer MVP
http://blog.opennetcf.org/ayakhnin


"Dmitry Streblechenko" <dmitry[ at ]dimastr.com> wrote in message
news:uo2NknqMHHA.2028[ at ]TK2MSFTNGP03.phx.gbl...
[Quoted Text]
> Do you specify both the folder and store entry ids?
>
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
>
> "Alex Yakhnin" <a.yakhnin[ at ]online.att.net> wrote in message
> news:4BE9FDBC-9B89-41A0-8678-4651FEDFD132[ at ]microsoft.com...
>>I am trying to open other user's calendar using CDO and getting the
>>MAPI_E_NOT_FOUND (8004010F) exception. I have a full access to her mail
>>box and verified that I can successfully open Inbox and Outbox from the
>>CDO. The code worked fine against Exchange 2007 Beta 2 and it doesn't with
>>the RTM. The CDO session is openned anonymously.
>>
>> Any ideas?
>>
>> Thx... Alex
>> --
>> Alex Yakhnin, Device Application Developer MVP
>> http://blog.opennetcf.org/ayakhnin
>>
>
>

Re: MAPI_E_NOT_FOUND when trying to open other user's calendar
"Alex Yakhnin" <a.yakhnin[ at ]online.att.net> 1/8/2007 12:49:18 AM
I apologize for multiple posts - was having connection issues.

--
Alex Yakhnin, Device Application Developer MVP
http://blog.opennetcf.org/ayakhnin


"Alex Yakhnin" <a.yakhnin[ at ]online.att.net> wrote in message
news:F33FE0A7-A903-49C0-BE6A-B82BB3DCF8CE[ at ]microsoft.com...
[Quoted Text]
> It fails when I make a call to GetDefaultFolder(0) on the session object.
>
> --
> --
> Alex Yakhnin, Device Application Developer MVP
> http://blog.opennetcf.org/ayakhnin
>
>
> "Dmitry Streblechenko" <dmitry[ at ]dimastr.com> wrote in message
> news:uo2NknqMHHA.2028[ at ]TK2MSFTNGP03.phx.gbl...
>> Do you specify both the folder and store entry ids?
>>
>> Dmitry Streblechenko (MVP)
>> http://www.dimastr.com/
>> OutlookSpy - Outlook, CDO
>> and MAPI Developer Tool
>>
>> "Alex Yakhnin" <a.yakhnin[ at ]online.att.net> wrote in message
>> news:4BE9FDBC-9B89-41A0-8678-4651FEDFD132[ at ]microsoft.com...
>>>I am trying to open other user's calendar using CDO and getting the
>>>MAPI_E_NOT_FOUND (8004010F) exception. I have a full access to her mail
>>>box and verified that I can successfully open Inbox and Outbox from the
>>>CDO. The code worked fine against Exchange 2007 Beta 2 and it doesn't
>>>with the RTM. The CDO session is openned anonymously.
>>>
>>> Any ideas?
>>>
>>> Thx... Alex
>>> --
>>> Alex Yakhnin, Device Application Developer MVP
>>> http://blog.opennetcf.org/ayakhnin
>>>
>>
>>
>

Re: MAPI_E_NOT_FOUND when trying to open other user's calendar
"Dmitry Streblechenko" <dmitry[ at ]dimastr.com> 1/8/2007 3:56:39 AM
Firstly, GetDefaultFolder will return a default folder from the default
store, not somebody's else mailbox.
Secondly, 0 is not a valid enum for GetDefaultFolder. If you need to open
the Calendar folder, you need to specify olFolderCalendar (=9) constant.

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

"Alex Yakhnin" <a.yakhnin[ at ]online.att.net> wrote in message
news:F33FE0A7-A903-49C0-BE6A-B82BB3DCF8CE[ at ]microsoft.com...
[Quoted Text]
> It fails when I make a call to GetDefaultFolder(0) on the session object.
>
> --
> --
> Alex Yakhnin, Device Application Developer MVP
> http://blog.opennetcf.org/ayakhnin
>
>
> "Dmitry Streblechenko" <dmitry[ at ]dimastr.com> wrote in message
> news:uo2NknqMHHA.2028[ at ]TK2MSFTNGP03.phx.gbl...
>> Do you specify both the folder and store entry ids?
>>
>> Dmitry Streblechenko (MVP)
>> http://www.dimastr.com/
>> OutlookSpy - Outlook, CDO
>> and MAPI Developer Tool
>>
>> "Alex Yakhnin" <a.yakhnin[ at ]online.att.net> wrote in message
>> news:4BE9FDBC-9B89-41A0-8678-4651FEDFD132[ at ]microsoft.com...
>>>I am trying to open other user's calendar using CDO and getting the
>>>MAPI_E_NOT_FOUND (8004010F) exception. I have a full access to her mail
>>>box and verified that I can successfully open Inbox and Outbox from the
>>>CDO. The code worked fine against Exchange 2007 Beta 2 and it doesn't
>>>with the RTM. The CDO session is openned anonymously.
>>>
>>> Any ideas?
>>>
>>> Thx... Alex
>>> --
>>> Alex Yakhnin, Device Application Developer MVP
>>> http://blog.opennetcf.org/ayakhnin
>>>
>>
>>
>


Re: MAPI_E_NOT_FOUND when trying to open other user's calendar
"Alex Yakhnin" <a.yakhnin[ at ]online.att.net> 1/8/2007 11:52:55 PM
I am sorry, I am really new to all this Outlook programming thing, but I am
using CDO from C#. Here is the code:

MAPI.SessionClass mySession = new MAPI.SessionClass();

mySession.Logon(System.Reflection.Missing.Value,
System.Reflection.Missing.Value,
true, true, System.Reflection.Missing.Value,
false,
StrExchangeServerName + "\n" +
strUserAliasName);

MAPI.Folder cdoCalendar = (MAPI.Folder)mySession.GetDefaultFolder(0);

And this site seems to suggest that the calendar is 0:

http://www.cdolive.com/cdo5.htm


--
Alex Yakhnin, Device Application Developer MVP
http://blog.opennetcf.org/ayakhnin


"Dmitry Streblechenko" <dmitry[ at ]dimastr.com> wrote in message
news:uYKdNjtMHHA.3312[ at ]TK2MSFTNGP03.phx.gbl...
[Quoted Text]
> Firstly, GetDefaultFolder will return a default folder from the default
> store, not somebody's else mailbox.
> Secondly, 0 is not a valid enum for GetDefaultFolder. If you need to open
> the Calendar folder, you need to specify olFolderCalendar (=9) constant.
>
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
>
> "Alex Yakhnin" <a.yakhnin[ at ]online.att.net> wrote in message
> news:F33FE0A7-A903-49C0-BE6A-B82BB3DCF8CE[ at ]microsoft.com...
>> It fails when I make a call to GetDefaultFolder(0) on the session object.
>>
>> --
>> --
>> Alex Yakhnin, Device Application Developer MVP
>> http://blog.opennetcf.org/ayakhnin
>>
>>
>> "Dmitry Streblechenko" <dmitry[ at ]dimastr.com> wrote in message
>> news:uo2NknqMHHA.2028[ at ]TK2MSFTNGP03.phx.gbl...
>>> Do you specify both the folder and store entry ids?
>>>
>>> Dmitry Streblechenko (MVP)
>>> http://www.dimastr.com/
>>> OutlookSpy - Outlook, CDO
>>> and MAPI Developer Tool
>>>
>>> "Alex Yakhnin" <a.yakhnin[ at ]online.att.net> wrote in message
>>> news:4BE9FDBC-9B89-41A0-8678-4651FEDFD132[ at ]microsoft.com...
>>>>I am trying to open other user's calendar using CDO and getting the
>>>>MAPI_E_NOT_FOUND (8004010F) exception. I have a full access to her mail
>>>>box and verified that I can successfully open Inbox and Outbox from the
>>>>CDO. The code worked fine against Exchange 2007 Beta 2 and it doesn't
>>>>with the RTM. The CDO session is openned anonymously.
>>>>
>>>> Any ideas?
>>>>
>>>> Thx... Alex
>>>> --
>>>> Alex Yakhnin, Device Application Developer MVP
>>>> http://blog.opennetcf.org/ayakhnin
>>>>
>>>
>>>
>>
>
>

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net