C# app runs in Windows 7, but not in Windows XP

前端 未结 4 1334
春和景丽
春和景丽 2021-01-15 03:58

I have created an application in VS C# Express 2008 using Windows 7 as my OS. It runs perfectly fine on other W7 machines, but when we try and deploy it on a machine with XP

相关标签:
4条回答
  • 2021-01-15 04:06

    Not a lot of info but some things to check:

    Make sure you have the latest patches on XP and SP release

    Maybe you need to run the program as administrator - are you logging in as admin

    Have you checked the windows appliation error log to see if there is anything there that might be helpful

    0 讨论(0)
  • 2021-01-15 04:15

    You should set up an UnhandledExceptionEventHandler so that you can log information about the current state of your application and the exception information. It isn't going to stop your application from crashing, but it will give you more information about what happened and make it easier on your end user to give you what you need to know when the application crashes.

    This article give a good description of how to do that.

    0 讨论(0)
  • 2021-01-15 04:20

    Log the exception which is thrown by the application so that you can fix it.

    0 讨论(0)
  • 2021-01-15 04:21

    First you must be sure that .Net Framework 3.5 is installed on your Windows XP machine. If everything is OK, then you should check if you are using "3rd party dlls as reference" and validate their existence and correct versions on your Windows XP machine.

    Probably this can help.

    0 讨论(0)
提交回复
热议问题