Could not load file or assembly 'System.Data.SQLite' or one of its dependencies

试图加载格式不正确的程

异常类型

异常消息Could not load file or assembly 'System.Data.SQLite' or one of its dependencies. 试图加载格式不正确的程序。

异常环境当我把编译好的程序托管到IIS下后,访问时出现了以下问题,服务器环境是IIS 7,操作系统 Windows 7。

解决方法出现上述问题的原因是,所加载的程序集中有32位的,也有64位的,IIS 7 程序池 在Windows下.Net FrameWork是64位的,要想正确使用,需要对程序池进行配置。如下图所示:

posted @ 2014-05-30 17:07  Be Myself  阅读(2552)  评论(0编辑  收藏  举报