Executive summary: Fix missing SQLite dependencies in minutes using the automated setup, or install manually if needed.
Key recommendations:
- Use the automated setup script when possible
- Download the correct architecture binaries if manual
- Verify DLL placement and loading before proceeding
Supporting points:
- Step-by-step manual path provided with validation
- Works with the repo’s
Librariesfolder layout- Includes quick verification commands
Error: SQLite library not found
.\Setup-SQLite.ps1This script will:
- ✅ Download System.Data.SQLite from NuGet
- ✅ Extract the DLL
- ✅ Copy to Libraries folder
- ✅ Test that it loads
Download Link: https://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki
What to download:
- For 64-bit Windows (most common):
sqlite-netFx46-binary-x64-2015-*.zip - For 32-bit Windows:
sqlite-netFx46-binary-Win32-2015-*.zip
Direct Download (latest version): https://system.data.sqlite.org/downloads/1.0.118.0/sqlite-netFx46-binary-x64-2015-1.0.118.0.zip
- Extract the ZIP file to a temporary folder
- Look for these files:
System.Data.SQLite.dllSQLite.Interop.dll
# From PowerShell, in your AD-Audit directory:
Copy-Item "C:\Downloads\System.Data.SQLite.dll" -Destination ".\Libraries\"
Copy-Item "C:\Downloads\SQLite.Interop.dll" -Destination ".\Libraries\"Or manually:
- Navigate to
C:\Users\adria\OneDrive\Documents\GitHub\Ad-Audit\AD-Audit\Libraries - Paste the two DLL files there
# Check files exist
Test-Path ".\Libraries\System.Data.SQLite.dll"
Test-Path ".\Libraries\SQLite.Interop.dll"Both should return True
.\Start-M&A-QueryBuilder-Web.ps1Should now work!
If you have SQL Server Management Studio or other tools, SQLite might already be installed.
# This will use system-installed version
Add-Type -AssemblyName "System.Data.SQLite"If this works, the query builder will automatically use it.
- Make sure BOTH files are copied (System.Data.SQLite.dll AND SQLite.Interop.dll)
- SQLite.Interop.dll must be in the SAME folder
- You need .NET Framework 4.6+ version (not .NET Core)
- Match your Windows architecture (x64 vs x86)
Use NuGet directly:
Install-Package System.Data.SQLite.Core -Source nuget.org -Force -Scope CurrentUserThen find DLL in:
C:\Users\<username>\.nuget\packages\system.data.sqlite.core\<version>\lib\net46\
# Run this to check current state:
if (Test-Path ".\Libraries\System.Data.SQLite.dll") {
Write-Host "✓ System.Data.SQLite.dll found" -ForegroundColor Green
} else {
Write-Host "✗ System.Data.SQLite.dll missing" -ForegroundColor Red
}
if (Test-Path ".\Libraries\SQLite.Interop.dll") {
Write-Host "✓ SQLite.Interop.dll found" -ForegroundColor Green
} else {
Write-Host "⚠ SQLite.Interop.dll missing (optional but recommended)" -ForegroundColor Yellow
}Author: Adrian Johnson adrian207@gmail.com