When using the SQLite database, "system. Data. Common. dbconnection" defines the cause of the error in the unreferenced assembly.

Source: Internet
Author: User

This is because "system. Data. Common. dbconnection" is not referenced when you use the SQLite database.ProgramCentralized definition error!

But soon I found the cause. I saw a lot of problems on the Internet, so I decided to write it out.

Two system. Data. SQLite. dll

First: C: \ Program Files \ SQLite. Net \ bin \ system. Data. SQLite. dll -------- (size: 883kb) for Windows Applications

Second: C: \ Program Files \ SQLite. Net \ bin \ compactframework \ system. Data. SQLite. dll ---------- (size: 478kb) handheld device (PDA)

Because the DLL files used for PDAs are smaller than those used for Windows applications, there is nothing available.

If you reference the first one in a Windows application, if you reference the second one in a mobile application

However, if you are running c: \ Program Files \ SQLite. net \ bin or in c: \ Program Files \ SQLite. net \ bin \ compactframework. data. SQLite. if you copy the DLL and reference it, it's easy to get the wrong object!

The reason for the above problem is that you applied system. Data. SQLite. DLL for the Windows application to the mobile program.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.