DBMNG数据库管理与应用

才能是来自独创性。独创性是思维、观察、理解和判断的一种独特的方式。
当前位置:首页 > SQLite > 应用案例

vs2010开发SQLite与.Net Framework 4.0的兼容性解决方案

最近在使用vs2010开发基于SQLite的应用程序时,发现会报出兼容性异常如下:


System.IO.FileLoadException: Mixed mode assembly is built against version ‘v2.0.50727′ of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.


困扰了很久,原来我们只需要添加应用程序配置文件,在configuration节点加入

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


即可解决问题。这样做可以允许旧的应用程序绑定到新的版本之上。

本站文章内容,部分来自于互联网,若侵犯了您的权益,请致邮件chuanghui423#sohu.com(请将#换为@)联系,我们会尽快核实后删除。
Copyright © 2006-2023 DBMNG.COM All Rights Reserved. Powered by DEVSOARTECH            豫ICP备11002312号-2

豫公网安备 41010502002439号