Could not load file or assembly 'System.Data.SQLite'

Problem: On my live server when I was installing one of my clients website I got an error - Could not load file or assembly 'System.Data.SQLite, Version=1.0.65.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Solution:

Go to the IIS7 Application Pool -> Advanced settings and make sure that "Enable 32 - Bit Applications" is set to true for the app pool.