0
我用c#.net(4.0)和SQLite数据库创建了一个Windows应用程序。它运作良好,同时调试,然后我创建的安装和安装它,然后,当我执行的.exe它给出这样的错误:应用程序 -为什么在Windows应用程序设置中发生System.IO.FileLoadException?
在
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.
当我创建我的设置app.config,代码是
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
</startup>
</configuration>
并且数据库位于[System.Environment.CurrentDirectory]例如。 bin \ debug目录,其中.exe保留。
我在创建设置时做了什么错误,我是否需要在SQLite的情况下添加更多内容?
需要帮助!非常感谢。