Certificates

Microsoft Certified Professional

Windows Mobile

MCTS

SHBT Newsletter



Receive HTML?

Polls

What Windows Mobile (WM) OS do you use?
 

Email Print

System.Data.SQLite.SQLiteException: Unable to open the database file

Date added:
Wednesday, 01 July 2009
Last revised:
never
Hits:
1015
Rating:
 
Vote for this:
Good - Bad

Answer

If you get an error like, System.Data.SQLite.SQLiteException: Unable to open the database file, on the first start of Mobile Vehicle Admin, please do the following:

  1. uninstall the software
  2. install it on another partition on your hard disk
Windows Vista 32 & 64 Bit has difficulties to manage databases on the primary partition (security errors).

 

 

 

************** Exception Text **************

System.Data.SQLite.SQLiteException: Unable to open the database file

at System.Data.SQLite.SQLite3.Open(String strFilename, SQLiteOpenFlagsEnum flags, Int32 maxPoolSize, Boolean usePool)

at System.Data.SQLite.SQLiteConnection.Open()

at W1cYp.bXMBY.D32PfH()

at W1cYp.bXMBY.2X7s(Object , EventArgs )

at System.EventHandler.Invoke(Object sender, EventArgs e)

at System.Windows.Forms.Form.OnLoad(EventArgs e)

at System.Windows.Forms.Form.OnCreateControl()

at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)

at System.Windows.Forms.Control.CreateControl()

at System.Windows.Forms.Control.WmShowWindow(Message& m)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.ScrollableControl.WndProc(Message& m)

at System.Windows.Forms.ContainerControl.WndProc(Message& m)

at System.Windows.Forms.Form.WmShowWindow(Message& m)

at System.Windows.Forms.Form.WndProc(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************

mscorlib

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.3074 (QFE.050727-3000)

CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

----------------------------------------

Mobile Vehicle Admin

Assembly Version: 2.0.3014.18777

Win32 Version: 2.0.3014.18777

CodeBase: file:///C:/Program%20Files/SHBT/Mobile%20Vehicle%20Admin%202009/Mobile%20Vehicle%20Admin.exe

----------------------------------------

Microsoft.VisualBasic

Assembly Version: 8.0.0.0

Win32 Version: 8.0.50727.3053 (netfxsp.050727-3000)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll

----------------------------------------

System

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

----------------------------------------

System.Windows.Forms

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

----------------------------------------

System.Drawing

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

----------------------------------------

System.Runtime.Remoting

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll

----------------------------------------

System.Configuration

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

----------------------------------------

System.Xml

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.3074 (QFE.050727-3000)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll

----------------------------------------

Elegant.Ui.Ribbon

Assembly Version: 2.2.0.0

Win32 Version: 2.2.0.0

CodeBase: file:///C:/Program%20Files/SHBT/Mobile%20Vehicle%20Admin%202009/Elegant.Ui.Ribbon.DLL

----------------------------------------

QSS.Components.Windows.Forms

Assembly Version: 1.3.0.30941

Win32 Version: 1.3.0.30941

CodeBase: file:///C:/Program%20Files/SHBT/Mobile%20Vehicle%20Admin%202009/QSS.Components.Windows.Forms.DLL

----------------------------------------

Elegant.Ui.Common

Assembly Version: 2.2.0.0

Win32 Version: 2.2.0.0

CodeBase: file:///C:/Program%20Files/SHBT/Mobile%20Vehicle%20Admin%202009/Elegant.Ui.Common.DLL

----------------------------------------

ChartFX.Lite

Assembly Version: 6.0.839.0

Win32 Version: 6.0.839.0

CodeBase: file:///C:/Program%20Files/SHBT/Mobile%20Vehicle%20Admin%202009/ChartFX.Lite.DLL

----------------------------------------

Accessibility

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll

----------------------------------------

System.Data.SQLite

Assembly Version: 1.0.60.0

Win32 Version: 1.0.60.0

CodeBase: file:///C:/Program%20Files/SHBT/Mobile%20Vehicle%20Admin%202009/System.Data.SQLite.DLL

----------------------------------------

System.Data

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)

CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll

----------------------------------------

System.Transactions

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)

CodeBase: file:///C:/Windows/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll

----------------------------------------

************** JIT Debugging **************

To enable just-in-time (JIT) debugging, the .config file for this

application or computer (machine.config) must have the

jitDebugging value set in the system.windows.forms section.

The application must also be compiled with debugging

enabled.

For example:

<configuration>

<system.windows.forms jitDebugging="true" />

</configuration>

When JIT debugging is enabled, any unhandled exception

will be sent to the JIT debugger registered on the computer

rather than be handled by this dialog box.

 

 

Category