简体   繁体   English

C#应用程序无法在我的PC上运行

[英]C# application doesn't work at my PC

I've saw several Thread about similar problems. 我已经看到了几个关于类似问题的主题。 But I couldn't find proper answers for my situation. 但是我找不到适合自己情况的正确答案。 Please Help. 请帮忙。

I have a application(about 10,000 line) developed on my PC(Windows7 64bit). 我在PC(Windows7 64位)上开发了一个应用程序(约10,000行)。 Target platform is x86, and .NET version is 4.5.2. 目标平台是x86,.NET版本是4.5.2。 It is works fine when I run it on my PC in Visual Studio 2015 Debugging mode. 当我在Visual Studio 2015调试模式下的PC上运行它时,它工作正常。 It is works fine too, when I make it setup package, and install on my 4 friend's PCs and test. 当我制作安装程序包并将其安装在4个朋友的PC上并进行测试时,它也可以正常工作。 (A- window7 32bit, B - windows vista 32bit, C - windows7 64bit, D - windowsXP 32bit) (A- window7 32位,B-Windows Vista 32位,C-Windows7 64位,D-WindowsXP 32位)

Just on my PC and, E - windows XP 32 bit, It isn't work. 仅在我的PC和E-Windows XP 32位上,这是行不通的。 On E, Installer isn't work. 在E上,安装程序不起作用。 Error occur. 发生错误。 And on my PC, Installer works properly, Install is completed perfectly. 在我的PC上,安装程序可以正常运行,安装可以完美完成。 But when I run it, it doesn't show window form. 但是当我运行它时,它不显示窗口形式。 just show me hourglass, beside mouse pointer.... 只是给我看沙漏,鼠标指针旁边。

All of tested PC have .NET 4.5.2, and up-to-date service pack. 所有经过测试的PC均具有.NET 4.5.2和最新的Service Pack。

Anyone know about this situation? 有人知道这种情况吗? Please Help. 请帮忙。

As many have stated, the .net version you used is not working on XP. 如许多人所述,您使用的.net版本无法在XP上运行。 This kind of things happens to me, when i forgot to properly add image resources to the project, or if some path to a file is not dynamic. 当我忘记将正确的图像资源添加到项目中,或者某个文件的路径不是动态的时,这种情况就会发生在我身上。 Many of my colleagues usually use a path to images like M:\\Images\\bla.jpg, and when come to school, of course there is no M disk. 我的许多同事通常都使用诸如M:\\ Images \\ bla.jpg之类的图像的路径,而且上学时当然没有M盘。

Of course my examples are pretty newbie, but usually when something is not working as its supposed to, check the trivial things first =D 当然,我的示例是相当新手,但通常在某些情况无法正常工作时,请首先检查琐碎的事情= D

I believe that you haven't handled an exception the right way (although in most cases you would get an error message, but it happend to me that it doesn't). 我相信您没有以正确的方式处理异常(尽管在大多数情况下,您会收到一条错误消息,但发生在我身上却没有)。

As others suggested you, try add a logging system to the application, maybe this could solve you out. 正如其他人所建议的那样,尝试将日志记录系统添加到应用程序中,也许这可以解决您的问题。

Sometimes it helps if you rebuild the solution or code analyse. 如果您重新构建解决方案或代码分析,有时会有所帮助。

Good luck! 祝好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 C#应用程序在某些PC中无法正常运行 - c# application doesn't work properly in some pc 当我在另一台 PC 上安装 C# 应用程序时,数据库无法正常工作 - When I install my C# app on another PC, the database doesn't work C#:应用程序无法访问客户端PC中的数据库 - C# : Application doesn't access database in client pc Web服务可在我的PC上运行,但不能在服务器PC上运行 - Web Service work on my pc but doesn't work server pc 对服务的PATCH请求在我的C#应用​​程序中不起作用,但在Fiddler中起作用 - PATCH request to the service doesn't work within my C# application, but works in Fiddler 从另一个.NET应用程序调用时,我的WebService c#无法正常工作 - My WebService c# doesn't work when I call it from another .NET application 当我安装编译的应用程序时,c# Language.resx 不起作用 - c# Language.resx doesn't work when I install my compiled application 我的c#应用程序的发行版在其他计算机“ Microsoft Office Interop Excel”上不起作用 - Release of my c# application doesn't work on other machines “Microsoft office Interop Excel” C#:System.Windows.Application.Current.MainWindow在其他PC上未返回相同的值 - C# : System.Windows.Application.Current.MainWindow doesn't return same value on other PC C#WinForm ClickOnce应用程序在安装后无法正常工作 - C# WinForm ClickOnce application doesn't work after installation
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM