locked
Application built on Windows 7 in not running on XP RRS feed

  • Question

  • This application built on Windows 7 in not running on XP. I’m getting the following exception. 

    Message: Cannot create instance of 'MainWindow' defined in assembly 'Visualizer, Version=1.0.0.6294, Culture=neutral, PublicKeyToken=null'. Exception has been thrown by the target of an invocation.  Error in markup file 'Visualizer;component/MainWindow.xaml' Line 2 Position 2.

    I am not sure what is causing this problem. But when I checked the .net framework 3.4 SP1 versions, I’m seeing different builds. 
    Windows XP:  3.5.30729.1
    Windows 7:    3.5.30729.4962

    Wondering if this different versions causing this problem or something else.

    Thank you

    Wednesday, February 17, 2010 7:59 PM

Answers

  • I build apps on Windows 7 and deliver them to clients with Windows XP without problem.

    I just checked. My Windows 7 box has the .NET version you mention. My Windows XP virtual machine has the .NET version you mention. I built an app in Expression Blend on Windows 7. Copied the EXE to my XP virtual machine. It runs without error on both machines.

    > Wondering if this different versions causing this problem or something else

    I would suspect "something else."

    Wally
    Software development, consulting, and training
    • Proposed as answer by Wallace Kelly Thursday, February 18, 2010 12:29 AM
    • Marked as answer by Cheers Thursday, February 18, 2010 10:53 PM
    Thursday, February 18, 2010 12:19 AM

All replies

  • I build apps on Windows 7 and deliver them to clients with Windows XP without problem.

    I just checked. My Windows 7 box has the .NET version you mention. My Windows XP virtual machine has the .NET version you mention. I built an app in Expression Blend on Windows 7. Copied the EXE to my XP virtual machine. It runs without error on both machines.

    > Wondering if this different versions causing this problem or something else

    I would suspect "something else."

    Wally
    Software development, consulting, and training
    • Proposed as answer by Wallace Kelly Thursday, February 18, 2010 12:29 AM
    • Marked as answer by Cheers Thursday, February 18, 2010 10:53 PM
    Thursday, February 18, 2010 12:19 AM
  • Thanks Wally. It was something else.

    I am using Infragistic controls and somehow I got the different builds of same version. It worked when I copied the infragistics dlls from my Windows 7 computer.


    Thursday, February 18, 2010 10:57 PM