keyongtech


  keyongtech > vc.* > vc.mfc

 #1  
07-29-08, 09:17 PM
philip
VC++ MFC Project working absolutely fine on one machine

Installed Visual Studio on a new portable and copied the project and all the
settings over, done a complete rebuild which worked fine but now get an
error message

"The application has failed to start becuase the application configuration
is incorrect. Reinstalling the application may fix this problem"

Have tried reinsalling (but I dont think this is relevant as I am working
with VStudio)

the message pops up a couple of times but then the program runs OK

Does anyone know what this means and how to find out what is missing?

Many thanks and all suggestions much appreciated

Phil
 #2  
07-29-08, 09:26 PM
Giovanni Dicanio
Maybe it is a manifest problem?
Do you do dynamic link with MFC and CRT?

I would suggest you to try to static-link with MFC and CRT, maybe that would
solve your problem.

Giovanni


"philip" <mfc> ha scritto nel messaggio
news:4140
[..]
 #3  
07-29-08, 09:29 PM
Giovanni Dicanio
BTW: if you do dynamic linking with MFC/CRT, I would suggest you to read
Jochen Kalmbach's blog post about manifests and local DLL deployment:

Howto: Deploy VC2008 apps without installing vcredist_x86.exe
http://blog.kalmbach-software.de/200...redist_x86exe/

HTH,
Giovanni


"philip" <mfc> ha scritto nel messaggio
news:4140
[..]
 #4  
07-29-08, 09:31 PM
Joseph M. Newcomer
The primary role of this message is to prevent your customers from ever getting effective
tech support for your product; secondarily, it is to protect my 88-year-old mother from
seeing information she might not understand. What it means is "something is screwed up,
and even though we know exactly what failed, we're not going to tell you because that
might be useful information, and if you knew it, you might be able to fix the problem, and
we wouldn't want THAT to happen."

The fact that it is not consistent is disturbing. I hope someone from MS reads these
posts and begins to get a sense that we do NOT want to be protected from knowing critical
information!

Unfortunately, other that putting up this message that I hope MS reads, I have no idea how
to tackle this when it is not consistent. Usually it means a critical DLL is missing
(they know which one, but they won't tell you!) Another victory for the incompetents who
design these crappy interfaces to make our lives miserable.

joe
On Tue, 29 Jul 2008 22:17:08 +0100, "philip" <mfc> wrote:

>VC++ MFC Project working absolutely fine on one machine
>
>Installed Visual Studio on a new portable and copied the project and all the
>settings over, done a complete rebuild which worked fine but now get an
>error message
>
>"The application has failed to start becuase the application configuration
>is incorrect. Reinstalling the application may fix this problem"
>
>Have tried reinsalling (but I dont think this is relevant as I am working
>with VStudio)
>
>the message pops up a couple of times but then the program runs OK
>
>Does anyone know what this means and how to find out what is missing?
>
>Many thanks and all suggestions much appreciated
>
>Phil

Joseph M. Newcomer [MVP]
email: newcomer
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
 #5  
07-29-08, 09:35 PM
Giovanni Dicanio
"Joseph M. Newcomer" <newcomer> ha scritto nel messaggio
news:22qk
> The primary role of this message is to prevent your customers from ever
> getting effective
> tech support for your product; secondarily, it is to protect my
> 88-year-old mother from
> seeing information she might not understand. What it means is "something
> is screwed up,
> and even though we know exactly what failed, we're not going to tell you
> because that
> might be useful information, and if you knew it, you might be able to fix
> the problem, and
> we wouldn't want THAT to happen."


Joe: you are great! :)

Giovanni
 #6  
07-29-08, 09:47 PM
philip
Joseph

nice to hear from you again

frankly if you don't know what it means then I don't have a hope

Phil Cunningham


"Joseph M. Newcomer" <newcomer> wrote in message
news:22qk
[..]
 #7  
07-29-08, 09:52 PM
David Wilkinson
philip wrote:
> VC++ MFC Project working absolutely fine on one machine
>
> Installed Visual Studio on a new portable and copied the project and all
> the settings over, done a complete rebuild which worked fine but now get
> an error message
>
> "The application has failed to start becuase the application
> configuration is incorrect. Reinstalling the application may fix this
> problem"
>
> Have tried reinsalling (but I dont think this is relevant as I am
> working with VStudio)
>
> the message pops up a couple of times but then the program runs OK
>
> Does anyone know what this means and how to find out what is missing?
>
> Many thanks and all suggestions much appreciated


Phil:

Are you sure both machines have the same version *and* service pack of Visual
Studio?
 #8  
07-30-08, 12:02 AM
Tom Serface
I've seen this message lots when I have a DLL that is compiled with an older
version of Visual Studio. Could it be a DLL that isn't being used (not
called yet) which could be kind of a time bomb.

Tom

"philip" <mfc> wrote in message
news:4140
[..]
 #9  
07-30-08, 12:04 AM
Tom Serface
Joe, this message is kind of generic, but hopefully customers never see it
(assuming programmers actually run the build before they release it). When
I've seen this message I typically recompile all of the supporting DLLs for
my project and it's one of the reasons I'm not a fan of the manifest idea or
of using DLLs whenever I can get away from them.

Tom

"Joseph M. Newcomer" <newcomer> wrote in message
news:22qk
[..]
 #10  
07-30-08, 12:52 AM
Joseph M. Newcomer
Key here is that the "generic" message should have a button that says "Show details", and
that would reveal, for example, what DLL was missing, or whatever caused the problem. It
is well-known at the point where the error occurred exactly what error occurred; for
example, if a DLL were missing, it used to say which DLL it couldn't load! Or if there is
a syntax error in the manifest (which, of course, we should all be able to avoid because
of the clear and unambiguous documentation on manifests which is so extensive).

This is really another example of the sick mindset that, when I pull up help, advises me
to "contact my system administrator". I'M THE FREAKIN' SYSTEM ADMINISTRATOR AND I NEED TO
KNOW WHAT TO DO!!!!! But no, documenting what to do, so the system administrator can fix
the problem, is beyond the capability of the twits who write this documentation.
joe

On Tue, 29 Jul 2008 17:04:40 -0700, "Tom Serface" <tom.nospam> wrote:

>Joe, this message is kind of generic, but hopefully customers never see it
>(assuming programmers actually run the build before they release it). When
>I've seen this message I typically recompile all of the supporting DLLs for
>my project and it's one of the reasons I'm not a fan of the manifest idea or
>of using DLLs whenever I can get away from them.
>
>Tom
>
>"Joseph M. Newcomer" <newcomer> wrote in message
>news:22qk

Joseph M. Newcomer [MVP]
email: newcomer
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
 #11  
07-30-08, 11:59 AM
philip
That's the answer

My existing machine had SP1 - I've just installed it on the new machine and
mesage no longer appears


many thanks for all the ideas
Phil


"David Wilkinson" <no-reply> wrote in message
news:4608
[..]
 #12  
07-31-08, 08:15 PM
Tom Serface
Can't argue with that... much :o)

Tom

"Joseph M. Newcomer" <newcomer> wrote in message
news:6c4o
[..]
Similar Threads
Problem running VS2005 application on another machine

I am trying to run a game developed on my machine in VS2005 on another machine without VS. At first I was getting a side by side configuration error despite installing the...

Application error event every minute on MSSQLSERVER : "Failure Audit: Login failed for user 'NT AUTHORITY\SYSTEM' [Client: <local machine>]

Hi, My event viewer offers up an error each and every minute with a source of MSSQLSERVER: "Failure Audit: Login failed for user 'NT AUTHORITY\SYSTEM' [Client: <local...

Error Message : Application failed to initialize properly (0xe06d7

Hi. I am unable to get the later version of Windows Live Messenger to work. When I click on the icon the message I get is : The Application failed to initialize properly...

Application connection failed to see machine running SQL server

I was trying to install an application on a client workstation running XP-Pro but couldn't connect to another machine within same LAN running SQL 2000 server (2000 Small...


All times are GMT. The time now is 07:02 PM. | Privacy Policy