Error: The Side-by-Side configuration information in "BLAH.EXE" contains errors
Asked Answered
S

5

15

This is the error Dependency Walker gives me on an executable that I am building with VC++ 2005 Express Edition. When trying to run the .exe, I get:

This application has failed to start because the application configuration
is incorrect. Reinstalling the application may fix this problem.

(I am new to the manifest/SxS/etc. way of doing things post VC++ 2003.)

EDIT: I am running on the same machine I am building the .exe with. In Event Viewer, I have the unhelpful:

Faulting application blah.exe, version 0.0.0.0, faulting module blah.exe,
version 0.0.0.0, fault address 0x004239b0.
Sarilda answered 31/10, 2008 at 16:17 Comment(1)
What Windows version is this?Sis
B
14

Open the properties sheet for your project, go to the Configuration Properties -> C/C++ -> Code Generation page, and change the Runtime Library selection to /MT or /MTd so that your project does not use the DLL runtime libraries.

The C/C++ DLL runtimes used by VS2003 and up are not automatically distributed with the latest version of the OS and are a real pain to install and get working without this kind of problem. statically link the c-runtime and just avoid the total mess that is manifests and version specific runtime dlls.

Benitobenjamen answered 6/1, 2009 at 15:1 Comment(3)
If you are willing to face a much bigger DLL, this should workStannite
I marked your answer correct since it does work if you have the ability to recompile all your application's code and code for the libraries it links to. But, what do you do if one of the .lib files you are linking with has no associated code you can recompile but was using runtime .DLL? I have no choice but to compile the same way, but what .dll files do I need to have in the app's root directory in order for anyone to run the app? (This is an internal app and doesn't need some generic install process, so it's fine if I just manually copy the .dlls.)Sarilda
I can´t change to /MT because I use /clr option to. Do you know what should I do ?Moderation
C
5

I've had this problem. The solution has two steps:
1. Compile your program in "Release" mode instead of "Debug" mode (there's usually a combo-box in the toolbar)
2. Download from Microsoft their Redistributable Package of runtime components. Make sure to download the x86 edition for 32-bit computers and the x64 edition for 64-bit computers/OSes. Install this package on the target computer, and your application should run fine

P.S. This is a SxS thing
P.P.S. Alternatively, use a different compiler (like GCC, for example with Dev-Cpp) to compile your program's source, and your headaches will disappear.

Cholinesterase answered 1/11, 2008 at 18:37 Comment(0)
A
5

Sorry to bump an old question, but I was able to get around this exact issue and thought I'd post a solution in case someone else needs it...

Even after installing Microsoft's redistributable DLLs I was getting this error, the fix was to copy the

C:\Program Files\Microsoft Visual Studio 8\VC\redist\x86\Microsoft.VC80.CRT

folder into the application's directory on the target PC. After that, no more problems.

BTW, the DLL that was giving me issues was a 3rd-party DLL that had never had problems before on over 100 other computers... go figure.

Apogamy answered 7/7, 2009 at 15:51 Comment(1)
Unfortunately, the redist folder does not appear to be bundled with express editions.Benitobenjamen
B
3

Run Event Viewer: it'll have more information.

Probably you've attempted to run your program on a machine that doesn't have the VC redistributables installed, or you're attempting to run a debug build on a machine that doesn't have Visual Studio installed (the debug libraries aren't redistributable).

Brackish answered 31/10, 2008 at 16:27 Comment(5)
I am building and running on the same machine with VC++ 2005 Express Edition installed. Could the Express Edition be the issue?Sarilda
(I mean, it would be odd to not be able to run a .exe on the very machine that built it. It would mean that the Express Edition is broken.)Sarilda
Did you look in Event Viewer?Brackish
Yep, I just updated my OP with the results. Not very helpful info from EV, though.Sarilda
+1 Thank you! One of my dlls was linking with a debug dll rather than release causing a crash on every machine but mine. i didn't know before now that the debug libraries aren't redistributable!Antispasmodic
P
2

I have had the same issue with VS 2008-built debug binaries on other winxp sp3 machines.

  1. I first tried installing the client machine with vc redist package,as it seemed sensible. Annoyingly, it didn't work.
  2. I tried copying all the dependent dlls to the application's directory - still didn't work
  3. After being struck over this issue for hours, I found that the latest VS builds require manifests and policies to link with the dlls. After copying them into their respective "C:\WINDOWS\WinSxS\" folders, I got it working.

The problem was caused due to the fact that the vc redist package did not install debug versions of dlls, they somehow thought its up to the programmer to figure out.

Pearse answered 20/6, 2010 at 1:3 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.