混合模式程序集是针对“v2.0.50727”版的运行时生成的,在没有配置其他信息的情况下,无法在 4.0 运行时中加载该程序集。

参考:http://blog.163.com/gz_ricky/blog/static/182049118201011104210827/

程序中用到SQLite,添加引用后会出现此错误。解决方法如下

在app.config的configuration节点下添加

 <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0"/>
  </startup>

原文地址:https://www.cnblogs.com/lxcsmallcity/p/2110850.html