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>