SSIS中的Powershell脚本 - 无法加载程序集

时间:2018-02-26 18:49:17

标签: powershell ssis

我需要使用Process Task在SSIS包中运行PowerShell脚本:

try {
    Import-Module X -ErrorAction Stop
}
catch {
    Write-Output ($_.Exception.ItemName + " - " + $_.Exception.Message)
    exit 99
}

遇到以下错误:

  

无法加载文件或程序集' X.dll'或其中一个依赖项。一个   尝试加载格式不正确的程序。

完全相同的脚本直接在Powershell上运行。

0 个答案:

没有答案
相关问题