我最近完成了一个涉及多个不同解决方案相互通信的项目。当我在自己的网络和计算机上测试该项目时,它工作正常。但是,当我在工作网络上使用该项目时,解决方案之间无法正确通信。
我的服务器显示以下消息。
Could not load file or assembly 'System.Data.SQLite, Version=1.0.84.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139'
or one of its dependencies.An attempt was made to load a program with an incorrect format.
有什么想法吗?
最佳答案
然后您还必须在另一台计算机上安装 SQLite .NET Connector
,当您在开发计算机上安装 .Net SQLite Connector
时,该应用程序可以运行,所以确保安装它并将 System.Data.SQLite
CopyLocal 属性设置为 true
<bin>\App.exe (optional, managed-only application executable assembly)
<bin>\App.dll (optional, managed-only application library assembly)
<bin>\System.Data.SQLite.dll (required, managed-only core assembly)
<bin>\System.Data.SQLite.Linq.dll (optional, managed-only LINQ assembly)
<bin>\x86\SQLite.Interop.dll (required, x86 native interop assembly)
<bin>\x64\SQLite.Interop.dll (required, x64 native interop assembly)
Good Luck
关于c# - 分布式系统sqlite错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16130238/