我无法在 Visual Studio 中构建 64x 项目
I can't build 64x project in Visual Studio
我在 visual studio 2010 年创建了一个非常简单的解决方案,这个解决方案有:
- 一个 class 库...和一个名为 "HelloWord"
的 class
- ASP.NET 网站项目...其中有一页名为 "Home.aspx"
- Home.aspx 呼叫 "HelloWord" class
问题:我有一台 Win7/64x 机器,我希望这个项目编译为 64x(不是 Anycpu)...当我尝试 运行 时,我收到这条消息
System.BadImageFormatException: Could not load file or assembly...
为什么?
我设法找到了让它发挥作用的方法
1-) 运行 你的项目是 "Any CPU"
2-) 强制 IIS 将 运行 和 "aplication pool" as "32bit = false"
我在 visual studio 2010 年创建了一个非常简单的解决方案,这个解决方案有:
- 一个 class 库...和一个名为 "HelloWord" 的 class
- ASP.NET 网站项目...其中有一页名为 "Home.aspx"
- Home.aspx 呼叫 "HelloWord" class
问题:我有一台 Win7/64x 机器,我希望这个项目编译为 64x(不是 Anycpu)...当我尝试 运行 时,我收到这条消息
System.BadImageFormatException: Could not load file or assembly...
为什么?
我设法找到了让它发挥作用的方法
1-) 运行 你的项目是 "Any CPU"
2-) 强制 IIS 将 运行 和 "aplication pool" as "32bit = false"