473,549 Members | 2,615 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Deploy mixed assembly with Windows Server 2003

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
3 4951
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
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.ht m

<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***@removeme tiscalinet.it> wrote in message
news:%2******** *******@TK2MSFT NGP10.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
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.manife st 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******** ********@TK2MSF TNGP12.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
430
by: Zeplynne | last post by:
There are several ways to deploy an assembly into the global assembly cache: 1) Use an installer designed to work with the global assembly cache. This is the preferred option for installing assemblies into the global assembly cache 2) Use a developer tool called the Global Assembly Cache tool (Gacutil.exe) provided by the .NET Framework...
8
4491
by: Ted Miller | last post by:
Hi folks, I'm looking at moving a large base of C++ code to .Net under tight time constraints. The code runs in mission-critical environments, and I am extremely concerned about the loader lock problem and the potential for deadlocks. After pouring over the available information, and trying a few experiments, I am still left with a few...
9
2575
by: Edward Diener | last post by:
I received no answers about this the first time I posted, so I will try again. My inability to decipher an MSDN topic may find others who have the same inability and someone who can decipher and explain it. I have some questions about the instructions for creating a mixed mode DLL in the MSDN topic "Converting Managed Extensions for C++...
7
960
by: JerryW | last post by:
I just reinstalled .NET 2003 (after repeated attempts to get ASP.NET Web Applications to work). I first did a complete uninstall of .NET 2003, .NET Framework 1.1, and IIS. I also completely deleted c:\inetpub\wwwroot and rebooted before reinstalling. I created a new virtual directory from within IIS (e.g. MyWebTest). Then I tried to create...
9
1882
by: Wayne Wengert | last post by:
I built an ASP application and it runs fine on my local IIS. I am trying to move the application to my web service (ISP) out on the internet. I've read several of the help articles but they all seem to think I am deploying to localhosts. I created a new directory on my web page and copied most of the files from the wwwroot subdirectory...
1
1383
by: mg | last post by:
I get the message "server is not running ASP.NET version 1.1" when I try to deploy a WebForm app to Windows Server 2003. In the past, the same deploy to Windows Server 2000 was completely successful. But, ASP.NET 1.1 is part of the OS, right out of the box. Can you suggest what I need to do to deploy to Windows Server 2003?
8
2301
by: Edward Diener | last post by:
By reuse, I mean a function in an assembly which is called in another assembly. By a mixed-mode function I mean a function whose signature has one or more CLR types and one or more non-CLR types. The problem: I have a number of mixed-mode functions which I want reuse. These functions revolve around converting a CLR String to a C++...
1
2680
by: =?Utf-8?B?SmltIFdhbHNo?= | last post by:
I have an VC++ MFC Win32 application that isn't working correctly when I build it with VS2005. The problem seems to be in some ADO ActiveX controls that came with VS6 and are now out of support. So, I have decided to solve the problem by using a mixed assembly: Most of the program will be my MFC - based code (unmanaged), but I will implement...
7
4790
by: =?Utf-8?B?SmltIFdhbHNo?= | last post by:
I'm new to working with mixed assemblies. All of my previous experience has been with VC++/MFC in native, unmanaged applications. When I create a mixed assembly in which one or more of the files compiles with /clr the instructions say that I need to change the switch for Debug information format from Program Database for Edit & Continue to...
0
7521
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7451
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7720
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7810
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6044
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5088
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3501
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1061
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
764
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.