title: How to setup native remote debugging?
body: <p>Everytime I try to setup remote debugging it always results in a world of hurt. What do I need to do, in order to debug my MFC application on a remote machine? I'm using Windows 7, the VM is using Windows XP.</p>
  
  <p>I've got msvsmon running on the remote computer, and I've connected successfully, but the problem I'm having is the VM can't launch my debug exe because it says:</p>
  
  <blockquote>
    <p>This application has failed to start
    because the application configuration
    is incorrect. Reinstalling the
    application may fix this problem
    (14001).</p>
  </blockquote>
  
  <p>I've installed the VC Runtime Redist, I've copied the MFC / CRT non-redist debug files onto the VM (and into the same directory as the program). I've tried following the advice of editing the manifest file's version information from this blog post - <a href="http://qualapps.blogspot.com/2008/07/visual-studio-2008-c-redistributable.html" rel="nofollow">http://qualapps.blogspot.com/2008/07/visual-studio-2008-c-redistributable.html</a>. But nothing seems to be able to get it to work.</p>
  
  <p>I've inspected MyAppD.exe using Dependancy Walker and it gives me the same error (about side-by-side assemblies plus the text above).</p>
  
  <p>Does anyone have a fool-proof method for getting this stuff working (on a clean VM)?</p>