Unable to open database file
Posted: Thu 14 Jul 2011 12:12
Hi,
I downloaded "dotConnect for SQLite ?? Standard (free)" and installed it on a computer (Notebook1) with VS2010 Premium on Win7 32. Everything worked fine!
Then I downloaded "dotConnect for SQLite 3.3 Standard (free)" and installed it on an other Notebook ( as well VS 2010, Win7 32)
With exaclty the same project/code I getting again and again the message, that ihe sqlite file can not be opened???
It is placed in exactly the same path as on Notebook1! Complete Message see below! I exchanged the devart.dll s to avoid problems with different versions. But it does not help.
Yes the "sqlite3.dll" was installed in System32 folder.
Can anyone please help me?!
Any help is welcome!
Matze
"Devart.Data.SQLite.SQLiteException was unhandled
Message=Unable to open database file
Source=Devart.Data.SQLite
ErrorCode=-2147467259
StackTrace:
at Devart.Data.SQLite.ab.o()
at Devart.Data.SQLite.ab..ctor(SQLiteConnectionOptions A_0)
at Devart.Data.SQLite.bq.a(m A_0, Object A_1, DbConnectionBase A_2)
at Devart.Common.DbConnectionFactory.a(DbConnectionPool A_0, m A_1, DbConnectionBase A_2)
at Devart.Common.DbConnectionPoolGroup.a(DbConnectionPool A_0, DbConnectionBase A_1)
at Devart.Common.DbConnectionPool.a(DbConnectionBase A_0)
at Devart.Common.DbConnectionPool.GetObject(DbConnectionBase owningConnection)
at Devart.Common.DbConnectionFactory.a(DbConnectionBase A_0)
at Devart.Common.DbConnectionClosed.Open(DbConnectionBase outerConnection)
at Devart.Common.DbConnectionBase.Open()
at Devart.Data.SQLite.SQLiteConnection.Open()
at ActionEngine.Helper.HelperRead.ReadSQLite_IOcategories() in G:\Data\bl\projects\AEngine\AEngine\Helper\HelperRead.cs:line 98
at AEngine.Helper.HelperRead.start() in G:\Data\buhl\projects\ActionEngine\ActionEngine\Helper\HelperRead.cs:line 73
at AEngine.Calculation.Start() in G:\Data\bl\projects\AEngine\AEngine\Start.cs:line 48
at AEngineConsoleStart.Program.Main(String[] args) in G:\Data\bl\projects\AEngine\AEngineConsoleStart\Program.cs:line 13
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException: System.IO.DirectoryNotFoundException
Message=Could not find a part of the path 'G:\bl\projects\AEngine\AEngine\bin\Debug\data.sqlite'.
Source=mscorlib
StackTrace:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Devart.Data.SQLite.ab.o()
InnerException:

I downloaded "dotConnect for SQLite ?? Standard (free)" and installed it on a computer (Notebook1) with VS2010 Premium on Win7 32. Everything worked fine!
Then I downloaded "dotConnect for SQLite 3.3 Standard (free)" and installed it on an other Notebook ( as well VS 2010, Win7 32)
With exaclty the same project/code I getting again and again the message, that ihe sqlite file can not be opened???
It is placed in exactly the same path as on Notebook1! Complete Message see below! I exchanged the devart.dll s to avoid problems with different versions. But it does not help.
Yes the "sqlite3.dll" was installed in System32 folder.

Can anyone please help me?!
Any help is welcome!
Matze
"Devart.Data.SQLite.SQLiteException was unhandled
Message=Unable to open database file
Source=Devart.Data.SQLite
ErrorCode=-2147467259
StackTrace:
at Devart.Data.SQLite.ab.o()
at Devart.Data.SQLite.ab..ctor(SQLiteConnectionOptions A_0)
at Devart.Data.SQLite.bq.a(m A_0, Object A_1, DbConnectionBase A_2)
at Devart.Common.DbConnectionFactory.a(DbConnectionPool A_0, m A_1, DbConnectionBase A_2)
at Devart.Common.DbConnectionPoolGroup.a(DbConnectionPool A_0, DbConnectionBase A_1)
at Devart.Common.DbConnectionPool.a(DbConnectionBase A_0)
at Devart.Common.DbConnectionPool.GetObject(DbConnectionBase owningConnection)
at Devart.Common.DbConnectionFactory.a(DbConnectionBase A_0)
at Devart.Common.DbConnectionClosed.Open(DbConnectionBase outerConnection)
at Devart.Common.DbConnectionBase.Open()
at Devart.Data.SQLite.SQLiteConnection.Open()
at ActionEngine.Helper.HelperRead.ReadSQLite_IOcategories() in G:\Data\bl\projects\AEngine\AEngine\Helper\HelperRead.cs:line 98
at AEngine.Helper.HelperRead.start() in G:\Data\buhl\projects\ActionEngine\ActionEngine\Helper\HelperRead.cs:line 73
at AEngine.Calculation.Start() in G:\Data\bl\projects\AEngine\AEngine\Start.cs:line 48
at AEngineConsoleStart.Program.Main(String[] args) in G:\Data\bl\projects\AEngine\AEngineConsoleStart\Program.cs:line 13
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException: System.IO.DirectoryNotFoundException
Message=Could not find a part of the path 'G:\bl\projects\AEngine\AEngine\bin\Debug\data.sqlite'.
Source=mscorlib
StackTrace:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Devart.Data.SQLite.ab.o()
InnerException:

