Deploy mixed assembly with Windows Server 2003

  • Thread starter Thread starter Gianluca Carucci
  • Start date Start date
G

Gianluca Carucci

Hi all,
i compiled a simple Hello World console application (Console project wizard)
with c++/cli. I use /clr compiler option for compile mixed managed and
unmanaged code. When i start application on Windows 2003 Server i received
a message box with error: "The application has failed to start because the
application configuration is incorrect. Reinstalling the application may fix
this problem". I receive the same error when i try open application with
depends tool. I had already copied msvc?80d.dll files in deploy directory.
In my Windows 2003 Server I has installed only Framework 2.0 redistribuible
pack. C# 2.0 compiled applications works correctly.
Obviusly in xp developer pc my app works fine.
Someone know the problem?
Thanks in advance.

Gianluca
 
Hi Gianluca!
with error: "The application has failed to start because the
application configuration is incorrect. Reinstalling the application may fix
this problem".

Youi have two options:
1. Install the CRT/MFC/ATL files from VC8
2. Copy the CRT/MFC/ATL DLLs in the same dir as your exe *and* put the
valid manifest for these DLLs in the same dir!

In bith cases you application needs to have a valid manifest for the EXE!

See:
http://www.codeproject.com/cpp/vcredists_x86.asp


--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
 
Hi,

msvc80d.dll contains the debug version of the runtime. you have to deploy
the release versions. the version of your app also has to be the release
build.

check out the following articel in MSDN2005:
development tools and languages->Visual studio-> visual
C++ ->deployment->determining which dlls to redistribute.

ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_vccore/html/f7a2cb42-fb48-42ab-abd2-b35e2fd5601a.htm

<snip>
atl80.dll
Active Template Library



msvcm80.dll

msvcp80.dll

msvcr80.dll
C Runtime and Standard C++ Libraries



mfc80.dll

mfc80u.dll

mfcm80.dll

mfcm80u.dll
Microsoft Foundation Classes


</snip>

kind regards,
Bruno.
 
Hi Jochen!
Thanks a lot, the problem was that i had forgotten manifest file (i copied
only crt*.dll files). Now I had copied Microsoft.VC80.DebugCRT.manifest file
and works fine.
I used Debug version only for a test. Obviously, in realese version i copied
CRT for release instead of CRT for debug.
Thanks...
Gianluca
 
Back
Top