title: Deploy C#.Net Console Application
body: <p>I am trying to deploy my C#.Net console application.</p>
  
  <p>Methods i tried.</p>
  
  <p>Build the application </p>
  
  <ol>
  <li>go to <strong>bin</strong> directory</li>
  <li>in <strong>debug</strong> directory copy the files and move to compressed folder</li>
  <li>extract it in different machine and run <strong>.exe</strong> file</li>
  </ol>
  
  <p>Problem i am having is:</p>
  
  <p>I have used <strong>MSXML2</strong> assembly in my project.
  I guess this assembly is not copied to bin directory and the machine I am running <strong>.exe</strong> file doesn't not having this assembly in it.</p>
  
  <p>when i run the <strong>.exe</strong> it get below error.</p>
  
  <pre><code>System.IO.FileNotFoundException: The system cannot locate the resource specified.
  at MSXML2.IXMLHTTPRequest.send(object varbody
  at projectname.Program.Main(String[] args))
  </code></pre>
  
  <p>how can i make sure this assembly is properly loaded to my deployed folder.</p>
  
  <p>thanks for looking in to my question.</p>
  
  <p>applying <strong>dotnetengineer</strong> suggession
  set <strong>Copy Local to TRUE</strong>
  New issue:</p>
  
  <pre><code>Could not load file or assembly 'Interop.MSXML2, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.
  </code></pre>