Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. COM
  4. The application has failed to start....

The application has failed to start....

Scheduled Pinned Locked Moved COM
c++workspacecsharpvisual-studioquestion
8 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sergey2
    wrote on last edited by
    #1

    My application fails with "This application has failed to start because the application configuration is incorrect. ..." on other computers. I know that Microsoft Visual C++ 2008 Redistributable Package or Creating setup.exe helps, but I need another solution. I want my program to work without installers and packages. What should I change in project properties? PS:I am working in Visual Studio 2008.

    J 1 Reply Last reply
    0
    • S Sergey2

      My application fails with "This application has failed to start because the application configuration is incorrect. ..." on other computers. I know that Microsoft Visual C++ 2008 Redistributable Package or Creating setup.exe helps, but I need another solution. I want my program to work without installers and packages. What should I change in project properties? PS:I am working in Visual Studio 2008.

      J Offline
      J Offline
      Ju ncho
      wrote on last edited by
      #2

      If you are working with COM you should check if the your custom COM Components dlls are being registered properly. You could make two scripts to do this, for exmple Reg.BAT regsvr32 ProcessLibrary.dll regsvr32 ProcessLibraryPS.dll UnReg.Bat regsvr32 /u ProcessLibrary.dll regsvr32 /u ProcessLibraryPS.dll

      JO :)

      S 1 Reply Last reply
      0
      • J Ju ncho

        If you are working with COM you should check if the your custom COM Components dlls are being registered properly. You could make two scripts to do this, for exmple Reg.BAT regsvr32 ProcessLibrary.dll regsvr32 ProcessLibraryPS.dll UnReg.Bat regsvr32 /u ProcessLibrary.dll regsvr32 /u ProcessLibraryPS.dll

        JO :)

        S Offline
        S Offline
        Sergey2
        wrote on last edited by
        #3

        I use "Standard windows libraries" with "common language runtime support" As I understand MSDN, I should register msvcm90.dll, msvcp90.dll, msvcr90.dll on computer to run my application. Am I right?

        J 1 Reply Last reply
        0
        • S Sergey2

          I use "Standard windows libraries" with "common language runtime support" As I understand MSDN, I should register msvcm90.dll, msvcp90.dll, msvcr90.dll on computer to run my application. Am I right?

          J Offline
          J Offline
          Ju ncho
          wrote on last edited by
          #4

          No, The dlls you should register in order to use them are the ones of you COM Components (i assumed you were developing COM somponent for the Forum name :D). You could Also check for missing dlls in you installation directory with the dependency walker, this little program checks yor .exe for missing dependencies so you could copy to the instalation dir the files missing (ie: msvcm90.dll, msvcp90.dll, msvcr90.dll ) You could download dependencywalker from: http://www.dependencywalker.com

          JO :)

          S 1 Reply Last reply
          0
          • J Ju ncho

            No, The dlls you should register in order to use them are the ones of you COM Components (i assumed you were developing COM somponent for the Forum name :D). You could Also check for missing dlls in you installation directory with the dependency walker, this little program checks yor .exe for missing dependencies so you could copy to the instalation dir the files missing (ie: msvcm90.dll, msvcp90.dll, msvcr90.dll ) You could download dependencywalker from: http://www.dependencywalker.com

            JO :)

            S Offline
            S Offline
            Sergey2
            wrote on last edited by
            #5

            After using dependencywalker I understood that my program requires msvcm90.dll, msvcp90.dll, msvcr90.dll. I copied them into directory with my .exe file, but it didn't helps. Maybe I should copy them to some system folder&

            J 1 Reply Last reply
            0
            • S Sergey2

              After using dependencywalker I understood that my program requires msvcm90.dll, msvcp90.dll, msvcr90.dll. I copied them into directory with my .exe file, but it didn't helps. Maybe I should copy them to some system folder&

              J Offline
              J Offline
              Ju ncho
              wrote on last edited by
              #6

              Try installing the Microsoft Visual C++ 2008 Redistributable Package that installs and registers the dlls you need. If you are using additional COM components you should also register the associated dlls with regsvr32. C++ redist Link: http://www.microsoft.com/downloads/details.aspx?familyid=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&displaylang=en

              JO :)

              L 1 Reply Last reply
              0
              • J Ju ncho

                Try installing the Microsoft Visual C++ 2008 Redistributable Package that installs and registers the dlls you need. If you are using additional COM components you should also register the associated dlls with regsvr32. C++ redist Link: http://www.microsoft.com/downloads/details.aspx?familyid=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&displaylang=en

                JO :)

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                Just for clarification, this isn't a COM error. It is caused by an Fancy MS feature called Windows Shared Side by side Assemblies (or any other weird name, so apologize). See http://msdn.microsoft.com/en-us/library/aa375996(VS.85).aspx[^] Never wondered about the C:\WINDOWS\WinSxS directory? The worst thing you can do is copying the 9.0 dlls to your exe path, or simply registering them in your system directories since this can cause third party applications to fail!!! The MS way would be redistributing the dlls with their own created merge modules located somewhere in the Studio folder. (I'm too lazy to look up the correct location, if you can't find them PM me ). So long, Stefan

                S 1 Reply Last reply
                0
                • L Lost User

                  Just for clarification, this isn't a COM error. It is caused by an Fancy MS feature called Windows Shared Side by side Assemblies (or any other weird name, so apologize). See http://msdn.microsoft.com/en-us/library/aa375996(VS.85).aspx[^] Never wondered about the C:\WINDOWS\WinSxS directory? The worst thing you can do is copying the 9.0 dlls to your exe path, or simply registering them in your system directories since this can cause third party applications to fail!!! The MS way would be redistributing the dlls with their own created merge modules located somewhere in the Studio folder. (I'm too lazy to look up the correct location, if you can't find them PM me ). So long, Stefan

                  S Offline
                  S Offline
                  Scot Brennecke
                  wrote on last edited by
                  #8

                  C:\Program Files\Common Files\Merge Modules

                  Scot Brennecke Software Developer VC++ MVP

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups