failed to start because the application configuration is incorrect

Hello!

I am wondering if it is possible to configure visual studio 2005 to not require a bunch of external dll files to run the exe. Also is there any way to figure out exactly what the external files it needs are

When i try to run an exe on a computer that does not have visual studio 2005 on it, i get the message: "failed to start because the application configuration is incorrect". I have succeded to solve this on some computers by putting a bunch of dll files in the same folders, but it doesn't seem to work on all.


Answer this question

failed to start because the application configuration is incorrect

  • Rajendra Shekhawat

    Hello,

    I have the same problem.

    Firstable when I build (for the first time) my project, here is what it's written:
    "MSVCRTD.lib(cinitexe.obj) : warning LNK4098: defaultlib 'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library".

    And when I try to build and run (F5), I have an alert that tells me the same thing as above (failed ...). I've tried to modify the runtime library but it's almost the same thing or worse.

    Could you help me and if possible step by step (without forwardingSmile.

    Thanks,

    Florian

  • Samantha Low

    I am having the same problem with "failed to start" when I try running the program on a different machine. I am using the Visual C++ 2005 Express edition to produce my software. I looked at the Project Properties and found Configuration Properties. However, there was nothing about Code Generation there or any other place that I could find to specify a change from "Runtime Library". Can someone please help me out here Thanks.


  • saeidX

    Don't worry about msjava.dll - this is a false alaram - your application does have an (indirect) dependency on it but it is via a delayload reference. So unless your application actually references anything from this DLL you don't actually need it. I'm not sure about devmgr.dll but it may be a similar issue.

    As Martyn said above you should check the SxS installation on the other machines. Some DLL's, particularly msvcr80.dll must be loaded through Fusion from the WinSxS directory.

  • Brian Shafer

    Greetings,

    In your project properties, go to:

    Configuration Properties->C/C++->Code Generation, and change "Runtime Library" to "Multi-threaded (/MT)"

    That fixed the problem for me. It makes the .exe a little bigger, but it's worth it.

    Kevin


  • Agson Chellakudam

    Could you be more clear about this SxS installation your talking about I still feel clueless about what to do.
  • David T So MSFT

    You might be missing the SxS binaries as well. See http://blogs.msdn.com/martynl/ for more details.

    Thanks,
      Ayman Shoukry
      VC++ Team

  • mannequin011

    Try running depends.exe on your application this will tell you exactly what it depends upon.

  • SAStumpf

    Under Configuration Properties, go under C/C++, then Code Generation, then where you see "Runtime Library", choose "Multi-threaded" or "Multi-threaded Debug", depending on whether you are changing settings for release or debug builds respectively.

    Or, a better way would be to leave the settings as they are (i.e. use the DLL based versions of the runtime libraries) and follow the directions I gave in this thread (the post starting with "OK, due to popular demand")

    http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=164880&SiteID=1

    This way if Microsoft comes out with a security update, your app will take advantage of it immediately, instead of you having to rebuild your app with new libraries.


  • Mark AC

    Thanks! I followed the directions in the post you referenced, and now I can share some little projects with my husband.

    (BTW, in Express, the Configuration Properties do not include C/C++, then Code Generation and Runtime Library.)

  • Sandro Rudin

    Thank you for trying to help. Read the article but fail to understand what i need to do. Could you explain please
  • shippee

    Thanks for the quick response. The dependent tool showed two of dll files that it tought was missing, both for the exe file that worked on the other computer and the exe file that did not. So the dependent program diddn't help. What are these files used for anyway

    DEVMGR.DLL MSJAVA.DLL


    So, every time i want to try a project build in 2005 on someone elses computer, i now have to run around my hard drive hunting down files that are spread out in strange directories in the hope of finding something that makes it work Isn't there any easy way of getting around this Other than going back to 2004.

  • CarlW

    This should include more details:
    http://msdn2.microsoft.com/en-us/library/ms235624

    Thanks,
      Ayman Shoukry
      VC++ Team

  • failed to start because the application configuration is incorrect