Error: TF80012 with side-by-side installation of VSTS 2005 and 2008

转载自 http://www.michaelazocar.com/blog/?p=290
客户端安装了 VS2005+Team Explorer 2005 后又再安装 VS2008+Team Explorer 2008,导致在 TFS 中打开 Excel 或者 Project 文件时出错
错误信息如下:

"TF80012: The document cannot be opened because there is a problem with the installation of Visual Studio 2005 Team Foundation Office integration components. Please see the Team Foundation Installation Guide for more information."

微软KB: http://support.microsoft.com/kb/947865

在VS中,只能使用1个版本的 TFS Client, 哪个是最后安装的,哪个的Office集成就会被关联注册到系统中
You can only use one version of Team Explorer to work with Microsoft Excel and Project. The latest version you installed is the version that will open Microsoft Excel and Project correctly.

要用回 2005,通常做法就是修复安装 Team Explorer 2005, 不过 Mike 给了我们另外一个简单的方法:

I have a 2003 server that I use to demo VSTS. I initially installed the 2008 TFS and Team Suite RC (which was only available on a limited scale so don't ask me where you can get it). Later I installed 2005 Team Suite with Team Explorer so that I could demo that as well. When I was in a Work Item query window and I highlighted multiple Work Items and then opened them in Excel or Project I received the following error:

TF80012: The document cannot be opened because there is a problem with the installation of the Microsoft Visual Studio 2008 Team Foundation Office integration components. Please see the Team Foundation Installation Guide for more information.

I learned from Mareen Philip from Microsoft that there is an issue with running the two side-by-side that will not be fixed for the RTM later this month (but they are working on a patch for it). The following information will be included in a Read Me that will ship with the RTM:

You can only use one version of Team Explorer to work with Microsoft Excel and Project. The latest version you installed is the version that will open Microsoft Excel and Project correctly. You can continue using that version, or you can switch to the other version by using one of the following procedures.

To register the Visual Studio 2008 version of Team Explorer to use the Microsoft Excel and Project add-ins

  1. At the command prompt, change directories to:

    Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies

  2. Unregister the 2005 version of the add-in by running the following command:

    regsrv32 /u TFSOfficeAdd-in.dll

  1. At the command prompt, change directories to:

    Program Files\Microsoft Visual Studio 9\Common7\IDE\PrivateAssemblies\

  2. Register the 2008 version of the add-in by running the following command:

    regsrv32 TFSOfficeAdd-in.dll

To register the Visual Studio 2005 version of Team Explorer to use the Microsoft Excel and Project add-ins

  1. At the command prompt, change directories to:

    Program Files\Microsoft Visual Studio 9\Common7\IDE\PrivateAssemblies

  2. Unregister the 2008 version of the add-in by running the following command:

    regsrv32 /u TFSOfficeAdd-in.dll

  1. At the command prompt, change directories to:

    Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\

  2. Register the 2005 version of the add-in by running the following command:

    regsrv32 TFSOfficeAdd-in.dll

You may also receive this error after you uninstall one of the versions of Team Explorer. To fix that scenario do the following:

Repair the installation of Team Explorer by using the following procedure.

  1. Open the Control Panel.
  2. If you are using Microsoft Visual Studio 2008 Team Explorer select this entry in the control panel. Otherwise select Microsoft Visual Studio 2005 Team Explorer.
  3. Click Change/Remove.
  4. In the Setup dialog box, select Repair or Reinstall.
  5. Click Next.
  6. In the Ready to Repair page, click Repair.

Leave a comment

Recent Entries

  • How to remove a VMHost from SCVMM 2008 R2 forcefully

    这几天碰到个问题,有个服务器原来安装的是 2008 Server Core系统,上面跑 Hyper-V,已经将其导入 SCVMM 2008 R2 来管理。最近实在是嫌 Server Core 管理太不方便,于是想把系统换成带图形界面的,也没在 SCVMM 里面把主机删除,直接就重装了,IP和计算机名什么的都没变,结果问题来了,再打开 SCVMM 的控制台,发现这台主机联系不上(当然,因为重装的没有了 Agent),就想删掉再重加,结果删除过程报错:Error (801) VMM cannot find ISO object . Recommended...

  • Outlook Mobile Update

    现在你可通过新的Microsoft Office Outlook Mobile更新程序和 Microsoft Exchange Server 2010 来保证你手上的信息是最有价值的。 这次的 Outlook Mobile 更新仅针对 Windows Mobile 6.1 的手机。 当你的手机连接到 Exchange Server 2010 时,如果有适合的更新你会收到自动的提示。 如果你的手机的系统是 Windows Mobile...

  • 哥们,我的更新汇总在哪呢?

    我刚刚在我全新的 Exchange 2010 服务器上安装了更新汇总1 - RU1, 然后运行 Get-Exchangeserver -Identity MyExchangeServer (译者: 可以用 Get-Exchangeserver -Identity MyExchangeServer | fl ExchangeVersion, AdminDisplayVersion)得到以下关于AdminsDisplayVersion 和 ExchangeVersion 的版本信息: 嗯, 这看上去有点眼熟(译者:...

  • Exchange 2010 Update Rollup 2

    Today Microsoft released Update Rollup 2 for Microsoft Exchange Server 2010. RU2 comes 3 months after the release of RU1. The list of included fixes...

  • HMC 4.0 Update Rollup 3 has been updated

    Description of Update Rollup 3 for Hosted Messaging and Collaboration 4.0http://support.microsoft.com/kb/979702/en-usMicrosoft released an update rollup that is dated December 2009. This update fixes issues that...

Close