客户端安装了 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
-
At the command prompt, change directories to:
Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies
-
Unregister the 2005 version of the add-in by running the following command:
regsrv32 /u TFSOfficeAdd-in.dll
-
At the command prompt, change directories to:
Program Files\Microsoft Visual Studio 9\Common7\IDE\PrivateAssemblies\
-
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
-
At the command prompt, change directories to:
Program Files\Microsoft Visual Studio 9\Common7\IDE\PrivateAssemblies
-
Unregister the 2008 version of the add-in by running the following command:
regsrv32 /u TFSOfficeAdd-in.dll
-
At the command prompt, change directories to:
Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\
-
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.
- Open the Control Panel.
- 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.
- Click Change/Remove.
- In the Setup dialog box, select Repair or Reinstall.
- Click Next.
- In the Ready to Repair page, click Repair.

Leave a comment