2

IIS7を実行しているWindowsServerStandardでセットアップされた新しいボックスに概念実証を構築しています。

私が行う必要のあるタスクは、ログインしたユーザーを取得し、Office Communicator 2007を使用して、同じマシンの交換ボックスで他のユーザーのプレゼンス(およびプレゼンスの種類、オンライン、オフライン、不在、ビジーなど)を確認することです。

コードは非常に単純なようです。

public string GetStatus(string username)
    {
        try
        {
            if(this.CurrentCommunicator == null)
                this.CurrentCommunicator = new CommunicatorAPI.MessengerClass();

            this.CurrentCommunicator.Signin(0, "********", "*****");

            if (CurrentCommunicator != null)
            {
                foreach (IMessengerContact contact in CurrentCommunicator.MyContacts as IMessengerContacts)
                {
                    if (!contact.IsSelf)
                        if (contact.SigninName.Contains(username))
                        {
                            MISTATUS status = contact.Status;
                            return GetStatusString(status);
                        }
                }
            }
        }
        catch (Exception ex)
        {
            return ex.Message;
        }
        return "Unknown";
    }

正しいu/pでOfficeCommunicator2007にログインしているので、OCSがインスタンス化されますが、コードが連絡先をループしようとすると、次のようになります。

foreach (IMessengerContact contact in CurrentCommunicator.MyContacts as IMessengerContacts)

このエラーがスローされます:

CLSID {8885370D-B33E-44B7-875D-28E403CF9270}を持つコンポーネントのCOMクラスファクトリの取得は、次のエラーのために失敗しました:80070005。

Chris Croweのブログは前進する方法を提供しているように見えましたが、「Office Communicator Messenger Class」の起動とアクティベーションのアクセス許可を変更して、「Network Service」にローカルの起動アクティベーション権限を付与した後、スローされたCOMエラーに変更はありませんでした。

また、「Everyone」の起動とアクティブ化のアクセス許可を変更せずに付与してみました。


たくさんのOCSの記事を読みましたが、この問題を解決できないようです。もっと髪の毛の塊を締める前に助けてください。

Office Communicatorにログインするための独自のC#プログラムを作成するにはどうすればよいですか http://www.mombu.com/microsoft/live-communications-server-developer/t-how-i-can-write-my-own-c-program -for-login-in-office-comunicator-927275.html

OfficeCommunicatorSDKを使用してプレゼンスを取得する方法 http://blogs.msdn.com/b/cmayo/archive/2009/09/21/how-to-get-presence-using-office-communicator-sdk.aspx

2分でOfficeCommunicatorAutomation API http://blogs.msdn.com/b/cmayo/archive/2009/01/08/the-office-communicator-automation-api-in-2-min.aspx

Office CommunicatorAutomationAPIの使用 http://blogs.msdn.com/b/midunn/archive/2008/03/09/using-the-communicator-automation-api.aspx

OfficeCommunicatorでカスタム連絡先リストを作成する http://msdn.microsoft.com/en-us/library/bb758709(v=office.12).aspx

Office Communicatorのプレゼンスステータスはどのように機能しますか? Office Communicatorのプレゼンスステータスはどのように機能しますか?

ユーザープレゼンスの 検出ユーザープレゼンスの検出

OWA2010フォーム認証の構成情報 http://www.stone-ware.com/cloud/support/3rdPartyDetails.jsp?id=216

Office CommunicatorAutomationAPIの使用を開始する http://msdn.microsoft.com/en-us/library/bb758820(office.12).aspx

.NETFrameworkアプリケーション用のOfficeCommunicator2007開発環境 http://msdn.microsoft.com/en-us/library/bb787231(v=office.12).aspx

Office Communications Server 2007サービスアカウントのパスワードを変更すると、エラーコード80070005のイベントID56013がイベントビューアに記録されます http://support.microsoft.com/kb/953112/en-us

「起動とアクティブ化」のアクセス許可を変更してOfficeCOM80070005エラーを修正する http://blog.crowe.co.nz/archive/2006/03/02/589.aspx

Communicatorにサインインする(Office Communicator 2007) http://office.microsoft.com/en-gb/communicator-help/sign-in-to-communicator-HA010206469.aspx?redir=0

OCSAPIへの自動ログインの例 http://social.msdn.microsoft.com/Forums/en-US/ucclientsdk/thread/bc0ba921-7cc5-4098-b137-ffb85d667e58

Office2007-インターフェイスメンバーの呼び出し http://msdn.microsoft.com/en-us/library/bb758725(v=office.12).aspx

4

0 に答える 0