PC Review


Reply
Thread Tools Rate Thread

Deploy mixed assembly with Windows Server 2003

 
 
Gianluca Carucci
Guest
Posts: n/a
 
      29th Jan 2006
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


 
Reply With Quote
 
 
 
 
Jochen Kalmbach [MVP]
Guest
Posts: n/a
 
      29th Jan 2006
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/
 
Reply With Quote
 
Bruno van Dooren
Guest
Posts: n/a
 
      29th Jan 2006
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" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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
>



 
Reply With Quote
 
Gianluca Carucci
Guest
Posts: n/a
 
      29th Jan 2006
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]" <nospam-(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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/



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
vsto deploy on windows 2003 server =?Utf-8?B?dnN0byBkZXBsb3kgb24gd2luZG93cyAyMDAzIHNl Microsoft Excel Programming 0 25th Jul 2006 03:30 PM
ClickOnce deploy from Windows 2003 Server =?Utf-8?B?UmFscGggSHVsc2xhbmRlcg==?= Microsoft Dot NET 0 30th Jan 2006 04:49 PM
RE: Deploy ASP.net Application On Windows 2003 server. Jim Cheshire [MSFT] Microsoft ASP .NET 0 2nd Mar 2004 11:36 PM
Deploy VPN/NAT on windows 2003 Standard Server GRehman Microsoft Windows 2000 RAS Routing 0 26th Dec 2003 08:57 PM
Can you use W2KAdServer RIS to deploy Windows 2003 Server? =?Utf-8?B?R2FyZXRoVHVja2Vy?= Microsoft Windows 2000 Deployment 1 30th Sep 2003 05:24 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:28 PM.