|
|
|
date: Thu, 26 Jun 2008 05:09:00 -0700,
group: microsoft.public.platformsdk.mapi
back
Re: HrFindExchangeGlobalAddressList fails
if(FAILED( hRes = m_pMapiSession->GetMapiSession()->OpenAddressBook( NULL,
NULL, 0, &pAddrBook)))
{
Log( "Error in opening address book" );
}
else
{
if(FAILED( hRes = HrFindExchangeGlobalAddressList( pAddrBook, &cbeid,
&lpeid)))
{
sprintf(pszError,"HrFindExchangeGlobalAddressList failed. Error code =
%x",hRes);
Log( _T( pszError ) );
}
}
Here the OpenEntry method is a success. But the
HrFindExchangeGlobalAddressList fails.
Let me explain the scenario once again.
I have 2 exchange servers at 2 locations and we have in both locations 1xAD
& 1x Exchange. One instance of my application connected to one exchange
server is working fine. The other instance is connected to another exchange
server. The other insztance is failing for HrFindExchangeGlobalAddressList.
"Dmitry Streblechenko" wrote:
> *Which* MAPI method in HrFindExchangeGlobalAddressList fails?
> Did you step through the source code?
>
> --
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
> -
> "kavitha" wrote in message
> news:2452D75B-F41E-4667-811F-50AF9A22864A@microsoft.com...
> > The error code i get is 80004005. It says it is an unspecified error.
> >
> > "Dmitry Streblechenko" wrote:
> >
> >> Did you step through the code to see why the call fails?
> >> HrFindExchangeGlobalAddressList source code should be in the Exchange 5.5
> >> SDK.
> >>
> >> --
> >> Dmitry Streblechenko (MVP)
> >> http://www.dimastr.com/
> >> OutlookSpy - Outlook, CDO
> >> and MAPI Developer Tool
> >> -
> >> "kavitha" wrote in message
> >> news:9F6983C6-7F87-4008-98D0-EAEEAD95DB06@microsoft.com...
> >> >I have 2 exchange servers on a single domain. I have a application
> >> >running
> >> >on
> >> > both the exchange servers. My application runs fine with one exchange
> >> > server.
> >> > The same fails with HrFindExchangeGlobalAddressList failure on the
> >> > other
> >> > exchange server. Can anyone throw some light as to why does this occur.
> >> > Thanks in advance.
> >> >
> >> >
> >> > Regards
> >> > Kavitha
> >>
> >>
> >>
>
>
>
date: Tue, 1 Jul 2008 21:03:00 -0700
author: kavitha
Re: HrFindExchangeGlobalAddressList fails
I think you are missing my point - you can copy the
HrFindExchangeGlobalAddressList source code and step through it.
Download the Exchange 5.5 SDK.
--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"kavitha" wrote in message
news:C1FB0B6D-08A4-4C7C-8F31-FE191DF840CF@microsoft.com...
> if(FAILED( hRes = m_pMapiSession->GetMapiSession()->OpenAddressBook( NULL,
> NULL, 0, &pAddrBook)))
> {
> Log( "Error in opening address book" );
> }
> else
> {
> if(FAILED( hRes = HrFindExchangeGlobalAddressList( pAddrBook, &cbeid,
> &lpeid)))
> {
> sprintf(pszError,"HrFindExchangeGlobalAddressList failed. Error code =
> %x",hRes);
> Log( _T( pszError ) );
> }
> }
>
>
> Here the OpenEntry method is a success. But the
> HrFindExchangeGlobalAddressList fails.
>
> Let me explain the scenario once again.
>
> I have 2 exchange servers at 2 locations and we have in both locations
> 1xAD
> & 1x Exchange. One instance of my application connected to one exchange
> server is working fine. The other instance is connected to another
> exchange
> server. The other insztance is failing for
> HrFindExchangeGlobalAddressList.
>
>
> "Dmitry Streblechenko" wrote:
>
>> *Which* MAPI method in HrFindExchangeGlobalAddressList fails?
>> Did you step through the source code?
>>
>> --
>> Dmitry Streblechenko (MVP)
>> http://www.dimastr.com/
>> OutlookSpy - Outlook, CDO
>> and MAPI Developer Tool
>> -
>> "kavitha" wrote in message
>> news:2452D75B-F41E-4667-811F-50AF9A22864A@microsoft.com...
>> > The error code i get is 80004005. It says it is an unspecified error.
>> >
>> > "Dmitry Streblechenko" wrote:
>> >
>> >> Did you step through the code to see why the call fails?
>> >> HrFindExchangeGlobalAddressList source code should be in the Exchange
>> >> 5.5
>> >> SDK.
>> >>
>> >> --
>> >> Dmitry Streblechenko (MVP)
>> >> http://www.dimastr.com/
>> >> OutlookSpy - Outlook, CDO
>> >> and MAPI Developer Tool
>> >> -
>> >> "kavitha" wrote in message
>> >> news:9F6983C6-7F87-4008-98D0-EAEEAD95DB06@microsoft.com...
>> >> >I have 2 exchange servers on a single domain. I have a application
>> >> >running
>> >> >on
>> >> > both the exchange servers. My application runs fine with one
>> >> > exchange
>> >> > server.
>> >> > The same fails with HrFindExchangeGlobalAddressList failure on the
>> >> > other
>> >> > exchange server. Can anyone throw some light as to why does this
>> >> > occur.
>> >> > Thanks in advance.
>> >> >
>> >> >
>> >> > Regards
>> >> > Kavitha
>> >>
>> >>
>> >>
>>
>>
>>
date: Tue, 1 Jul 2008 21:56:10 -0700
author: Dmitry Streblechenko
Re: HrFindExchangeGlobalAddressList fails
If you're having trouble locating it:
http://blogs.msdn.com/stephen_griffin/archive/2008/01/31/where-did-i-put-those-5-5-sdk-docs.aspx
"Dmitry Streblechenko" wrote in message
news:eBxC4$$2IHA.1808@TK2MSFTNGP04.phx.gbl...
>I think you are missing my point - you can copy the
>HrFindExchangeGlobalAddressList source code and step through it.
> Download the Exchange 5.5 SDK.
>
> --
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
> -
> "kavitha" wrote in message
> news:C1FB0B6D-08A4-4C7C-8F31-FE191DF840CF@microsoft.com...
>> if(FAILED( hRes = m_pMapiSession->GetMapiSession()->OpenAddressBook(
>> NULL,
>> NULL, 0, &pAddrBook)))
>> {
>> Log( "Error in opening address book" );
>> }
>> else
>> {
>> if(FAILED( hRes = HrFindExchangeGlobalAddressList( pAddrBook, &cbeid,
>> &lpeid)))
>> {
>> sprintf(pszError,"HrFindExchangeGlobalAddressList failed. Error code =
>> %x",hRes);
>> Log( _T( pszError ) );
>> }
>> }
>>
>>
>> Here the OpenEntry method is a success. But the
>> HrFindExchangeGlobalAddressList fails.
>>
>> Let me explain the scenario once again.
>>
>> I have 2 exchange servers at 2 locations and we have in both locations
>> 1xAD
>> & 1x Exchange. One instance of my application connected to one exchange
>> server is working fine. The other instance is connected to another
>> exchange
>> server. The other insztance is failing for
>> HrFindExchangeGlobalAddressList.
>>
>>
>> "Dmitry Streblechenko" wrote:
>>
>>> *Which* MAPI method in HrFindExchangeGlobalAddressList fails?
>>> Did you step through the source code?
>>>
>>> --
>>> Dmitry Streblechenko (MVP)
>>> http://www.dimastr.com/
>>> OutlookSpy - Outlook, CDO
>>> and MAPI Developer Tool
>>> -
>>> "kavitha" wrote in message
>>> news:2452D75B-F41E-4667-811F-50AF9A22864A@microsoft.com...
>>> > The error code i get is 80004005. It says it is an unspecified error.
>>> >
>>> > "Dmitry Streblechenko" wrote:
>>> >
>>> >> Did you step through the code to see why the call fails?
>>> >> HrFindExchangeGlobalAddressList source code should be in the Exchange
>>> >> 5.5
>>> >> SDK.
>>> >>
>>> >> --
>>> >> Dmitry Streblechenko (MVP)
>>> >> http://www.dimastr.com/
>>> >> OutlookSpy - Outlook, CDO
>>> >> and MAPI Developer Tool
>>> >> -
>>> >> "kavitha" wrote in message
>>> >> news:9F6983C6-7F87-4008-98D0-EAEEAD95DB06@microsoft.com...
>>> >> >I have 2 exchange servers on a single domain. I have a application
>>> >> >running
>>> >> >on
>>> >> > both the exchange servers. My application runs fine with one
>>> >> > exchange
>>> >> > server.
>>> >> > The same fails with HrFindExchangeGlobalAddressList failure on the
>>> >> > other
>>> >> > exchange server. Can anyone throw some light as to why does this
>>> >> > occur.
>>> >> > Thanks in advance.
>>> >> >
>>> >> >
>>> >> > Regards
>>> >> > Kavitha
>>> >>
>>> >>
>>> >>
>>>
>>>
>>>
>
>
date: Wed, 2 Jul 2008 10:02:14 -0400
author: Stephen Griffin
|
|