Sitecore – Could not load file or assembly System.Data.SQLite

After installing Sitecore v6, you get the following error when viewing the website or sitecore UI:

Sitecore Could not load file or assembly ‘System.Data.SQLite, Version=1.0.48.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139′ or one of its dependencies. An attempt was made to load a program with an incorrect format.

This is actually detailed in page 20 of the sitecore troubleshooting doc, but I missed it first time round. This is caused by the presence of System.Data.SqlLite in the bin folder when running on 64-bit OS. An alternative dll is available for 64bit OS from Sitecore.

Solution: If you’re are not using SQLite simply the delete the System.Data.SqlLite.dll from the bin folder and recycle your app to get back up and running. If you are using SQLite, download the alternative dll for 64bit OS.

This entry was posted in ASP.net, C#, Sitecore, Web development and programming and tagged , , . Bookmark the permalink.

4 Responses to Sitecore – Could not load file or assembly System.Data.SQLite

  1. Umair Rashid says:

    Nice, thank you.

  2. Alex Kamburov says:

    Actually the 64-bit dll can be found in the bin_x64 folder

    • paulg says:

      I don’t think the bin_x64 folder is present if you use the zipped web root package, it’s only available when using the .exe installer.

      • Christian Willumsen says:

        It’s present in the zip for Webform for Marketers.

        But I haven’t found it in newer version of SIP (3.2 or 3.3) in either the install or zip fil.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>