I have created an ssis package. Tested it by executing directly and it is working fine. But when executing it by a windows application, getting an error message "vshost32.exe has stopped working" and application get closed. Any idea?
This is my code:
pkgLocation = ConfigurationManager.AppSettings["SSISPath"].ToString();
Microsoft.SqlServer.Dts.Runtime.Application app = new Microsoft.SqlServer.Dts.Runtime.Application();
Package pkg = app.LoadPackage(pkgLocation, null);
pkg.ImportConfigurationFile(@"C:\SSIS\Config\My_Config.dtsConfig");
DTSExecResult pkgResults = pkg.Execute();
This is my system configurations: Win 7 32 bit SQL Server 2008 Visual Studio 2010