Visual Studio 的默认运行环境好像是 32 位的。我需要在 64 位模式下运行我的应用程序之一。我将“平台目标”等项目属性更改为 64 位。但现在我无法运行我的应用程序。我收到类似“无法加载文件或程序集‘MyProject’或其依赖项之一的错误。尝试加载格式不正确的程序。”
然后我尝试了一个新的空白 WebApplication。仍然在那里也显示相同的错误。我删除了所有参考 dll 文件,并从该路径“C:\Windows\Microsoft.NET\Framework64”中添加了依赖项。但不幸的是仍然遇到同样的错误。
我更改了 IIS 的应用程序池属性(启用 32 位应用程序 = True)。然后尝试在本地 IIS Web 服务器中运行,但这也不起作用。
正在使用Windows 7,64位操作系统和Visual Studio 2010。并且使用以下c#代码查找运行环境时
using (RegistryKey registryKey =
Registry.LocalMachine.OpenSubKey(@"SOFTWARE\R-core\R"))
{
var envPath = Environment.GetEnvironmentVariable("PATH");
string rBinPath = (string)registryKey.GetValue("InstallPath");
string rVersion = (string)registryKey.GetValue("Current Version");
rBinPath = System.Environment.Is64BitProcess
? rBinPath + "\\bin\\x64" :rBinPath + "\\bin\\i386";
Environment.SetEnvironmentVariable(
"PATH",
envPath + Path.PathSeparator + rBinPath);
}
Run Code Online (Sandbox Code Playgroud)
System.Environment.Is64BitProcess 的值总是false 我不想走64位的路径,如果运行环境是32位的。那么如何强制VS在64位模式下运行呢?
在这里我分享了我得到的错误响应页面。请帮我解决这个问题谢谢。

Here i want to use two buttons which cover the entire screen width and the buttons should have equal width. And alo there should not be any space between these buttons.
I tried with the following HTML and CSS codes but i didn't get what i expect;
CSS
#container
{
width:100%
}
#button1
{
width:50%;
}
#button2
{
width:50% 100%;
}
Run Code Online (Sandbox Code Playgroud)
HTML
<div id="container">
<button id="button1">Button1</button>
<button id="button2">Button2</button>
</div>
Run Code Online (Sandbox Code Playgroud)
I tried the code here here the buttons not covering the …