为什么我不能运行我的SYSTEM32

为什么我不能运行我的SYSTEM32

本文介绍了为什么我不能运行我的SYSTEM32 exe文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了一个程序,并编译它。它将按预期在调试文件夹中。我把它并把它放在SYSTEM32但它不会运行。它给出了这样的错误:

I made a program and compiled it. It works as expected in the debug folder. I took it out and put it in system32 but it wont run. It gives this error:

.NET框架初始化错误
  无法找到一个版本的运行时运行该应用程序。

我试着将它放在它自己的文件夹中的调试文件夹中,它的工作没有其他调试文件。我试着运行它作为一个管理员。我知道我有正确的.NET Framework版本,因为它能够SYSTEM32到外面跑。我试图从其他地方使用命令提示符下运行。我已经试过所有的,但它仍然无法正常工作。

I've tried putting it in it's own folder inside the debug folder and it worked without the other debug files. I've tried running it as an administrator. I know I have the correct .NET Framework version because it is able to run outside of system32. I've tried to run it from somewhere else using the command prompt. I've tried all that but it still doesn't work.

编辑:我也尝试把exe文件在Windows文件夹

I've also tried putting the exe in the windows folder.

推荐答案

这个问题是由于exe文件的x86与x64的体系结构构建。在VS2012默认的编译值为anycpu用preFER 86勾选。

This problem is due to the architecture build of the exe x86 vs. x64. The default compile in VS2012 is ANYCPU with prefer x86 ticked.

如果你的版本是默认在x64平台,它应该被复制到C:\ WINDOWS \ Syswow64资料这是32位的system32文件夹下。或应用程序应该有preFER 86选项去掉,并重新编译。

If your build is as default on a x64 platform it should be copied to c:\windows\syswow64 which is the 32 bit system32 folder. Or the application should have the prefer x86 option removed and be recompiled.

不是不管怎样它你没有安装正确的框架的情况下,这是由于Windows在Windows行为和编译配置。

Either way its not a case of you not having the correct framework installed, it is due to Windows on Windows behaviour and compile configuration.

希望这有助于!

这篇关于为什么我不能运行我的SYSTEM32 exe文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 23:46