By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,990 Members | 1,741 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,990 IT Pros & Developers. It's quick & easy.

Deploy mixed assembly with Windows Server 2003

P: n/a
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
Jan 29 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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/
Jan 29 '06 #2

P: n/a
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.

"Gianluca Carucci" <ru***@removemetiscalinet.it> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
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

Jan 29 '06 #3

P: n/a
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
"Jochen Kalmbach [MVP]" <no********************@holzma.de> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
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/

Jan 29 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.