none
Member not found. RRS feed

  • Question



  • Public Sub Logon(ByVal profile As StringByVal RootFolder As String
     
            m_Session = New MAPI.Session 
            m_Session.Logon(profile, , False, , , , ) 
            ' Go the fax store 
            Dim Folders As String() = RootFolder.Split("/".ToCharArray()) 
            m_PublicFolderRoot = m_Session.InfoStores(Folders(0)) 
            Dim Parent As MAPI.Folder = m_PublicFolderRoot.RootFolder 
            For i As Integer = 1 To Folders.Length - 1 
                Parent = GetFolderByName(Folders(i), Parent) 
            Next 
            m_FaxRoot = Parent 
     
        End Sub 


    Hello,

          I am having a problem with the above function. I am getting a "Member not found" Exception. I am currently using VS2005 and CDO 1.21.


    Here are the exceptions that occur.

    Member not found. (Exception from HRESULT: 0x80020003 (DISP_E_MEMBERNOTFOUND))
       at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
       at MAPI.SessionClass.get_InfoStores()
       at CDOMessaging.ExchangeConnector.Logon(String profile, String RootFolder)
       at InFaxAlert.InFaxAlert.OnWakeup2(Object sender, ElapsedEventArgs e)

    Member not found. (Exception from HRESULT: 0x80020003 (DISP_E_MEMBERNOTFOUND))
       at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
       at MAPI.SessionClass.Logon(Object ProfileName, Object ProfilePassword, Object ShowDialog, Object NewSession, Object ParentWindow, Object NoMail, Object ProfileInfo)
       at CDOMessaging.ExchangeConnector.Logon(String profile, String RootFolder)
       at InFaxAlert.InFaxAlert.OnWakeup2(Object sender, ElapsedEventArgs e)


    May I know what might be causing these and how to resolve them? Please help.

    Thank you,
    JAN

    Newbie
    Friday, September 5, 2008 5:20 AM

Answers

  • CDO is making a late-bound call to some kind of MAPI COM object, trying to use the property getter for the "InfoStores" property.  And found out that the particular COM object doesn't have an InfoStores property.  There's something wrong with the COM component.  Most likely a versioning problem, a rather classic issue with COM.  You might have heard of DLL Hell before.

    Anyhoo, it's not a .NET problem. 
    Hans Passant.
    • Proposed as answer by curt at amotif Tuesday, September 9, 2008 12:38 AM
    • Marked as answer by Zhi-Xin Ye Tuesday, September 9, 2008 11:37 AM
    Friday, September 5, 2008 1:06 PM
    Moderator