Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Can't find package Microsoft.SqlServer.Dts.Runtime for programmatic SSIS execution

Posted on 2011-03-16
1
Medium Priority
?
3,985 Views
Last Modified: 2012-05-11
I have code that executes SSIS packages in .Net 2.0 using C# and it's compiled fine until rebuilding my development machine from scratch.

The compiler can no longer find the sub packages "Dts.Runtime" in the "Microsoft.SqlServer" package:
The type of namespace name 'Dts' does not e3xist in the namespace 'Microsoft.SqlServer' (are you missing an assembly reference?)
This is the correct package for SQL Server 2005 according to the page Loading and Running a Local Package Programmatically.

As a consequence the compiler cannot use the Application, Package, and DTSExecResult classes needed for programmatic SSIS package execution.

I've referenced:

Microsoft.SQLServer.ManagedDTS

That is located here:

C:\Program Files\Microsoft SQL Server\90\SDK\Assemblies\Microsoft.SQLServer.ManagedDTS.dll

Questions:

1. Is this still the correct way to do it or has it been deprecated? Was the Dts sub-package moved?

2. What DLL or where is the Dts package located?

3. How can I debug this?


The installed software I have is detailed below in the code section.

This is very frustrating because it used to work and I'm following the directions perfectly and I have the correct package specified yet no Dts sub-package.
using Microsoft.SqlServer.Dts.Runtime;

...

Application app = new Application();
Package pkg = app.LoadPackage(pkgLocation, null);
DTSExecResult pkgResults = pkg.Execute();





I have this installed:
Microsoft Visual Studio 2005
Version 8.0.50727.867  (vsvista.050727-8600)
Microsoft .NET Framework
Version 2.0.50727 SP2

Installed Edition: IDE Standard

Microsoft Visual Studio 2005 Premier Partner Edition - ENU Service Pack 1 (KB926601)   
This service pack is for Microsoft Visual Studio 2005 Premier Partner Edition - ENU. 
If you later install a more recent service pack, this service pack will be uninstalled automatically. 
For more information, visit http://support.microsoft.com/kb/926601

SQL Server Analysis Services   
Microsoft SQL Server Analysis Services Designer 
Version 9.00.5000.00

SQL Server Integration Services   
Microsoft SQL Server Integration Services Designer
Version 9.00.5000.00

SQL Server Reporting Services   
Microsoft SQL Server Reporting Services Designers 
Version 9.00.5000.00

Update for Microsoft Visual Studio 2005 Premier Partner Edition - ENU (KB932232)   
This Update is for Microsoft Visual Studio 2005 Premier Partner Edition - ENU. 
If you later install a more recent service pack, this Update will be uninstalled automatically. 
For more information, visit http://support.microsoft.com/kb/932232

Open in new window

0
Comment
Question by:ZuZuPetals
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 2

Accepted Solution

by:
ZuZuPetals earned 0 total points
ID: 35199053
I solved the problem by doing the following:

1) Installing Client Tools SDK from the SQL Server install disks.

2) Upgrading from .Net version 2 to .Net version 4.


0

Featured Post

TCP/IP Network Protocol Cheat Sheet

TCP/IP is a set of network protocols which is best known for connecting the machines that make up the Internet. The truth is that TCP/IP is one of the oldest network protocols and its survival is mainly based on its simplicity and universality.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question