Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

"The package failed to load due to error 0xC0011008"

$
0
0
I am attempting to run SSIS packages from a windows form.  The user selects packages from a  CheckedLIstBox and, when finished, clicks a button to run the selected packages. The error occurs when assigning package values to a "new" package as follows: "pkgIn = app.LoadPackage(pkgLocation, null);" The entire button click code is listed below. This is running on a local server using local installations of visual studio 2008 and SQL Server 2005 with the ".dtsx" files on the local machine. It does not process any files.

I have read many similar instances of the same error which has pointed to authentication or MaxConurrentExecutables. I increased the "MaxConurrentExecutables" from -1 to 10 for each package and moved the "*.dtsx" files and SQL Server database to the local server (my workstation) to deal with authentication.

Thanks



private

 

void button1_Click(object sender, EventArgs e)

{

 

string @fileName;

 

 

foreach (string str in fileList)

{

@fileName = str;

 

string pkgLocation;

Microsoft.SqlServer.Dts.Runtime.

Application app;

 

DTSExecResult pkgResults_Sql;

pkgLocation =

@"C:\" + @fileName + ".dtsx";

app =

new Microsoft.SqlServer.Dts.Runtime.Application();

 

Package pkgIn = newPackage();

pkgIn = app.LoadPackage(pkgLocation,

null);

pkgIn.Execute();

}

}


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>