wind101net/atmo — Issue #60: Database write permission error in Windows 7 
Author: baranidesign
Created: 2012-02-22 20:22:59+00:00
State: open

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Data.SQLite.SQLiteException: Attempt to write a read-only database
attempt to write a readonly database
at System.Data.SQLite.SQLite3.Reset(SQLiteStatement stmt)
at System.Data.SQLite.SQLite3.Step(SQLiteStatement stmt)
at System.Data.SQLite.SQLiteDataReader.NextResult()
at System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave)
at System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)
at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery()
at Atmo.Data.DbDataStore.AddSensor(ISensorInfo sensor)
at Atmo.UI.DevEx.ImportDataForm.GetOrAddSensor(ImportAnemMap map)
at Atmo.UI.DevEx.ImportDataForm.b__1a(ImportAnemMap map)
at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
at System.Collections.Generic.Queue`1..ctor(IEnumerable`1 collection)
at Atmo.UI.DevEx.ImportDataForm.ImportDataProcesser..ctor(IEnumerable`1 sets, Boolean delSource, Boolean recordOverwrite, IDataStore dataStore)
at Atmo.UI.DevEx.ImportDataForm.buttonImport_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at DevExpress.XtraEditors.BaseButton.OnClick(EventArgs e)
at DevExpress.XtraEditors.BaseButton.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at DevExpress.Utils.Controls.ControlBase.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.5448 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Atmo.UI.DevEx
Assembly Version: 2.0.4411.32997
Win32 Version: 2.0.4411.32997
CodeBase: file:///C:/Program%20Files/BaraniDesign/Atmo2/Atmo.UI.DevEx.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5446 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5453 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
DevExpress.Utils.v10.1
Assembly Version: 10.1.7.0
Win32 Version: 10.1.7.0
CodeBase: file:///C:/Program%20Files/BaraniDesign/Atmo2/DevExpress.Utils.v10.1.DLL
----------------------------------------
Atmo.UI.WinForms.Controls
Assembly Version: 2.0.4411.32996
Win32 Version: 2.0.4411.32996
CodeBase: file:///C:/Program%20Files/BaraniDesign/Atmo2/Atmo.UI.WinForms.Controls.DLL
----------------------------------------
Atmo.Core
Assembly Version: 2.0.4411.32996
Win32 Version: 2.0.4411.32996
CodeBase: file:///C:/Program%20Files/BaraniDesign/Atmo2/Atmo.Core.DLL
----------------------------------------
Atmo.Daq.Win32
Assembly Version: 2.0.4411.32996
Win32 Version: 2.0.4411.32996
CodeBase: file:///C:/Program%20Files/BaraniDesign/Atmo2/Atmo.Daq.Win32.DLL
----------------------------------------
System.Data.SQLite
Assembly Version: 1.0.74.0
Win32 Version: 1.0.74.0
CodeBase: file:///C:/Program%20Files/BaraniDesign/Atmo2/System.Data.SQLite.DLL
----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
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.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
DevExpress.XtraEditors.v10.1
Assembly Version: 10.1.7.0
Win32 Version: 10.1.7.0
CodeBase: file:///C:/Program%20Files/BaraniDesign/Atmo2/DevExpress.XtraEditors.v10.1.DLL
----------------------------------------
DevExpress.Data.v10.1
Assembly Version: 10.1.7.0
Win32 Version: 10.1.7.0
CodeBase: file:///C:/Program%20Files/BaraniDesign/Atmo2/DevExpress.Data.v10.1.DLL
----------------------------------------
System.Core
Assembly Version: 3.5.0.0
Win32 Version: 3.5.30729.5420 built by: Win7SP1
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
DevExpress.XtraBars.v10.1
Assembly Version: 10.1.7.0
Win32 Version: 10.1.7.0
CodeBase: file:///C:/Program%20Files/BaraniDesign/Atmo2/DevExpress.XtraBars.v10.1.DLL
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
DevExpress.XtraCharts.v10.1
Assembly Version: 10.1.7.0
Win32 Version: 10.1.7.0
CodeBase: file:///C:/Program%20Files/BaraniDesign/Atmo2/DevExpress.XtraCharts.v10.1.DLL
----------------------------------------
DevExpress.Charts.v10.1.Core
Assembly Version: 10.1.7.0
Win32 Version: 10.1.7.0
CodeBase: file:///C:/Program%20Files/BaraniDesign/Atmo2/DevExpress.Charts.v10.1.Core.DLL
----------------------------------------
DevExpress.XtraCharts.v10.1.UI
Assembly Version: 10.1.7.0
Win32 Version: 10.1.7.0
CodeBase: file:///C:/Program%20Files/BaraniDesign/Atmo2/DevExpress.XtraCharts.v10.1.UI.DLL
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
lq0_r8ho
Assembly Version: 2.0.4411.32996
Win32 Version: 2.0.50727.5453 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
Anonymously Hosted DynamicMethods Assembly
Assembly Version: 0.0.0.0
Win32 Version: 2.0.50727.5448 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.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:

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.