试图加载格式不正确的程

异常类型

异常消息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位的,要想正确使用,需要对程序池进行配置。如下图所示:

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

相关文章:

  • 2021-11-08
  • 2021-10-31
  • 2022-12-23
  • 2022-12-23
  • 2021-05-05
  • 2021-07-01
  • 2022-12-23
猜你喜欢
  • 2021-09-02
  • 2021-07-08
  • 2022-12-23
  • 2021-06-13
  • 2022-12-23
相关资源
相似解决方案