none
C# .Net windows application not running in windows 7 ultimate RRS feed

  • Question

  • I have developed my C# .net windows application in Windows XP SP3 which is working successfully however its not working in windows 7 ultimate SP1.

    I have installed .Net framework 3.5 & 4.0 in Windows 7 still its not working...

    Can you please provide me the solution.


    is there any problem with X86 bits or X64 bits, because on X64 bits its working file but when i use X86 my application not working properly.
    • Edited by deepan2678 Sunday, November 20, 2011 12:47 PM
    Sunday, November 20, 2011 12:25 PM

Answers

  • Hi Deepan2678,

     

    Welcome to the MSDN forum.

     

    First, I recommend you try MVP’s suggestions to verify the .NET Frameworks you have.

     

    Second, could you please let me know the specific error messages you encountered?

     

    Third, I recommend you try to debug your application on Windows 7. After you can debug it on Windows 7 without problems, please try to run it on Windows 7.

     

    Then, for your last question, if you select the platform of your project is x86, you will fail to run this application on a x64 machine. Since a 64-bit process will be unable to call into an assembly set as X86. Reasons to set your project as x86 include dependencies upon native DLLs that are only available in 32-bit or making native calls assuming 32-bit . Applications and assemblies marked for x86 can still run on 64-bit Windows. However they run under WOW64. Visual Studio itself runs under this emulation mode since it is a 32-bit application.

    Setting the project to x64 will specify that the assembly must run under 64-bit Windows. Attempting to run the assembly on 32-bit Windows or call the assembly from a 32-bit process will result in a runtime error.

     

    You can refer to these pages:

    http://msdn.microsoft.com/en-us/library/ms241064.aspx

    http://msdn.microsoft.com/en-us/library/zekwfyz4(v=VS.100).aspx

    http://visualstudiohacks.com/articles/visual-studio-net-platform-target-explained/

     

    If you have any other concerns, please feel free to let me know.

     

    Best Regards,


    Alexander Sun [MSFT]
    MSDN Community Support | Feedback to us
    • Marked as answer by Alexander Sun Tuesday, November 29, 2011 3:21 AM
    Tuesday, November 22, 2011 6:23 AM

All replies

  • Some clarification from you, please.

    What version of Visual Studio was used to create the project, and which .NET Framework version does your C# project target?

    You mention installing .NET Framework 3.5 on Windows 7. As .NET Framework 3.5 SP1 is an integral part of the OS, it's impossible for a user to install it.

    What error message(s) are displayed when your application fails?

    You can verify the integrity of the .NET Frameworks on the Windows 7 machine with this tool:

    http://blogs.msdn.com/b/astebner/archive/2008/10/13/8999004.aspx

    Please post the first ~ 30 lines and last ~ 30 lines of output here.

     

     

    Sunday, November 20, 2011 2:18 PM
  • Hi Deepan2678,

     

    Welcome to the MSDN forum.

     

    First, I recommend you try MVP’s suggestions to verify the .NET Frameworks you have.

     

    Second, could you please let me know the specific error messages you encountered?

     

    Third, I recommend you try to debug your application on Windows 7. After you can debug it on Windows 7 without problems, please try to run it on Windows 7.

     

    Then, for your last question, if you select the platform of your project is x86, you will fail to run this application on a x64 machine. Since a 64-bit process will be unable to call into an assembly set as X86. Reasons to set your project as x86 include dependencies upon native DLLs that are only available in 32-bit or making native calls assuming 32-bit . Applications and assemblies marked for x86 can still run on 64-bit Windows. However they run under WOW64. Visual Studio itself runs under this emulation mode since it is a 32-bit application.

    Setting the project to x64 will specify that the assembly must run under 64-bit Windows. Attempting to run the assembly on 32-bit Windows or call the assembly from a 32-bit process will result in a runtime error.

     

    You can refer to these pages:

    http://msdn.microsoft.com/en-us/library/ms241064.aspx

    http://msdn.microsoft.com/en-us/library/zekwfyz4(v=VS.100).aspx

    http://visualstudiohacks.com/articles/visual-studio-net-platform-target-explained/

     

    If you have any other concerns, please feel free to let me know.

     

    Best Regards,


    Alexander Sun [MSFT]
    MSDN Community Support | Feedback to us
    • Marked as answer by Alexander Sun Tuesday, November 29, 2011 3:21 AM
    Tuesday, November 22, 2011 6:23 AM
  • Hello Alex

    I am facing very strange issue with the windows application. I have created project setup in .Net 4.0 for windows application 32 bit OS. Now this is working on win xp properly but same not working on windows 7 32 bit. here is the below error screen:

    Could you please help

    Thanks

    Amol

    Wednesday, July 25, 2012 4:18 PM
  • did you got the solution? i am facing same problem. please reply if you got the solution. 
    Tuesday, August 7, 2012 1:49 PM
  • Hello, pawanl.

    Please do not hijack answered threads.

    To get more readers and the best suggestions, you should start a new thread and supply the information we requested from the OP here, which was never supplied.

    First, verify your .NET Framework 4.0 on the problem machine as follows:

    Run this tool with .NET Framework 4.0 selected:

    http://blogs.msdn.com/b/astebner/archive/2008/10/13/8999004.aspx

    Post the first ~ 15 lines and last ~ 15 lines of output here.

    If the framework verifies, what happens if you create a new project of the same type on the problem machine? Can you build it?

    Reminder, you should post your complete problem description and the information requested in a NEW thread.

    Tuesday, August 7, 2012 7:44 PM