简体   繁体   English

在错误处理中执行 package 任务给出错误

[英]Execute package task in errorhandling gives error

In my OnError eventhandler I try to execute a (child) package but I get this error:在我的 OnError 事件处理程序中,我尝试执行(子) package 但我收到此错误:

Error: Error 0x80040154. Failed to create an instance of empty child package. The Distributed Component Object Model (DCOM) configuration or the installation of SQL Server Integration Services, may be corrupted on your machine.

followed by Class not registered其次是Class not registered

This happens even if it is an empty package I call.即使我调用的是空的 package,也会发生这种情况。 Is it not possible to execute an package in an EventHandler?不能在 EventHandler 中执行 package 吗? What else could lead to this error?还有什么可能导致此错误?

Packages are set as ExecuteOutOfProcess包设置为ExecuteOutOfProcess

Using Visual Studio 2019 with microsoft integration services installed.使用安装了 Microsoft 集成服务的 Visual Studio 2019。

Edit: Setting ExecuteOutOfProcess to FALSE made the empty package run.编辑:将 ExecuteOutOfProcess 设置为 FALSE 使空的 package 运行。 Another package with 3rdparty-components however failed.另一个带有 3rdparty 组件的 package 但是失败了。 But that is cleaclry caused by that 3party component.但这是由 3party 组件造成的清晰。 Investigating调查

Reinstalling the Integration Sevrices Add-on solved the problem重新安装集成服务插件解决了这个问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM