mbt masai
 
Welcome !
         

                                
After experiencing a lot of down time, We decided to move this site to CrystalTech.com. CrystalTech.com is powered by only the finest Windows servers providing the best performance, reliability, and value anywhere.

 Error when accessiing Global address list

Author Message
Srain

  • Total Posts : 2
  • Scores: 0
  • Reward points : 0
  • Joined: 12/6/2009
  • Status: offline
Error when accessiing Global address list Monday, December 07, 2009 6:52 AM (permalink)
0
Hi,
Am trying to display global address list thru an asp page but when trying with below piece of code am getting MAPI
not supported error when accessing address book.
Please let me know where am doing wrong.
 
<% 
 
    Const cdoE_USER_CANCEL = &H80040113
    Dim objSession
    Dim objAddrEntries
    Dim objAddressEntry
    Dim strProfileInfo
    Dim colCDORecips
    strProfileInfo = strServer & vbLf & strMailbox
    ' start CDO session
    Set objSession = CreateObject("MAPI.Session")
    objSession.Logon , , False, True, 0, True, strProfileInfo
  
  
   'objSession.Logon , , False, False
    'On Error Resume Next
    Set colCDORecips = objSession.AddressBook(, _
                       "Pick a Name", , , 1, _
                       "My Choice")
                      
    If Err = 0 Then
        If colCDORecips.Count <> 1 Then
            MsgBox "Please choose exactly 1 name.", , _
                "Chose One Name"
        Else
            strName = _
              colCDORecips.Item(1).AddressEntry.Name
         End If
    ElseIf Err = cdoE_USER_CANCEL Then
    End If
   
     GetOneNameViaCDO = strName
      objSession.Logoff
    Set colCDORecips = Nothing
    Set objSession = Nothing
 %>
#1
    Srain

    • Total Posts : 2
    • Scores: 0
    • Reward points : 0
    • Joined: 12/6/2009
    • Status: offline
    Re:Error when accessiing Global address list Monday, December 07, 2009 4:34 PM (permalink)
    0
    The error am getting is
     
    Collaboration Data Objects (0x4EA)
    [Collaboration Data Objects - [MAPI_E_NO_SUPPORT(80040102)]]
     
    Please help.
    #2

      Online Bookmarks Sharing: Share/Bookmark

      Jump to:

      Current active users

      There are 0 members and 1 guests.

      Icon Legend and Permission

      • New Messages
      • No New Messages
      • Hot Topic w/ New Messages
      • Hot Topic w/o New Messages
      • Locked w/ New Messages
      • Locked w/o New Messages
      • Read Message
      • Post New Thread
      • Reply to message
      • Post New Poll
      • Submit Vote
      • Post reward post
      • Delete my own posts
      • Delete my own threads
      • Rate post

      2000-2012 ASPPlayground.NET Forum Version 3.8
      mbt shoes www.wileywilson.com