无法将“System._COMObject”类型的 COM 对象转换为接口类型

And*_*urn 3 ssis

我有 3 个 SSIS 包。三个 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)).
Run Code Online (Sandbox Code Playgroud)

自从我复制了这个包以来,它一直在这样做。我已经按照在线指南运行了 regsvr32 dts.dll,这表明它成功了,但没有任何改变。我仍然收到错误,这是为什么?

SSIS 包似乎验证了我的容器,与其他两个相比,这样做需要很长时间,然后在验证中失败并抛出上述错误消息。

And*_*zov 5

您不能只复制包,还需要为此包更改名称并生成新的GUID(标识 COM 对象)。查看MSDN 文章以获取更多信息。