运行 在 SQL Server Data Tools 中为 Visual Studio 2013 从 Visual Studio 2015 开发的 SSIS 包

Running an SSIS package developed in SQL Server Data Tools for Visual Studio 2013 from Visual Studio 2015

SSIS 包在 VS 2013 中执行良好,但当我尝试从 VS 2015 调用 .dtsx 时,出现此错误:

"To run a SSIS package outside of SQL server data tools you must install Script Task of Integration Services or higher."

这是我在 VS 2015 中的代码:

我的使用语句...

using System.Windows.Forms; 
using Microsoft.SqlServer.Dts.Runtime;

我的代码...

    private void button1_Click(object sender, EventArgs e)
    { 
        private string pkSSIS = @"C:\Work\Pathname_Ect";

        string error = "";
        label1.Text = "The package is executing...";
        Package pkg = null;
        Microsoft.SqlServer.Dts.Runtime.Application app;
        DTSExecResult result;
        try
        {
            app = new Microsoft.SqlServer.Dts.Runtime.Application();
            pkg = app.LoadPackage(pkSSIS, null);
            result = pkg.Execute();
            if (result == Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure)
            {
                foreach (Microsoft.SqlServer.Dts.Runtime.DtsError dt_error in pkg.Errors)
                {
                    error += dt_error.Description.ToString();
                }
                label1.Text = "Error Not Exception: " + error;
            }
            if (result == Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success)
            {
                label1.Text = "The package executed successfully";
            }
        }
        catch (Exception ex)
        {
            label1.Text = "Exception: " + ex.Message;
        }
    }

配置文件...

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <startup useLegacyV2RuntimeActivationPolicy="true">
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
    </startup>
</configuration>

我正在学习教程 (https://technologyinsightscoffee.wordpress.com/2015/10/25/how-to-call-a-ssis-package-from-net-application/),我发现了一些与此错误相关的帖子,但没有任何内容可以帮助我解决问题。知道我做错了什么吗?

我安装了 SSDT 和 SSDT-BI,但当我尝试从任何 Visual Studio 形式(包括 VS 2013)执行 SSIS 包时仍然收到此消息。我最终卸载并重新安装了我的 SQL Server 2014、SSDT 和 SSDT-BI。现在错误消失了,我可以从 VS 2013 和 VS 2015 执行 SSIS 包。