visual studio 2005 SP2 redistribution issue

  • Thread starter Thread starter Peter
  • Start date Start date
P

Peter

Hello,

I have an application compiled with visual studio 2005 SP2 (32 bit),
it cannot run successfully in another computer without vs 2005 installed.

Here is the error message:
"This application has failed to start because the application
configuration is incorrect"

I tried google search and installed visual studio 2005 runtime binary
library from the microsoft website, it doesn't work.
I also copied Microsoft.VC80.CRT from redist/x86 directory and put
it under binary application, it still doesn't work.

this is my binary application manifest:

<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.VC80.DebugCRT'
version='8.0.50727.762' processorArchitecture='x86'
publicKeyToken='1fc8b3b9a1e18e3b' />
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.VC80.CRT'
version='8.0.50727.762' processorArchitecture='x86'
publicKeyToken='1fc8b3b9a1e18e3b' />
</dependentAssembly>
</dependency>
</assembly>

do I need to copy Microsoft.VC80.DebugCRT directory over in addition to
Microsoft.VC80.CRT directory?

Thanks.
 
Hello,

I have an application compiled with visual studio 2005 SP2 (32 bit),
it cannot run successfully in another computer without vs 2005 installed.

Here is the error message:
"This application has failed to start because the application
configuration is incorrect"

I tried google search and installed visual studio 2005 runtime binary
library from the microsoft website, it doesn't work.
I also copied Microsoft.VC80.CRT from redist/x86 directory and put
it under binary application, it still doesn't work.

this is my binary application manifest:

<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.VC80.DebugCRT'
version='8.0.50727.762' processorArchitecture='x86'
publicKeyToken='1fc8b3b9a1e18e3b' />
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.VC80.CRT'
version='8.0.50727.762' processorArchitecture='x86'
publicKeyToken='1fc8b3b9a1e18e3b' />
</dependentAssembly>
</dependency>
</assembly>

do I need to copy Microsoft.VC80.DebugCRT directory over in addition to
Microsoft.VC80.CRT directory?

Compile the release version, not the debug version, for
redistribution.
 
Hello,

I have an application compiled with visual studio 2005 SP2 (32 bit),
it cannot run successfully in another computer without vs 2005 installed.

Here is the error message:
"This application has failed to start because the application
configuration is incorrect"

I tried google search and installed visual studio 2005 runtime binary
library from the microsoft website, it doesn't work.
I also copied Microsoft.VC80.CRT from redist/x86 directory and put
it under binary application, it still doesn't work.

this is my binary application manifest:

<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.VC80.DebugCRT'
version='8.0.50727.762' processorArchitecture='x86'
publicKeyToken='1fc8b3b9a1e18e3b' />
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.VC80.CRT'
version='8.0.50727.762' processorArchitecture='x86'
publicKeyToken='1fc8b3b9a1e18e3b' />
</dependentAssembly>
</dependency>
</assembly>

do I need to copy Microsoft.VC80.DebugCRT directory over in addition to
Microsoft.VC80.CRT directory?

Compile the release version, not the debug version, for
redistribution.
 
Better yet, you should statically link your application as well.

Brian
 
Better yet, you should statically link your application as well.

Brian
 
BobF said:
Is there an SP2 for VS2005?

Not that I've been able to find. And I looked after two messages showed up
today claiming to be using it.
 
BobF said:
Is there an SP2 for VS2005?

Not that I've been able to find. And I looked after two messages showed up
today claiming to be using it.
 
Not that I've been able to find. And I looked after two messages showed up
today claiming to be using it.

Two? Is there another one?

Brian Muth's and my responses about static linking and not
distributing a debug compile are completely general and valid for any
version of Visual Studio with or without service packs. I certainly
didn't pay any attention to that aspect of the query.
 
Not that I've been able to find. And I looked after two messages showed up
today claiming to be using it.

Two? Is there another one?

Brian Muth's and my responses about static linking and not
distributing a debug compile are completely general and valid for any
version of Visual Studio with or without service packs. I certainly
didn't pay any attention to that aspect of the query.
 
r said:
Compile the release version, not the debug version, for
redistribution.


I compile everything from makefile and not sure if there is a special
flag in the compile or link to compile as release version?
thanks.
 
r said:
Compile the release version, not the debug version, for
redistribution.


I compile everything from makefile and not sure if there is a special
flag in the compile or link to compile as release version?
thanks.
 
Brian said:
Better yet, you should statically link your application as well.
Brian

I used /MT to compile in the makefile and I really don't expect
the dll included. not sure how to make 100% static compilation?

thanks.
 
Brian said:
Better yet, you should statically link your application as well.
Brian

I used /MT to compile in the makefile and I really don't expect
the dll included. not sure how to make 100% static compilation?

thanks.
 
Peter said:
I used /MT to compile in the makefile and I really don't expect
the dll included. not sure how to make 100% static compilation?

/MT is the way to go (IMHO), and should avoid dependency on the CRT DLL's. Are
you linking static libraries into your executable? If so, they are likely the
culprit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top