Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6476871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:52:43+00:00 2026-05-25T06:52:43+00:00

After following multiple communicatorAPI guides I seem to be stuck. In general it boils

  • 0

After following multiple communicatorAPI guides I seem to be stuck. In general it boils down to the inability to cast an messenger object as an interface. Whether it’s the messenger obj or the messengerclass obj classes.

Upon attempting to cast the object, I recieve the following exception.

Unable to cast COM object of type ‘CommunicatorAPI.MessengerClass’ to interface type ‘CommunicatorAPI.IMessengerAdvanced’. This operation failed because the QueryInterface call on the COM component for the interface with IID ‘{DA0635E8-09AF-480C-88B2-AA9FA1D9DB27}’ failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).

This is an example of the code I am trying to run, stripped down to just what throws the exception.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CommunicatorAPI;

namespace OCA
{
    class OCA_main
    {
        static void Main(string[] args)
        {
            OCA m = new OCA();
            m.subscribe();
            m.startconvo("emailaddress");

        }
    }

    class OCA
    {
        MessengerClass msgr = new MessengerClass();
       // Messenger msgr = new Messenger(); //Tried this too... :(

        IMessengerAdvanced msgrAdv;


        public void subscribe()
        {
            msgr.OnIMWindowCreated += new DMessengerEvents_OnIMWindowCreatedEventHandler(msgr_OnIMWindowCreated);
        }

        public void unsubscribe()
        {
            msgr.OnIMWindowCreated -=new DMessengerEvents_OnIMWindowCreatedEventHandler(msgr_OnIMWindowCreated);
        }

        void msgr_OnIMWindowCreated(object pIMWindow)
        {
            try
            {

                IMessengerAdvanced msgrAdv = (IMessengerAdvanced)msgr;
            }
            catch (Exception ex)
            {
                Console.WriteLine("{0}", ex.Message);
            }

            throw new NotImplementedException();
            //... stuff
        }

        public void startconvo(string users)
        {
            try
            {

                IMessengerAdvanced msgrAdv = (IMessengerAdvanced)msgr;
            }
            catch (Exception ex)
            {
                Console.WriteLine("{0}", ex.Message);
            }
        }

    }
}

I have also tried the above code using “Messenger msgr = new Messenger();” With no luck.

Unable to cast COM object of type ‘CommunicatorAPI.MessengerClass’ to interface type ‘CommunicatorAPI.IMessengerAdvanced’. This operation failed because the QueryInterface call on the COM component for the interface with IID ‘{DA0635E8-09AF-480C-88B2-AA9FA1D9DB27}’ failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).

I am horribly new to c#, and I have come to a stand still with working with the communicatorAPI. Btw, the references are added. The Embed option is false, and I am stumped. Wonder if anyone has figured out a solution.

Also, I have instantiated the interface with something to effect of: “msgAdv = msgr as IMessengerWndAdvanced;”
with no luck. The variable msgAdv is null every time. I have tried the different examples from M$ and to no avail. Moreover, I have read through the “OCSDK.chm” help file that came with the SDK. There isn’t a mention of the “Exception from HRESULT: 0x80004002 (E_NOINTERFACE)” error.

Help?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T06:52:44+00:00Added an answer on May 25, 2026 at 6:52 am

    In all examples I could find it was Messenger msgr = new Messenger(); BUT even more important the cast to IMessengerAdvanced only occurs AFTER msgr.AutoSign() is called successfully… which is a difference to your code.

    Since IMessengerAdvanced is just some addition to IMessenger3 and the availibility of it is something depending on server-side configuration it only could become available at runtime AFTER you are signed in.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After a while and requesting multiple pages I am getting the following error. How
After following successfully the method to set multiple LAUNCHER activities (as described in https://stackoverflow.com/a/3270783/978329
After following the advice in this question successfully, I added a couple additional lines
After following the great advice given in a thread about service beans I have
What are the consequences, (if any) not calling the conn.logoff() method after the following
After running the following SQL statements, you will see that, MySQL has automatically created
I am getting Incorrect syntax near the keyword 'select' after executing the following code.
Similar to this question , after running the following code the browser dialog does
I am trying to figure out how to do the following: 1) After a
The following output appears after running some rake tasks: Loaded suite /usr/bin/rake Started Finished

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.