C# exe not starting on Win7 build computer

佐手、 提交于 2019-12-12 02:38:08

问题


I have a Win7 x64 computer with Visual Studio 2015 community edition. I created a WPF application, and when I started it with debugger, everything went fine. Then, I wanted to start the exe file directly after closing Visual studio, and nothing happened. When I checked the Task Manager, I saw 3 processes with the same name, and I could not kill any of them.

I thought this is VS bug, so I sent the executable to a friend of mine, but it seemed correctly at his computer (Win10). Then I tried to figuring out the problem:

  • Changed from Debug to Release
  • Tried "Any CPU", "x86" and "x64" modes
  • Changed the project from .Net 4.5.2 to .Net 4
  • Tried to repair Visual Studio
  • Uninstalled Visual Studio 2015 Community and installed VS2015 Express
  • I made a new Console Application, with an "Console.Writeline("x");" in it only, but the result is the same.

After sending it to more friends, I believe, that the exe file is correct and the problem is not originated to Visual Studio. I think my computer misses some library or something. If anyone is interested to the source and the exe files, I uploaded them to Dropbox.

Does anyone faced issues like this? Do you have any tips how to solve this issue?

来源:https://stackoverflow.com/questions/33724858/c-sharp-exe-not-starting-on-win7-build-computer

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