相关疑难解决方法(0)

新的SQLite混合程序集

以前可以使用.NET SQLite库http://sqlite.phxsoftware.com,但最近它们已被主要的SQLite团队接管并移动了System.Data.SQLite下载页面.新包似乎不再包含混合程序集(包含sqlite3.dll和.NET包装器的单个程序集).

新的软件包附带了.NET DLL,SQLite.Interop.dll并且桌面上不需要基于文档但我的应用程序无法加载Unable to load DLL 'SQLite.Interop.DLL': The specified module could not be found..我尝试在IIS/IIS Express下运行应用程序,将apppool设置为32位.

我已经尝试将SQLite.Interop.dll文件复制到文件bin夹,系统文件夹和ASP.NET临时文件夹中,但仍然会收到相同的错误.

是否有可用于新版本的混合组件?如果没有,有没有办法解决Unable to load DLL 'SQLite.Interop.DLL错误?

.net sqlite iis mixed-mode

26
推荐指数
3
解决办法
1万
查看次数

无法在SQLite Net Platform WinRT中加载DLL'sqlite3'

我正在使用Xamarin.Forms开发本机应用程序.但我现在面临的问题与Xamarin无关.我添加了新的Windows Phone项目

right-click > Add > New Project -> Windows Phone Apps -> Blank App(Windows Phone).

在我在Visual Studio premium 2013中的现有Xamarin项目中.我使用sqlitenet pcl进行数据库连接.我的项目中有以下代码.

public ISQLitePlatform CreateSqlitePlatformInterface()
        {
            return new SQLitePlatformWinRT();
        }
Run Code Online (Sandbox Code Playgroud)

当它在行上面执行时,它会抛出异常

An exception of type 'System.DllNotFoundException' occurred in SQLite.Net.Platform.WinRT.DLL but was not handled in user code

Additional information: Unable to load DLL 'sqlite3': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Run Code Online (Sandbox Code Playgroud)

这已被问了很多次,我尝试了所有建议的解决方案,但我仍然无法解决它.

我的Packages.config

 <package id="SQLite.Net-PCL" version="3.0.5" targetFramework="wpa81" />
  <package id="Sqlite-Winrt" version="3.8.7.1" targetFramework="wpa81" />
  <package id="Xamarin.Forms" version="1.4.2.6359" targetFramework="wpa81" /> …
Run Code Online (Sandbox Code Playgroud)

c# sqlite windows-runtime

12
推荐指数
2
解决办法
7552
查看次数

将SQLite-NET与UWP结合使用

我从NuGet下载了软件包,但仍然没有SQLite.cs,SQLiteAsync.cs也没有添加到项目中,如果SQLite-NET仍然不支持VS 2015 RTM,还有其他可能的选择吗?

请注意,我尝试过SQLite.NET-PCL,但问题仍然存在.

sqlite sqlite-net windows-10 visual-studio-2015 uwp

7
推荐指数
1
解决办法
1万
查看次数

无法加载DLL的'sqlite3':找不到指定的模块

我有一段时间让我的测试针对我的SQLite数据提供程序运行.

我已经在stackoverflow上查看了建议的链接,但是它们似乎都没有让我走上正确的道路.

我已经为sqlite3.dll下载了Windows 预编译二进制文件

我已将sqlite3.dll复制到我的Sqlite\bin目录和我的Tests\bin目录中 dll复制到bin目录中

不幸的是,当我运行我的测试时,我收到以下错误

测试失败

有没有明确的方法让我的Windows开发环境(现在的主要目标)以及在Android和IOS(在不久的将来需要)中运行?

此外,如果重要,这里是我的Sqlite项目参考.

在此输入图像描述

c# sqlite dll

3
推荐指数
1
解决办法
2万
查看次数

移动模拟器Windows 10的SQLite UWP错误

我在尝试编译和运行VS 2015 UWP应用程序时运行Mobile Emulator时出现以下错误.使用本地计算机或模拟器时,应用程序运行正常.

   System.TypeInitializationException was unhandled by user code
  HResult=-2146233036
  Message=The type initializer for 'SQLitePCL.raw' threw an exception.
  Source=SQLitePCL.raw
  TypeName=SQLitePCL.raw
  StackTrace:
       at SQLitePCL.raw.sqlite3_open_v2(String filename, sqlite3& db, Int32 flags, String vfs)
       at SQLite.SQLiteConnection..ctor(String databasePath, SQLiteOpenFlags openFlags, Boolean storeDateTimeAsTicks)
       at SQLite.SQLiteConnection..ctor(String databasePath, Boolean storeDateTimeAsTicks)
       at App3.MainPage.LoadSQLData()
       at App3.MainPage..ctor()
       at App3.App3_XamlTypeInfo.XamlTypeInfoProvider.Activate_0_MainPage()
       at App3.App3_XamlTypeInfo.XamlUserType.ActivateInstance()
  InnerException: 
       HResult=-2146233052
       Message=Unable to load DLL 'sqlite3': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
       Source=SQLitePCL.raw
       TypeName=""
       StackTrace:
            at SQLitePCL.SQLite3Provider.NativeMethods.sqlite3_win32_set_directory(UInt32 directoryType, String directoryPath)
            at SQLitePCL.SQLite3Provider..ctor()
            at …
Run Code Online (Sandbox Code Playgroud)

c# sqlite uwp

2
推荐指数
1
解决办法
2852
查看次数