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. Managed C++/CLI
  4. Side-by-side configuration errors

Side-by-side configuration errors

Scheduled Pinned Locked Moved Managed C++/CLI
questionannouncementcsharpc++visual-studio
4 Posts 3 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.
  • L Offline
    L Offline
    Lucidation
    wrote on last edited by
    #1

    Ok, so first off, I'm really new to C++ so please let me know if this is in the wrong forum. I'm trying to finish a small project using Visual Studio 2008 Professional and I'm running into an error: "The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log for more detail". So this is roughly what I'm doing: 1. Create a new Windows Forms Application project 2. Add some Labels (one of them is dynamic and displays the current time), some bitmap pictures, and a clickable hyperlink 3. Create a version.rc file to display version info on the compiled .EXE file. 4. After making sure it runs in Debug mode, I compile it in Release mode The compiled .EXE file works just fine on my 64-bit Windows 7 box I'm developing on, and it works fine on several 32-bit Windows 7 machines I've tested. It also worked on an XP box I got my hands on. However, when I had some others here at work test it, they got the above error on a Windows Vista machine and on a Windows XP machine. So what gives? How can I create a simple little app that we can launch on all the various newer (XP on up) operating systems without having to rely on a prerequisite add-on being installed? I'm just looking to create some basic user notification windows. Nothing too fancy. Is there something I need to change to get this thing to work consistently on all the OSes? Or do I need to do something other than a Windows Forms Application? Thanks!

    A 1 Reply Last reply
    0
    • L Lucidation

      Ok, so first off, I'm really new to C++ so please let me know if this is in the wrong forum. I'm trying to finish a small project using Visual Studio 2008 Professional and I'm running into an error: "The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log for more detail". So this is roughly what I'm doing: 1. Create a new Windows Forms Application project 2. Add some Labels (one of them is dynamic and displays the current time), some bitmap pictures, and a clickable hyperlink 3. Create a version.rc file to display version info on the compiled .EXE file. 4. After making sure it runs in Debug mode, I compile it in Release mode The compiled .EXE file works just fine on my 64-bit Windows 7 box I'm developing on, and it works fine on several 32-bit Windows 7 machines I've tested. It also worked on an XP box I got my hands on. However, when I had some others here at work test it, they got the above error on a Windows Vista machine and on a Windows XP machine. So what gives? How can I create a simple little app that we can launch on all the various newer (XP on up) operating systems without having to rely on a prerequisite add-on being installed? I'm just looking to create some basic user notification windows. Nothing too fancy. Is there something I need to change to get this thing to work consistently on all the OSes? Or do I need to do something other than a Windows Forms Application? Thanks!

      A Offline
      A Offline
      Andreoli Carlo
      wrote on last edited by
      #2

      My idea is that you are missing out some dll in the redistributable....in the computer were it works it have the dll. try this: http://www.dependencywalker.com/[^]

      L 1 Reply Last reply
      0
      • A Andreoli Carlo

        My idea is that you are missing out some dll in the redistributable....in the computer were it works it have the dll. try this: http://www.dependencywalker.com/[^]

        L Offline
        L Offline
        Lucidation
        wrote on last edited by
        #3

        I think I've got it working now. I ended up copying the files located in "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT" into the same folder as my .EXE and it now seems to be working on all the machines I've tested.

        D 1 Reply Last reply
        0
        • L Lucidation

          I think I've got it working now. I ended up copying the files located in "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT" into the same folder as my .EXE and it now seems to be working on all the machines I've tested.

          D Offline
          D Offline
          dybs
          wrote on last edited by
          #4

          Instead of manually copuing the required CRT files, you might want to look into using a Setup and Deployment project. Right-click on the project and select Add Merge Module, and select the module corresponding to the CRT file you listed above. If there are any components your app depends on, you can add those to the project as well. When the user runs the generated setup.exe file, it will autoamtically install the prerequisites (including the merge module), and then install your app. Regarding the prerequistes, there's a handy utility here[^] that allows you to build custom prerequisite packages for VS. Dybs

          The shout of progress is not "Eureka!" it's "Strange... that's not what i expected". - peterchen

          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