就是下面这个样子
Could not load file or assembly 'System.Data.SQLite' or one of its dependencies. 试图加载格式不正确的程序。 但是我检查 bin文件下确实存在这个文件阿
Could not load file or assembly 'System.Data.SQLite' or one of its dependencies. 试图加载格式不正确的程序。 但是我检查 bin文件下确实存在这个文件阿
解决方案 »
- 如何深入了解asp.net框架?到底什么是asp.net框架?
- GridView中的CommandField列咋设置才能显示成一行啊
- lucence System.UnauthorizedAccessException异常
- 如何把网页自己显示的内容以mail的方式发送?
- 怎样在点击按钮保存的时候把输入框里的简体字自动转化成繁体字后保存到繁体的数据库?
- C#与VB.net对译
- System.Data.OleDb.OleDbException: UPDATE 语句的语法错误。
- 一个DataGrid的小问题(在线)
- 请问用asp.net写类似淘宝的网上开店这样的网站好不好写?有源码下载吗?谢谢!
- 生成web安装项目时出现错误!!!Why?
- 高手速度······
- 视频直播
System.Data.SQLite.dll is a mixed assembly, i.e. it contains both managed code and native code. Therefore a particular System.Data.SQLite.dll is either x86 or x64, but never both.Update (courtesy J. Pablo Fernandez): Cassini, the development web server used by Visual Studio when you press F5 or click the green «play» button, is x86 only which means that even if your workstation is x64, you'll only be able to use the x86 version of System.Data.SQLite.dll.An alternative is not to use Cassini but IIS7 which is properly x64.来自:
http://stackoverflow.com/questions/1278929/could-not-load-file-or-assembly-system-data-sqlite
System.Data.SQLite.dll是一个混合的程序集,包括托管代码和原生代码。因此一个指定的System.Data.SQLite.dll要么只能运行在32位的操作系统上,要么只能运行在64位的操作系统上,不可能同时运行在二个环境中。当你在vs的开发环境中运行时所启用的是开发用的web服务器Cassini,因此,无论你开发环境用的机器是不是64位的,都只能使用System.Data.SQLite.dll的32位版本。但是可以使用IIS7来替代Cassini,它可以正常使用System.Data.SQLite.dll的64位版本。