Fork me on GitHub

在64位Windows 7/2008操作系统上部署32位的Web应用程序错误

当你在64位Windows 7/2008操作系统上部署32位的Web应用程序,会出现这样的错误:

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

这个错误的原因是64位的IIS 7.x的应用程序池的默认设置是64位的,没有启用32位的支持:

image

把配置的false更改为true就可以解决问题。

posted @ 2010-06-22 22:40  张善友  阅读(1803)  评论(0编辑  收藏  举报