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.
That is located here:
C:\Program Files\Microsoft SQL Server\90\SDK\Assemblies\M
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.
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
SQL Server Integration Services
Microsoft SQL Server Integration Services Designer
SQL Server Reporting Services
Microsoft SQL Server Reporting Services Designers
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