title: App does not run with VS 2008 SP1 DLLs, previous version works with RTM versions
body: <p>Since our switch from Visual Studio 6 to Visual Studio 2008, we've been using the MFC90.dll and msvc[pr]90.dlls along with the manifest files in a private side-by-side configuration so as to not worry about versions or installing them to the system.</p>
  
  <p>Pre-SP1, this was working fine (and still works fine on our developer machines). Now that we've done some testing post-SP1 I've been pulling my hair out since yesterday morning.</p>
  
  <p>First off, our NSIS installer script pulls the dlls and manifest files from the redist folder. These were no longer correct, as the app still links to the RTM version.</p>
  
  <p>So I added the define for <code>_BIND_TO_CURRENT_VCLIBS_VERSION=1</code> to all of our projects so that they will use the SP1 DLLs in the redist folder (or subsequent ones as new service packs come out). It took me hours to find this.</p>
  
  <p>I've double checked the generated manifest files in the intermediate files folder from the compilation, and they correctly list the 9.0.30729.1 SP1 versions. I've double and triple checked depends on a clean machine: it all links to the local dlls with no errors. </p>
  
  <p>Running the app still gets the following error:</p>
  
  <blockquote>
    <blockquote>
      <p>The application failed to initialize properly (0xc0150002). Click on OK to terminate the application.</p>
    </blockquote>
  </blockquote>
  
  <p>None of the searches I've done on google or microsoft have come up with anything that relates to my specific issues (but there are hits back to 2005 with this error message).</p>
  
  <p>Any one had any similar problem with SP1?</p>
  
  <p>Options:<ul>
  <li>Find the problem and fix it so it works as it should (preferred)
  <li>Install the redist
  <li>dig out the old RTM dlls and manifest files and remove the #define to use the current ones. (I've got them in an earlier installer build, since Microsoft blasts them out of your redist folder!)</ul></p>
  
  <p><b>Edit:</b> I've tried re-building with the define turned off (link to RTM dlls), and that works as long as the RTM dlls are installed in the folder. If the SP1 dlls are dropped in, it gets the following error:</p>
  
  <blockquote>
    <p>c:\Program Files\...\...\X.exe</p>
    
    <p>This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.</p>
  </blockquote>
  
  <p>Has no-one else had to deal with this issue?</p>
  
  <p><b>Edit:</b> Just for grins, I downloaded and ran the vcredist_x86.exe for VS2008SP1 on my test machine. <b><i>It</i></b> works. With the SP1 DLLs. And my RTM linked app. But <b>NOT</b> in a private side-by-side distribution that worked pre-SP1.</p>