none
How to implement an 3rd party IM provider for outlook 2010 RRS feed

  • Question

  • Reference link : Integrating IM applications with Office (https://msdn.microsoft.com/en-us/library/office/jj900715.aspx?f=255&MSPPError=-2147217396). This is for office 2013 but it is also applicable for office 2010 as well (mentioned in article).

    I am trying to write 3rd party IM Client application with outlook 2010. I'm using VS2010 & Lync SDK 2010 (Microsoft.Office.Uc (version 4.0.7577.5)) with .NET Framework(3.5). But outlook is giving below errors. I also checked many other posts like "http://msdev.developer-works.com/article/29718323/How+to+implement+an+IM+provide+for+outlook"

    I have implemented almost all interfaces but reason of the problem is unknown to me.

    Outlook Errors:

    CMsoIMProviderFactory::HrEnsureDefaultIMAppRegKeys Succeeded opening reg key (HKCU:SOFTWARE\IM Providers\)
    CMsoIMProviderFactory::HrEnsureDefaultIMAppRegKeys Succeeded querying reg key (HKCU:SOFTWARE\IM Providers\:DefaultIMApp:CSExeCOMServer)
    CMsoIMProviderFactory::HrEnsureDefaultIMProcessRegKey Succeeded opening reg key (HKCU:SOFTWARE\IM Providers\CSExeCOMServer)
    CMsoIMProviderFactory::HrEnsureDefaultIMProcessRegKey Succeeded opening reg key (HKLM:SOFTWARE\IM Providers\CSExeCOMServer)
    CMsoIMProviderFactory::WhichMessengerInProcessList Using (CSExeCOMServer) process name for search
    <CMsoIMNAbstractionLayer::HrPostJob> <job:IMsoPresenceJobProviderConnect>
    <CMsoIMNALAsyncNotificationHandler::HrInitialize>
    </CMsoIMNALAsyncNotificationHandler::HrInitialize>
    <CMsoIMNALAsyncNotificationHandler::DwThreadProc>
    <CMsoIMNAbstractionLayer::HrOnJob> <job:IMsoPresenceJobInitialize>
    <CMsoIMNAbstractionLayer::HrInitializeInternal>
    <CMsoIMNAbstractionLayer::HrPostJob> <job:IMsoPresenceJobProviderConnect>
    </CMsoIMNAbstractionLayer::HrPostJob>  <job:IMsoPresenceJobProviderConnect>
    </CMsoIMNAbstractionLayer::HrInitializeInternal>
    </CMsoIMNAbstractionLayer::HrPostJob>  <job:IMsoPresenceJobProviderConnect>
    </CMsoIMNAbstractionLayer::HrOnJob>  <job:IMsoPresenceJobInitialize>
    <CMsoIMNAbstractionLayer::HrPostJob> <job:IMsoPresenceJobProviderConnect>
    <CMsoIMNAbstractionLayer::HrOnJob> <job:IMsoPresenceJobProviderConnect>
    </CMsoIMNAbstractionLayer::HrPostJob>  <job:IMsoPresenceJobProviderConnect>
    <CMsoIMNAbstractionLayer::HrEnsureIMApp>
    <CMsoIMNAbstractionLayer::HrPostJob> <job:IMsoPresenceJobProviderConnect>
    <CMsoIMProviderFactory::HrGetAvailableProvider>
    </CMsoIMNAbstractionLayer::HrPostJob>  <job:IMsoPresenceJobProviderConnect>
    CMsoIMProviderFactory::WhichMessengerInProcessList Using (CSExeCOMServer) process name for search
    <CMsoProviderOCom::HrInitialize>
    CMsoProviderOCom::HrInitialize !failed!  Line: 649  hr = 0x80004002
    </CMsoProviderOCom::HrInitialize !failed! hr = 0x80004002>
    CMsoIMProviderFactory::HrGetAvailableProvider !failed!  Line: 432  hr = 0x80004002
    !!!Provider Initialization Failed!!!
    <CMsoProviderOCom::HrGetLocalCapabilities>
    OCOMProvider Local capabilities = 0
    </CMsoProviderOCom::HrGetLocalCapabilities>
    </CMsoIMProviderFactory::HrGetAvailableProvider !failed! hr = 0x80004002>
    CMsoIMNAbstractionLayer::HrEnsureIMApp !failed!  Line: 2239  hr = 0x80004002
    </CMsoIMNAbstractionLayer::HrEnsureIMApp !failed! hr = 0x80004002>
    CMsoPresenceJobProviderConnect::HrExecute !failed!  Line: 122  hr = 0x80004002
    CMsoIMNAbstractionLayer::HrOnJob !failed!  Line: 1807  hr = 0x80004002
    </CMsoIMNAbstractionLayer::HrOnJob !failed!  <job:IMsoPresenceJobProviderConnect> hr = 0x80004002>
    <CMsoIMNAbstractionLayer::HrOnJob> <job:IMsoPresenceJobProviderConnect>
    <CMsoIMNAbstractionLayer::HrEnsureIMApp>
    <CMsoIMProviderFactory::HrGetAvailableProvider>
    CMsoIMProviderFactory::HrGetAvailableProvider !failed!  Line: 289  hr = 0x80004005
    !!!Provider Initialization Failed!!!
    </CMsoIMProviderFactory::HrGetAvailableProvider !failed! hr = 0x80004005>
    CMsoIMNAbstractionLayer::HrEnsureIMApp !failed!  Line: 2239  hr = 0x80004005
    </CMsoIMNAbstractionLayer::HrEnsureIMApp !failed! hr = 0x80004005>
    CMsoPresenceJobProviderConnect::HrExecute !failed!  Line: 122  hr = 0x80004005
    CMsoIMNAbstractionLayer::HrOnJob !failed!  Line: 1807  hr = 0x80004005
    </CMsoIMNAbstractionLayer::HrOnJob !failed!  <job:IMsoPresenceJobProviderConnect> hr = 0x80004005>
    <CMsoIMNAbstractionLayer::HrOnJob> <job:IMsoPresenceJobProviderConnect>
    <CMsoIMNAbstractionLayer::HrEnsureIMApp>
    <CMsoIMProviderFactory::HrGetAvailableProvider>
    CMsoIMProviderFactory::HrGetAvailableProvider !failed!  Line: 289  hr = 0x80004005
    !!!Provider Initialization Failed!!!
    </CMsoIMProviderFactory::HrGetAvailableProvider !failed! hr = 0x80004005>
    CMsoIMNAbstractionLayer::HrEnsureIMApp !failed!  Line: 2239  hr = 0x80004005
    </CMsoIMNAbstractionLayer::HrEnsureIMApp !failed! hr = 0x80004005>
    CMsoPresenceJobProviderConnect::HrExecute !failed!  Line: 122  hr = 0x80004005
    CMsoIMNAbstractionLayer::HrOnJob !failed!  Line: 1807  hr = 0x80004005
    </CMsoIMNAbstractionLayer::HrOnJob !failed!  <job:IMsoPresenceJobProviderConnect> hr = 0x80004005>


    My IM application is getting below calls from outlook 2010.

    GetAuthenticationInfo() GetInterface()

    Please help me.

    Wednesday, January 6, 2016 7:33 AM

Answers

  • Error 0x80004002 has been fixed but getting below errors. 

    Reason/solution behind of Error 0x80004002: One com class was not registered with GUID. So created 

    the GUID & resolve the issue of Error 0x80004002 

    New Errors:
    CMsoIMProviderFactory::WhichMessengerInProcessList Using (CSExeCOMServer) process name for search
    <CMsoProviderOCom::HrInitialize>

    <CMsoProviderOCom::HrEnsureIMCallback>
    CMsoProviderOCom::HrEnsureIMCallback !failed!  Line: 741  hr = 0x80040200
    </CMsoProviderOCom::HrEnsureIMCallback !failed! hr = 0x80040200>
    CMsoProviderOCom::HrInitialize !failed!  Line: 653  hr = 0x80040200
    </CMsoProviderOCom::HrInitialize !failed! hr = 0x80040200>
    CMsoIMProviderFactory::HrGetAvailableProvider !failed!  Line: 432  hr = 0x80040200
    !!!Provider Initialization Failed!!!
    <CMsoProviderOCom::HrGetLocalCapabilities>
    OCOMProvider Local capabilities = 0
    </CMsoProviderOCom::HrGetLocalCapabilities>
    </CMsoIMProviderFactory::HrGetAvailableProvider !failed! hr = 0x80040200>
    CMsoIMNAbstractionLayer::HrEnsureIMApp !failed!  Line: 2239  hr = 0x80040200
    </CMsoIMNAbstractionLayer::HrEnsureIMApp !failed! hr = 0x80040200>
    CMsoPresenceJobProviderConnect::HrExecute !failed!  Line: 122  hr = 0x80040200
    CMsoIMNAbstractionLayer::HrOnJob !failed!  Line: 1807  hr = 0x80040200
    </CMsoIMNAbstractionLayer::HrOnJob !failed!  <job:IMsoPresenceJobProviderConnect> hr = 0x80040200>
    <CMsoIMNAbstractionLayer::HrOnJob> <job:IMsoPresenceJobProviderConnect>
    <CMsoIMNAbstractionLayer::HrEnsureIMApp>
    <CMsoIMProviderFactory::HrGetAvailableProvider>
    CMsoIMProviderFactory::HrGetAvailableProvider !failed!  Line: 289  hr = 0x80004005


    Wednesday, January 6, 2016 11:03 AM

All replies

  • Error 0x80004002 has been fixed but getting below errors. 

    Reason/solution behind of Error 0x80004002: One com class was not registered with GUID. So created 

    the GUID & resolve the issue of Error 0x80004002 

    New Errors:
    CMsoIMProviderFactory::WhichMessengerInProcessList Using (CSExeCOMServer) process name for search
    <CMsoProviderOCom::HrInitialize>

    <CMsoProviderOCom::HrEnsureIMCallback>
    CMsoProviderOCom::HrEnsureIMCallback !failed!  Line: 741  hr = 0x80040200
    </CMsoProviderOCom::HrEnsureIMCallback !failed! hr = 0x80040200>
    CMsoProviderOCom::HrInitialize !failed!  Line: 653  hr = 0x80040200
    </CMsoProviderOCom::HrInitialize !failed! hr = 0x80040200>
    CMsoIMProviderFactory::HrGetAvailableProvider !failed!  Line: 432  hr = 0x80040200
    !!!Provider Initialization Failed!!!
    <CMsoProviderOCom::HrGetLocalCapabilities>
    OCOMProvider Local capabilities = 0
    </CMsoProviderOCom::HrGetLocalCapabilities>
    </CMsoIMProviderFactory::HrGetAvailableProvider !failed! hr = 0x80040200>
    CMsoIMNAbstractionLayer::HrEnsureIMApp !failed!  Line: 2239  hr = 0x80040200
    </CMsoIMNAbstractionLayer::HrEnsureIMApp !failed! hr = 0x80040200>
    CMsoPresenceJobProviderConnect::HrExecute !failed!  Line: 122  hr = 0x80040200
    CMsoIMNAbstractionLayer::HrOnJob !failed!  Line: 1807  hr = 0x80040200
    </CMsoIMNAbstractionLayer::HrOnJob !failed!  <job:IMsoPresenceJobProviderConnect> hr = 0x80040200>
    <CMsoIMNAbstractionLayer::HrOnJob> <job:IMsoPresenceJobProviderConnect>
    <CMsoIMNAbstractionLayer::HrEnsureIMApp>
    <CMsoIMProviderFactory::HrGetAvailableProvider>
    CMsoIMProviderFactory::HrGetAvailableProvider !failed!  Line: 289  hr = 0x80004005


    Wednesday, January 6, 2016 11:03 AM
  • Hi KrishPS,

    I found you have posted a similar thread before. Are they the same issue?
    #Integrating IM applications with outlook 2010/2013
    https://social.msdn.microsoft.com/Forums/office/en-US/155d71a8-2e7c-486d-9bca-c62952b3d5c2/integrating-im-applications-with-outlook-20102013?forum=outlookdev
    Have you resolved above issue? If you have, it would be appreciated if you could share us your solution in the above thread.

    >>Error 0x80004002 has been fixed but getting below errors
    It would be helpful if you could share us how you resolved Error 0x80004002, and details information about how you got new error.

    Best Regards,

    Edward


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    Thursday, January 7, 2016 1:54 AM
  • Hi Edword,

    I have updated both posts and provided my resolution.

    Please help me to solve the problem that I have mention above reply about error "CMsoProviderOCom::HrEnsureIMCallback !failed!  Line: 741  hr = 0x80040200".

    Thanks

    Krishna

    Thursday, January 7, 2016 8:21 AM
  • Hi KrishPS,

    Thanks for sharing. I suggest you mark your reply as answer and then others who run into the same issue would find the solution easily.

    >> CMsoProviderOCom::HrEnsureIMCallback !failed!  Line: 741  hr = 0x80040200

    For this new issue, I suggest you post a new thread for this, and more community members could jump in to help you.

    To be honesty, I am not familiar with IM provider, I will involve some senior engineers into this new issue.

    Sorry for any inconvenience.

    Best Regards,

    Edward


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    Friday, January 8, 2016 6:40 AM