我正在尝试使用VSS升级工具运行增量迁移。我正在通过命令提示符进行迁移。
过去,我已成功地将所有项目和历史记录迁移到TFS,并且还检查了增量迁移。但是,现在我已经第三次这样做了,我得到了一个错误。
据我所知,没有任何改变。我如何进行调试的任何一般性提示都将有所帮助。
运行vssupgrade migrate settings.xml
命令时收到的错误。
ERROR: Retrieving the COM class factory for component with CLSID {783CD4E4-9D54-11CF-B8EE-00608CC9A71F} failed due to the following error: 8007007e The specified module could not be found. (Exception from HRESULT: 0x8007007E)
查看由分析工具创建的日志文件,错误看起来像这样:
[VSS, Error, 3, 2019/03/20 11:23:56.676] Exception: System.IO.FileNotFoundException
Message: Retrieving the COM class factory for component with CLSID {783CD4E4-9D54-11CF-B8EE-00608CC9A71F} failed due to the following error: 8007007e The specified module could not be found. (Exception from HRESULT: 0x8007007E).
Stack Trace: at Microsoft.TeamFoundation.Admin.VssMigration.VssConverter.OpenVss(String sourceRepository, String passwd)
at Microsoft.TeamFoundation.Admin.VssMigration.VssConverter.Initialize(ExecutionMode executionMode, MigrationSession migrationSession)
at Microsoft.TeamFoundation.Admin.VssMigration.Api.MigrationSession.PrepareForProcessing(ExecutionMode executionMode, Boolean requireUserMapFile)
at Microsoft.TeamFoundation.Admin.VssMigration.Api.MigrationSession.Migrate()
at Microsoft.TeamFoundation.Admin.VssMigration.CommandLine.VSSUpgradeCommand.MainThread()
Help Link:
BaseExceptionMessage: Retrieving the COM class factory for component with CLSID {783CD4E4-9D54-11CF-B8EE-00608CC9A71F} failed due to the following error: 8007007e The specified module could not be found. (Exception from HRESULT: 0x8007007E).
答案 0 :(得分:1)
COM interop fails when the convertor runs under x64,可能有用的技巧是从强制的32位命令提示符启动转换,您可以通过以下方式开始:
c:\windows\SysWOW64\cmd.exe
这应该为您提供强制的32位上下文:
另一种替代方法是随时更改corflags
to force the convertor to x86:
corflags /32bit+ vssupgrade.exe
答案 1 :(得分:1)
我的解决方案是为Team Foundation Server修复Visual Source Safe Upgrade Tool。我从Microsoft's website
重新下载了应用程序链接然后运行并修复该应用程序。那解决了我的问题。