Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7498085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T19:19:45+00:00 2026-05-29T19:19:45+00:00

I have a .NET 4 app which consists of the app and two class

  • 0

I have a .NET 4 app which consists of the app and two class libraries. All use a reference to System.Data.SQLite. I’m using the x86 version of SQLite and all of my assemblies are set to x86.

On some machines, when I try to do something in the app which uses SQLite, I get an unhandled exception:

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

I’m at my wits end with this, as I’ve tried both the .NET 3.5 and .NET 4 SQLite DLLs in x86 and x64 and I get the same error. I’ve tested on four machines. The following work fine:

  • Win7 Ultimate x64
  • Win7 Pro x64
  • Server 2008 x64

The following throw the exception:

  • Win7 Ultimate x64 (user’s machine)
  • WinXP inside XP Mode on the Win7
    Ultimate x64 which works

If it was an architecture problem, I’d expect XP Mode running on a working Win7 x64 to also work, but it doesn’t. Also, none of the test.exe files includede with the SQLite bundle work inside VMWare, which makes me think there’s something missing.

I’ve run FUSLOGVW on the machine in XP Mode and this is the entry for System.Data.SQLite:

The operation was successful.
Bind result: hr = 0x0. The operation completed successfully.

Assembly manager loaded from:  c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable  C:\Documents and Settings\XPMUser\Desktop\Release\ChickenPing.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: User = VIRTUALXP-92688\XPMUser
LOG: DisplayName = System.Data.SQLite, Version=1.0.79.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139
 (Fully-specified)
LOG: Appbase = file:///C:/Documents and Settings/XPMUser/Desktop/Release/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = ChickenPing.exe
Calling assembly : ChickenPing.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Documents and Settings\XPMUser\Desktop\Release\ChickenPing.exe.Config
LOG: Using host configuration file: 
LOG: Using machine configuration file from c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Data.SQLite, Version=1.0.79.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139
LOG: GAC Lookup was unsuccessful.
LOG: Attempting download of new URL file:///C:/Documents and Settings/XPMUser/Desktop/Release/System.Data.SQLite.DLL.
LOG: Assembly download was successful. Attempting setup of file: C:\Documents and Settings\XPMUser\Desktop\Release\System.Data.SQLite.dll
LOG: Entering run-from-source setup phase.
LOG: Assembly Name is: System.Data.SQLite, Version=1.0.79.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139
LOG: Binding succeeds. Returns assembly from C:\Documents and Settings\XPMUser\Desktop\Release\System.Data.SQLite.dll.
LOG: Assembly is loaded in default load context.

Which indicates success, yet the unhandled exception still occurs?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T19:19:50+00:00Added an answer on May 29, 2026 at 7:19 pm

    This was somewhat obscure to track down. It turns out the VC++ 2010 redistributable runtime is needed. As far as I know, System.Data.SQLite never used to have this dependancy, or at least I was never aware of it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using VS2010,C# to develop an automation site (ASP.NET web app) which may have
I have an ASP.NET MVC app which has a bootstrapper class that configures log4net
I have asp.net app where I am using gridview for data showing, editing and
I have a .Net console App which using a scheduled event will start, call
I have an asp.net web app which holds its data in an sql server
I have a .NET app with buttons which use numbers for mnemonics. (e.g. &1
I have an ASP.Net Web App which is secured using claims based authentication, currently
I have a .NET app which works in 32 and 64 bit. I would
Have an ASP.net web app which works fine for a few days, but then
I have an ASP.NET MVC4 app which uses DotNetOpenAuth 4.0.1 to authenticate users with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.