VC++ 2005 Express deployment problem  
Author Message
Sandiway Fong





PostPosted: Visual C++ General, VC++ 2005 Express deployment problem Top

I've struggled with this unsuccessfully for 3 solid days.

I've got a tbv.exe and a tbv.exe.manifest file produced by VC++ 2005 Express.

Works fine on the computer I compiled on.

Unfortunately, I'm unable to get it to work on anyone else's computer because it can't find the runtime system msvcr80.dll on their machine despite me having them download and run vcredist_x86.exe

Sounds familiar

So I studied the thread "Running a very simple Win32 app on a comp without VC++ 2005" and I've been unsuccessful with the Answer described there. I come from a Unix/MacOSX background, so there must be something obvious I'm missing.

I followed the Answer suggested there.
My application directory is called treebankviewer
contains tbv.exe and tbv.exe.manifest
Created a subdirectory Microsoft.VC80.CRT
and placed in their the 3 DLLs and the Microsoft.VC80.CRT.manifest suggested in the Answer. But that doesn't help.

I have the remote user put the treebankviewer directory in c:\program files

1. If tbv.exe.manifest is not present, it can't find the msvcr80.dll

2. If tbv.exe.manifest is present, according to depends.exe it still can't find it.

tbv.exe.manifest contains

xml version='1.0' encoding='UTF-8' standalone='yes' >
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.VC80.CRT' version='8.0.50727.762' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' />
</dependentAssembly>
</dependency>
</assembly>

This is untouched by me and produced by C++ 2005 Express.

depends.exe says:

Error: The Side-by-Side configuration information in "c:\program files\treebankviewer\TBV.EXE.manifest" contains errors. This application has failed to start because the application configuration is incorrect.
Same error msg for TBV.EXE

I am so stymied and kinda depressed with this whole thing. (My application is also compiled for MacOSX without a hitch.) I can't compile with passing the flag /MT either because spld from Sicstus Prolog doesn't like everything static.

Feel free to download the files from http://www.hide-link.com/ ~sandiway/treebankviewer/

Obviously, the Windows XP instructions I have there don't work....

Please help!

Sandiway



Visual C++9  
 
 
Sheng Jiang





PostPosted: Visual C++ General, VC++ 2005 Express deployment problem Top

Have you installed SP1 if so, check out this post.

 
 
Sandiway Fong





PostPosted: Visual C++ General, VC++ 2005 Express deployment problem Top

I removed SP1. And recompiled.

The new tbv.exe binary is exactly the same size.
The two tbv.exe.manifest files differ by two bytes in just one line:

<assemblyIdentity type='win32' name='Microsoft.VC80.CRT' version='8.0.50608.0' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' />

<assemblyIdentity type='win32' name='Microsoft.VC80.CRT' version='8.0.50727.762' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' />

and that's the version number.

But lo and behold, it seems to work now!
Or at least, on my tester's platform, it runs.
Actually, I can't quite believe it - after 3 solid days!
To be sure, I should find another person to test it.

Sheng, thank you for the pointer. SP1 blues.

Sandiway

 
 
Angshuman Chatterjee





PostPosted: Visual C++ General, VC++ 2005 Express deployment problem Top

My problem is just the opposite. I have a project comprising of an exe and several dlls (all are part of the same solution, built together). However when I try to run the exe (or attempt to register the dlls) I get a message like "This application has failed to start since the application configuration is incorrect". I tried to run the exe on the same machine where it was built.

However I took the binaries to my colleagues machine, and they are running fine there.

What could be the problem and solution to it!