title: VS2008 C++ app fails to start in Debug mode: This application has failed to start because MSVCR90.dll was not found
body: <p>I've got a minimal app I just created, using VS 2008 SP1 on Vista x64.  Its a Console app, created with the wizard, no MFC or anything, I'm building it in 64bit.</p>
  
  <p>When I run the debug exe, on my development box, by pressing F5 in Visual Studio 2008, I get this error:</p>
  
  <pre><code>TestApp.exe - Unable To Locate Component
  
  This application has failed to start because MSVCR90.dll was not found. 
  Re-installing the application may fix this problem. 
  
  OK   
  </code></pre>
  
  <p>I don't get this error when I run the release exe, it works as expected.</p>
  
  <p>This problem started when I added some include dependencies on iostream and fstream and started calling some winsock API calls.</p>
  
  <p>Any suggestions?</p>
  
  <p>UPDATE: I copied msvcr90.dll (not msvcrd90.dll) into the correct folder, and now I get a different error:</p>
  
  <hr>
  
  <h2>Microsoft Visual C++ Runtime Library</h2>
  
  <p>Runtime Error!</p>
  
  <p>Program: [snip]...</p>
  
  <p>R6034</p>
  
  <p>An application has made an attempt to load the C runtime library incorrectly.
  Please contact the application's support team for more information.</p>
  
  <hr>
  
  <h2>OK</h2>
  
  <ul>
  <li>Alex</li>
  </ul>