Console Application - Unable to find a version of the runtime to run this application (and I have them all)

风流意气都作罢 提交于 2019-12-04 10:43:59

I originally thought someone was going to fuss at me for bad technique when I put my executable here, but I didn't care at the time. I just wanted to get it to work.

Notice where the executable was placed?

It is in the C:\Windows\System32 folder.

Obviously, the System32 folder is meant for Windows commands.

So, why did I place my small executable here? Because that folder is almost guaranteed to be included in the Windows Environment Path.

I knew someone was eventually going to get irritated with me, so I thought I'd move it today into a suitably named new folder in the Program Files (x86) directory.

Well, I did that, and now, like magic, the program runs fine.

So, I'm going to guess that .NET Framework applications are not permitted to run in the System32 folder.

I would, however, like to hear people tell me what is exactly up with that and why .NET Framework applications can not get in here.

I suspect the .Net installation is corrupted. You can try the following tool to clean .net framework and re-install.

.net framework cleanup tool

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