Application.exe has encountered a issue and needs to be closed error at the time of Application Launch

给你一囗甜甜゛ 提交于 2019-12-11 16:48:26

问题


I have made a windows form application using Visual Studio 2010 in Windows 7.Every thing is working fine into my System.I have build the application on Visual studio 2010 and it is ok.Application.exe is getting created under the Bin in Release Mode of the Visual Studio. Now i am trying to launch this application On Clients PC which is Windows XP but it is giving following.

Application has encountered a problem and needs to be closed.we are sorry for inconvenience.

I am not getting the reason for this.Please help .Thanks in advance.


回答1:


Problem 1: i'm suspecting that the .NET Framework version with which you built the Application is heigher than what client is using.

Solution 1: try to build your appliction with the client compatible .NET Framework version.

Problem 2: You might be building your application with X64 option in build settings.

Solution 2: change the Platform Target of the Application from X64 to X86 from buid settings and rebuild your application.



来源:https://stackoverflow.com/questions/22098580/application-exe-has-encountered-a-issue-and-needs-to-be-closed-error-at-the-time

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!