0

I created a extremely simple solution in visual studio 2010, this solution has:

  • A class library...and a class named "HelloWord"
  • ASP.NET web site project...and one page inside it named "Home.aspx"
  • Home.aspx calls "HelloWord" class

Problem: I have a Win7/64x machine and i want this project to compile as 64x (not Anycpu)...when i try to run i receive this message

System.BadImageFormatException: Could not load file or assembly...

Why?

4

1 回答 1

0

我设法找到了一种让它发挥作用的方法

1-) 将您的项目作为“任何 CPU”运行

2-) 强制 IIS 将“应用程序池”作为“32bit = false”运行

于 2015-05-11T18:56:39.213 回答