1. ホーム
  2. IIS

ファイルまたはアセンブリ 'System.Data.SQLite' またはその依存関係の 1 つをロードできませんでした。

2022-02-09 23:50:16
<パス
 Today a colleague created a new IIS (7) website on a server (winserver 2008 x64), but reported the following error: Could not load file or assembly 'System.

  An attempt was made to load a program with an incorrect format. 
   Here is the image:

   at first thought it was a permissions problem, set all permissions and still reported an error.

   Then tried the application pool .NET version and other ways, but still did not find the cause.

   finally searched the Internet to find a solution, it turns out that the advanced options of the application pool inside the option on compatibility with WIN32 programs.

   SQLite is divided into operating system versions, X86 and X64; therefore, the application pool should be compatible with WIN32;


<イグ

   at first thought it was a permissions problem, set all permissions and still reported an error.

   Then tried the application pool .NET version and other ways, but still did not find the cause.

   finally searched the Internet to find a solution, it turns out that the advanced options of the application pool inside the option on compatibility with WIN32 programs.

   SQLite is divided into operating system versions, X86 and X64; therefore, the application pool should be compatible with WIN32;


<イグ
上記のように、この設定の後、サイトはエラーを報告しません。