How to run 2008R2 SSIS packages on SQL Server 2014 Standard environment

  • Dear all,

    In current, I have a .NET application which is executing 2008R2 SSIS packages and the application are running on win server 2008r2 (64bit). These packages were built in BIDS 2008. After that, I upgraded my database server from SQL2008R2 to SQL2014 Standard (running on Win server 2012R2) and deployed .NET app to new environment.

    An now, I'm encountering the issues with calling package from .NET application. The message error is ERROR: Could not load file or assembly "Microsoft.SqlServer.Dts.DTSRuntimeWrap.dll, Version=10.0.0.0, Culture=neutral, Public Key=..." or one of it's dependencies. An attempt was made to load program with an incorrect format.

    Step 1: create a .NET simple app to call package (SSIS 2008). I also add 2 .dll version (10.0.0.0) for reference

    Microsoft.SQLServer.DTSRuntimeWrap and Microsoft.SQLServer.ManagedDTS allocated in C:\Program Files (x86)\Microsoft SQL Server\100\SDK\Assemblies

    using Microsoft.SqlServer.Dts.Runtime;

    using Application = Microsoft.SqlServer.Dts.Runtime.Application;

    private void button1_Click(object sender, EventArgs e)

    {

    try

    {

    string pkgLocation = @".\Package.dtsx";

    Application app = new Application();

    Package pkg = app.LoadPackage(pkgLocation, null);

    DTSExecResult pkgResults = pkg.Execute();

    MessageBox.Show(pkgResults.ToString());

    }catch(Exception ex)

    {

    MessageBox.Show("ERROR: " + ex.Message);

    }

    }

    Step 2: deploy this app (included 2 .dll, the package) to new environment and execute it. The result is error message as above.

    In new environment, 2 .dll is version 12.0.2000.8 allocate in C:\Program Files (x86)\Microsoft SQL Server\120\SDK\Assemblies. And I guess that whenever the package is executed it also requires some functions of old .dll version 10.0.0.0 to execute their's components (Execute SQL Task, Task Script,...) but these .dll is not existed in new environment and it causes error.

    So, how can I resolve the issue except upgrading SSIS packages to 2014 or any suggestions?

    Many thanks,

  • Why do you not want to upgrade your packages? All you should need to do is open them in the version of SSDT that comes with SQL Server 2014 and save them. The only other alternative I can think of is to install SSIS 2008 R2 on a separate server and run your packages from there.

    John

  • John Mitchell-245523 (9/5/2014)


    Why do you not want to upgrade your packages? All you should need to do is open them in the version of SSDT that comes with SQL Server 2014 and save them. The only other alternative I can think of is to install SSIS 2008 R2 on a separate server and run your packages from there.

    John

    Actually, one of my clients wants to upgrade to 2014 and other clients are still working on 2008R2. The problem is here I'm using the same packages for all clients, if I upgrade package to 2014, I'm afraid of they will not work smoothly on old environment (2008R2).

    Thanks,

  • You're right - they won't. So upgrade your packages, but keep copies of the old ones. Run the upgraded ones on your new servers, and the old ones on your old servers.

    John

  • Is there any solution to ask my .NET application uses 2 included .dll instead of .dll in new server?

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply