C# 使用SQLite由于.NetFramework 的错误
2012-05-25 15:29
871 查看
In order to use a CLR 2.0 mixed
mode assembly, you need to modify your App.Config file to include:
The key is the
This causes the CLR to use the latest version (4.0) to load your mixed mode assembly. Without this, it will not work.
Note that this only matters for mixed mode (C++/CLI) assemblies. You can load all managed CLR 2 assemblies without specifying this in
mode assembly, you need to modify your App.Config file to include:
<?xml version="1.0"?> <configuration> <startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> </startup> </configuration>
The key is the
useLegacyV2RuntimeActivationPolicyflag.
This causes the CLR to use the latest version (4.0) to load your mixed mode assembly. Without this, it will not work.
Note that this only matters for mixed mode (C++/CLI) assemblies. You can load all managed CLR 2 assemblies without specifying this in
app.config.
相关文章推荐
- 【C#】ADO .Net Entities Framework使用查询语句时遇到的错误
- 使用 Visual C# .NET 在 ASP.NET 中创建自定义错误报告
- 利用SQLite ADO.NET在.NET(C#)中使用SQLite数据库
- 使用 Visual C# .NET 在 ASP.NET 中创建自定义错误报告
- 如何高效使用SQLite .net (C#)
- 转载:使用飞信VMDotNet使C#程序脱离.NET FRAMEWORK也能运行的一些心得
- 如何高效使用SQLite .net (C#)
- C#.NET下使用Sqlite
- 在Windows Server 2008下直接安装SQL Server 2008时,会出现如下错误: 必须使用“角色管理工具”安装或配置Microsoft .NET Framework 3.5 SP1
- [转]如何高效使用SQLite .net (C#)
- 使用.net framework 2.0用c#编写ActiveX控件(编写,部署,升级更新)
- 如何高效使用SQLite .net (C#)
- 由于内部错误,服务器无法处理该请求。有关该错误的详细信息,请打开服务器上的 IncludeExceptionDetailInFaults (从 ServiceBehaviorAttribute 或从 <serviceDebug> 配置行为)以便将异常信息发送回客户端,或打开对每个 Microsoft .NET Framework SDK 文档的跟踪并检查服务器跟踪日志。
- 使用AForge.NET Framework打开摄像头并截图 C#
- 使用.NET Framework提供的InstallUtil.exe安装Windows服务安装时遇到的2种常见错误
- 使用 Visual C# .NET 在 ASP.NET 中创建自定义错误报告
- 使用飞信VMDotNet使C#程序脱离.NET FRAMEWORK也能运行的一些心得 ------(我复制别个的)
- SQLite简单使用(C# ADO.net)
- error 25015安装程序集“C:\Windows\Microsoft .NET\Framework\v2.0.50727\xxx.dll”失败,原因是出现了系统错误:另一个程序正在使用此文件,进程无法访问
- C# Android 开发中使用 Sqlite.NET ORM