[C#-sqlite] Some strange questions about SQLite

Source: Internet
Author: User
Tags sqlite

The DAO layer of the whole C # today, I use 2013, with the 4.0. NETFramework just after you've created the helper, there's an exception.

+ Connection "helper. Connection "System.IO.FileLoadException" type exception was thrown System.Data.IDbConnection {System.IO.FileLoadException}

Later in the search for an article, add in app. Config

<startup uselegacyv2runtimeactivationpolicy= "true" >
<supportedruntime version= "v4.0"/>
<requiredruntime version= "v4.0.20506"/>
</startup>

http://blog.163.com/lemon_wangjun/blog/static/1197883802011312104054675/

After joining, it's good, but it's strange, sometimes the following exception occurs

Later turned over the old project settings, add the following settings, temporarily good.

<startup uselegacyv2runtimeactivationpolicy= "true" >
<supportedruntime version= "v4.0" sku= ". netframework,version=v4.0 "/>
</startup>

[C#-sqlite] Some strange questions about SQLite

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.