tags:

views:

242

answers:

1

I'm trying to call an SSIS package through C# code. The package worked before I put a package password on, but now I'm trying to supply the password I'm getting an error that the password is wrong or not supplied.

                Package package = app.LoadPackage("mypackage.dtsx, null);
            package.PackagePassword = "mypass";

            DTSExecResult result = package.Execute();

Can anyone point out where I'm going wrong?

A: 

I believe this is what you need:

app.PackagePassword = "mypass";
Devtron
Sorry, that didn't work
Rich
what error/message is it throwing specifically?
Devtron