SQLite in. Net 4 winform

Source: Internet
Author: User

A small application recentlyProgramUsing SQLite, I tried Entity Framework of. Net 4 by the way. According to the previous method in. Net 3.5, we configured SQLite and successfully generated the model. F5, debugging and running, exceptions that have never been seen before.

 

"A mixed-mode assembly is generated for the runtime of version v2.0.50727 and cannot be loaded at the runtime of Version 4.0 without configuring other information ."

 

Google, I don't have a piece of related information. It is probably because I use the Chinese version ..... So, it goes to system. data. SQLite taotao solution, see the post, mentioned in app. config startup an attribute of a node. uselegacyv2runtimeactivationpolicy . What is this? things? . net
4 . However, the meaning of this attribute is probably related to the exception, that is, to use 2.0 old method to load 4.0 assembly, maybe so.

 

Press F5 again to pass the test.

 

This issue is not just the SQLite assembly program. I guess some of the earlier. Net versions will have this issue.

 

Source Document<Http://blog.csdn.net/sweetwxh/article/details/5696772>

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.