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

vshost32.exe has stopped working when executing SSIS Package

$
0
0

Hi friends,

I've SSIS package developed using BIDS 2008.Package is runnig fie under BIDS all data transfers are success.Now i need to execute this package from My c# win app.But unfortunatley when i excute line "pkg.Execute();" vs 2010 gives message as "vshost32.exe has stopped working",This is my code segment ......

String StrReturn = String.Empty;
clsUtility Util = new clsUtility();
Package pkg;
Variables vars;
DTSExecResult pkgResults;

string pkgLocation = @"D:\Dimuthu\SSISProj\Proj5\Integration Services Project1\Package.dtsx";
                
Microsoft.SqlServer.Dts.Runtime.Application app = new Microsoft.SqlServer.Dts.Runtime.Application();
                
pkg = app.LoadPackage(pkgLocation, null);

vars = pkg.Variables;

vars["DesConStr"].Value = "Data Source=.;User ID=sa;Password=PCSpos2012;Initial Catalog=PCSPOSLocal";
vars["EntityId"].Value = "34";
vars["LocationId"].Value = "12";

pkgResults = pkg.Execute();

StrReturn = pkgResults.ToString();

So any one who caught this problem previously or any solution for this ?? highly appriciate any help :)

Thanks & Regards,


Dimuthu


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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