Cannot run C++ program that was compiled with Beta 2 (Side by Side problem)

Hi!

 I am trying to rerun using Beta 2 a program that ran fine under Beta 1. After building the whole thing on Beta 2, I get the following error (extracted from the Event log) when trying to run it:

Generate Activation Context failed for c:\Documents and Settings\Yuval\My Documents\Visual Studio Projects\Home\cpp\HomeTouch\Debug\HomeTouchWin32.exe.Manifest

and

Resolve Partial Assembly failed for x86.Microsoft.VC80.DebugCRT. Reference error message: The referenced assembly is not installed on your system.

The manifast look like:

< xml version="1.0" encoding="UTF-8" standalone="yes" >
  <
assembly manifestVersion="1.0" xmlns="urnTongue Tiedchemas-microsoft-com:asm.v1">
  <
assemblyIdentity version="0.0.0.0" name="HomeTouchWin32.exe
      type="win32">
  </
assemblyIdentity>
  <
dependency>
    <
dependentAssembly>
      <
assemblyIdentity publicKeyToken="1fc8b3b9a1e18e3b" version="8.00.0.0"
       
 name="x86.Microsoft.VC80.DebugCRT" processorArchitecture="x86"
         type
="win32">
      </
assemblyIdentity>
    </
dependentAssembly>
  </
dependency>
</
assembly>

I look at windows/WinSxS directory and I do see a directory named:
x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50215.4652_x-ww_a12cf373

What is going on How can that be fixed

 Best Regards,
  Yuval
    (yuval@brm.com)




Answer this question

Cannot run C++ program that was compiled with Beta 2 (Side by Side problem)

  • szl

    I'm having this same problem now. Does anybody know how to fix this There is nothing helpful in that other thread.

  • HongmeiWang

    Hi,


    There are some convertion to do when porting a beta 1 app into beta 2...
    Additional details (See Thread)...

    http://forums.microsoft.com/msdn/ShowPost.aspx PostID=5399




    cheers,


    Paul June A. Domag

  • hulswood

    I banged my head on this one for a very long time until I found this post.  Thanks!

    BTW, cleaning a project does clear the manifest files for my projects.  Perhaps somehow the manifest file dependency wasn't in the project (a project conversion issue, perhaps   My project originated from VS Beta 1.)

    Brian Kramer


  • Fabio Schorn

    Hi!

     Well, I solved the problem Smile. The problem was that old manifest remained that demanded to use CRT (C runtime) version 8.0.0.0. The version was removed when Beta 1 was uninstalled. Deleting the old manifest files solved the problem. The files are called <Name>.dll.manifest or <Name>.exe.manifest.
     
    It seems that Beta 2 embed the manifest inside the DLL (or EXE) as a resource.

     Please note that "cleaning" the project does not remove the old manifest file, you should cd to the directory and delete them yourself.

     Best Regards,
      Yuval


  • Cannot run C++ program that was compiled with Beta 2 (Side by Side problem)