ssis - 无法将 'System._COMObject' 类型的 COM 对象转换为接口(interface)类型

标签 ssis

我有 3 个 SSIS 包。 3 个 SSIS 包中有两个可以完美运行,第三个。这是第二个的副本,除了更改连接字符串不断抛出问题:

Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSObject100'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{D4E5AF42-7999-473C-8082-6EFC676953C4}' failed due to the following error: The application called an interface that was marshalled for a different thread. (Exception from HRESULT: 0x8001010E (RPC_E_WRONG_THREAD)).


自从我将包复制过来以来,它一直在这样做。我遵循了在线指南并运行了 regsvr32 dts.dll,这表示它是成功的,但没有任何改变。我仍然收到错误,这是为什么?
SSIS 包似乎可以验证我的容器,与其他两个相比,它需要很长时间才能完成,然后在验证中失败并抛出上述错误消息。

最佳答案

不能只复制包,还需要改名生成新的 GUID (标识 COM 对象)用于此包。查看this MSDN 文章了解更多信息。

关于ssis - 无法将 'System._COMObject' 类型的 COM 对象转换为接口(interface)类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35872818/

相关文章:

ssis想要基于平面文件更新sql表

sql-server - 检查sql语句是否返回ssis中的空记录集

c# - 使用 Interop Excel 时,SSIS 脚本任务断点不起作用

sql-server - SSIS - 包在 VS 中工作,失败并显示 "Failed to compiled scripts contained in the package"。包中没有脚本对象

ssis - 如何修复 SSIS 中的 "[OData Source [56]] Error: Cannot acquire a managed connection from the run-time connection manager."错误?

SQL/SSIS DataWareHouse 事实表加载,最佳实践?

SSIS - 动态创建三个日志文件

ssis - 安装到 SSIS 的 GAC 时,WinSCP .NET 程序集抛出 "The winscp.exe executable was not found at location of the assembly"

sql-server - 比较从 Oracle 到 SQL Server 的数百万条记录

sql-server - SSIS Foreach 循环容器建议