title: Could not load file or assembly 'Microsoft.SqlServer.DTSRuntimeWrap
body: <p>I made a SSIS package that would export data to msaccess. If i try to run the package on its solution project it will execute without error. But when I call the package inside my program, I will get an error</p>
  <blockquote>
  <p>Could not load file or assembly 'Microsoft.SqlServer.DTSRuntimeWrap, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'. This assembly was compiled for a different processor.</p>
  </blockquote>
  <p>Here is my code:</p>
  <pre><code>public void RunPackage()
      {
          textstring(&quot;Locating Package...&quot;);
          m_worker2.ReportProgress(20);
          string PkgLocation;
          Package pkg;
          Microsoft.SqlServer.Dts.Runtime.Application _app = new Microsoft.SqlServer.Dts.Runtime.Application(); --&gt; I got an exception here.
          DTSExecResult pkgResult;
  
          PkgLocation = Properties.Settings.Default.PackageLoc + &quot;\&quot;Package1.dtsx&quot;;
          textstring(&quot;Loading Package...&quot;);
          m_worker2.ReportProgress(30);
          pkg = _app.LoadPackage(PkgLocation, null);
          textstring(&quot;Executing Package...&quot;);
          m_worker2.ReportProgress(30);
          pkgResult = pkg.Execute();
          textstring(&quot;Finished...&quot;);
          m_worker2.ReportProgress(30);
          textstring(pkgResult.ToString());
          m_worker2.ReportProgress(30);
      }
  </code></pre>
  <p>Can anyone point me out the right way. I don't know what is meant by that error. Please enlighten me?</p>