invalid configuration?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dave Cullen

    invalid configuration?

    I have a VC application created with Studio 2005 and when i try to run the
    exe on the target machine I get an error message that says the program has
    an invalid configuration and I should try reinstalling it. It's just a
    simple dialog app using MFC in a shared DLL. Target machine is XP with Net
    Framework installed.

    Any idea what is being called "configuration" ?

    Thanks


  • Sheng Jiang[MVP]

    #2
    Re: invalid configuration?

    Probably a manifest file specifying where to find the dlls. The message is a
    little misleading because most of the time the cause is a dependency issue.
    See http://channel9.msdn.com/showpost.aspx?postid=369473 for information
    about Visual C++ deployment.
    --
    Sheng Jiang
    Microsoft MVP in VC++
    "Dave Cullen" <nospam@mail.co mwrote in message
    news:u3io4CMcIH A.5400@TK2MSFTN GP03.phx.gbl...
    I have a VC application created with Studio 2005 and when i try to run the
    exe on the target machine I get an error message that says the program has
    an invalid configuration and I should try reinstalling it. It's just a
    simple dialog app using MFC in a shared DLL. Target machine is XP with Net
    Framework installed.
    >
    Any idea what is being called "configuration" ?
    >
    Thanks
    >
    >

    Comment

    • Alex Blekhman

      #3
      Re: invalid configuration?

      "Dave Cullen" wrote:
      I have a VC application created with Studio 2005 and when i try
      to run the exe on the target machine I get an error message that
      says the program has an invalid configuration and I should try
      reinstalling it. It's just a simple dialog app using MFC in a
      shared DLL. Target machine is XP with Net Framework installed.
      >
      Any idea what is being called "configuration" ?
      Probably you're trying to run debug build of the application on
      the target machine. Make relase build and ensure that target
      machine has all necessary libraries installed. MFC is not a part
      of .NET Framework, BTW. Look in MSDN for "Microsoft Visual C++
      2005 Redistributable Package (x86)".

      Alex


      Comment

      • David Wilkinson

        #4
        Re: invalid configuration?

        Dave Cullen wrote:
        I have a VC application created with Studio 2005 and when i try to run the
        exe on the target machine I get an error message that says the program has
        an invalid configuration and I should try reinstalling it. It's just a
        simple dialog app using MFC in a shared DLL. Target machine is XP with Net
        Framework installed.
        >
        Any idea what is being called "configuration" ?
        Dave:

        ..NET framework has nothing to do with MFC. Are you taking steps to install the
        correct MFC and CRT DLL's on the target machine?

        Static linking may be the way to go for you.

        --
        David Wilkinson
        Visual C++ MVP

        Comment

        • Ajay Kalra

          #5
          Re: invalid configuration?

          See this for redistributing MFC:




          If your app is not managed, .net is not needed for this app. Also, an easy
          option would be to make it static link as pointed out by David.

          ---
          Ajay

          "Dave Cullen" <nospam@mail.co mwrote in message
          news:u3io4CMcIH A.5400@TK2MSFTN GP03.phx.gbl...
          >I have a VC application created with Studio 2005 and when i try to run the
          >exe on the target machine I get an error message that says the program has
          >an invalid configuration and I should try reinstalling it. It's just a
          >simple dialog app using MFC in a shared DLL. Target machine is XP with Net
          >Framework installed.
          >
          Any idea what is being called "configuration" ?
          >
          Thanks
          >
          >

          Comment

          Working...