title: Executing SSIS package from c#
body: <p>I have to create a Windows Form application which would modify the connection sring values present in dts config file and then execute the package with this updated dts config file.</p>
  
  <p>Even if I am adding following line of code,it is not taking the updated config file.</p>
  
  <pre><code>string packagePath = ConfigurationSettings.AppSettings["packagepath"].ToString();
  Microsoft.SqlServer.Dts.Runtime.Application app = new Microsoft.SqlServer.Dts.Runtime.Application();
   Package package = app.LoadPackage(packagePath, null);
   package.ImportConfigurationFile(configPath);
   DTSExecResult dtsResult = package.Execute();
  </code></pre>
  
  <p>Please help how to execute the package with modified dts config.</p>