I'm using System.Data.SQLite version 1.0.119 from long time in my .NET application which is targeting to .NET 4.7.2. But this package is showing as vulnerable so we tried upgrading it to the version 2.0.1. But it's giving runtime exception when running on the windows machine.

stack:   at System.Data.SQLite.UnsafeNativeMethods.sqlite3_config_none(SQLiteConfigOpsEnum op)    at System.Data.SQLite.SQLite3.StaticIsInitialized()    at System.Data.SQLite.SQLiteLog.PrivateInitialize(String className)    at System.Data.SQLite.SQLiteLog.Initialize(String className)    at System.Data.SQLite.SQLiteConnection..ctor(String connectionString, Boolean parseViaFramework)    at System.Data.SQLite.SQLiteConnection..ctor()    at Agent.Core.Data.DbContexts.RebootDbContext..ctor(String path)    at Agent.Tasks.TaskImpl.SystemState.ShutdownTask.Execute(CancellationToken cancellationToken)    at SidekickCommon.TaskExecution.ExecuteTaskCommand.Execute(CancellationToken cancellationToken) error: Unable to load DLL 'e_sqlite3': The specified module could not be found. (Exception from HRESULT: 0x8007007E) inner:  2026-02-03 12:46:16.7419|ERROR|exceptionSidekickLog|Error: Unable to load DLL 'e_sqlite3': The specified module could not be found. (Exception from HRESULT: 0x8007007E)   Version: 1.26.02903.0   Stacktrace:    at System.Data.SQLite.UnsafeNativeMethods.sqlite3_config_none(SQLiteConfigOpsEnum op)    at System.Data.SQLite.SQLite3.StaticIsInitialized()    at System.Data.SQLite.SQLiteLog.PrivateInitialize(String className)    at System.Data.SQLite.SQLiteLog.Initialize(String className)    at System.Data.SQLite.SQLiteConnection..ctor(String connectionString, Boolean parseViaFramework)    at System.Data.SQLite.SQLiteConnection..ctor()    at Agent.Core.Data.DbContexts.RebootDbContext..ctor(String path)    at Agent.Tasks.TaskImpl.SystemState.ShutdownTask.Execute(CancellationToken cancellationToken)    at SidekickCommon.TaskExecution.ExecuteTaskCommand.Execute(CancellationToken cancellationToken)    at SidekickCommon.Application..ctor()   2026-02-03 12:46:16.7576|ERROR|sidekickLog|Error: Unable to load DLL 'e_sqlite3': The specified module could not be found. (Exception from HRESULT: 0x8007007E)   Version: 1.26.02903.0

I even tried using the SourceGear.sqlite3 package, with this package it builds successfully locally using Visual Studio. But it given the below error while building the solution in the classic ado pipeline.

(CheckForAnyCPU target) -> C:\BuildAgent\_work\1\s\src\_.Net\Projects\Agent\packages\SourceGear.sqlite3.3.50.4.2\build\net471\SourceGear.sqlite3.props(6,9): error : This package does not support Any CPU builds [C:\BuildAgent\_work\1\s\src\_.Net\Projects\Agent\Agent.Core\Agent.Core.csproj]

Dale K's user avatar

Dale K

28.3k15 gold badges62 silver badges87 bronze badges

Vivek Nuna's user avatar

1

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.