"COM オブジェクトをキャストできません...Team エクスプローラー 2008 から Excel にエクスポートする場合

アクション

Team エクスプローラー 2008 を使用して、メニュー項目 "Microsoft Excel で選択を開く" または "Microsoft Excel で開く" を使用して、Microsoft Excel で作業項目または作業項目のコレクションを開こうとします。

結果

次のエラー メッセージが表示されます。

Unable to cast COM object of type 'Microsoft.Office.Interop.Excel.ApplicationClass' to interface type 'Microsoft.Office.Interop.Excel._Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{000208D5-0000-0000-C000-000000000046}' failed due to the following error: The interface is unknown. (Exception from HRESULT: 0x800706B5).

解決方法

Visual Studio 2008 環境をリセットすることで、このエラー メッセージを解決できる場合があります。

  1. コマンド プロンプトを開き、CD を %programfiles%\Microsoft Visual Studio 9\Common7\IDE に開きます
    (パスは、Visual Studio 2008 が既定の場所にインストールされていることを前提としています。それに応じて調整します)。

  2. 次のコマンドを実行します。

    /ResetUserData のdevenv.exe