Re: Access to data in Outlook connected to Exchange

From: Andrei P. (andrei_at_gbsinc.com)
Date: 03/12/04

  • Next message: Carlos Lopez: "Re: Event sink not working Synchronously"
    Date: Fri, 12 Mar 2004 16:10:12 -0700
    
    

    Thanks, Michael.
    I did not logon to a session.
    The code works fine with just Outlook (without Exchange):

    With g_oApplication.GetNamespace("MAPI")
            Set oItem = .GetItemFromID(sOutlookEntryID)
    End With

    And even if I add:
            Call .Logon(<User>, <Password>)
    it does not make a difference.

    Pointing to store does not make a difference as well:
            Set oItem = .GetItemFromID(sOutlookEntryID, sStoreID)

    Everything works fine without Exchange.
    The error "Could not open the item. Try again." does not tell much.

    Does anybody have any idea where else to dig?

    "Michael Lorio [anyWARE AG]" <mlnews@anyware-online.de.nospam> wrote in
    message news:%236MRLj1BEHA.1600@tk2msftngp13.phx.gbl...
    > Might it be possible that you did not logon to mapi? (mapisession)
    >
    > --
    > Mit freundlichen Grüßen,
    > Michael Lorio [MCSE]
    >
    > __________________________________________________________________
    > anyWARE AG Tel: +49 6131 965 9650
    > Holzstraße 32 Fax: +49 6131 965 9655
    > 55116 Mainz Mail: michael.lorio@anyware-online.de
    > http: www.anyware.ag
    >
    > "Andrei P." <andrei@gbsinc.com> schrieb im Newsbeitrag
    > news:OoPZEAtBEHA.464@TK2MSFTNGP11.phx.gbl...
    > > We have an application with Outlook-like Calendar, Tasks and Contacts. I
    > > have developed a routine to synchronize these items from our application
    > > with Outlook data. Everything works fine when Outlook is not connected
    to
    > > Exchange.
    > > But when we use Exchange, the statement (VB6):
    > > objNameSpace.GetItemFromID(strOutlookID)
    > > returns an error:
    > > "Could not open the item. Try again."
    > > strOutlookID contains EntryID from Contacts and definitely exists.
    > >
    > > The error comes up with both Outlook 2000 and 2003.
    > > I am new to Exchange (actually SBS 2003).
    > > Could anybody point me what parameters may be changed in Outlook and/or
    > > Exchange to fix the problem.
    > >
    > >
    >
    >


  • Next message: Carlos Lopez: "Re: Event sink not working Synchronously"

    Relevant Pages

    • Re: New users in AD do not show in GAL on some Outlook Clients?
      ... OAB Generate in Exchange Server Side. ... outlook clients do not access GAL, it queries OAB that download from ... Microsoft Exchange System Attendant Service. ... This newsgroup only focuses on SBS technical issues. ...
      (microsoft.public.exchange2000.admin)
    • RE: Exchange 2007 SP1 Declined conflicts email wrong date format O
      ... I posted in the outlook general and the post is below. ... Those rollups are for the RTM version of Exchange not SP1 ... format within exchange is still en-us, rather than the local regional setting. ... When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from this issue. ...
      (microsoft.public.exchange.setup)
    • Re: Out of Office Auto Reply
      ... Milly Staples [MVP - Outlook] ... | Exchange Administrator to see what the settings are for Outlook on ... | unsolicited mail sent to my personal account will be deleted without ... are not the ones to which those auto-responses get sent. ...
      (microsoft.public.outlook)
    • Re: exch 2003 will not pass email to external IPS mail server
      ... -who use OL at the desktop, connect to your exchange server, good. ... -OWA or Outlook Anywhere. ... Internal User John, who also wants to view the mail from home? ...
      (microsoft.public.windows.server.sbs)
    • Re: exch 2003 will not pass email to external IPS mail server
      ... How did I miss RWW? ... -who use OL at the desktop, connect to your exchange server, good. ... -OWA or Outlook Anywhere. ... available from any computer that can access the internet by RWW or -OWA, ...
      (microsoft.public.windows.server.sbs)