Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / January 2006

Tip: Looking for answers? Try searching our database.

Deploy mixed assembly with Windows Server 2003

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gianluca Carucci - 29 Jan 2006 08:23 GMT
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
Jochen Kalmbach [MVP] - 29 Jan 2006 09:07 GMT
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

Signature

Greetings
  Jochen

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

Gianluca Carucci - 29 Jan 2006 09:29 GMT
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

> Hi Gianluca!
>
[quoted text clipped - 11 lines]
> See:
> http://www.codeproject.com/cpp/vcredists_x86.asp
Bruno van Dooren - 29 Jan 2006 09:09 GMT
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 all,
> i compiled a simple Hello World console application (Console project
[quoted text clipped - 12 lines]
>
> Gianluca

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.