Issue:  Access to the database file is not allowed

 

 

  • DateTime: 4/27/2018 9:46:25 AM  Class Name: ProcessResults  Method Name: System.Data.SqlServerCe.SqlCeConnection  Message: Access to the database file is not allowed. [ File name = Data\WOScanDB.sdf ] Message: Access to the database file is not allowed. [ File name = Data\WOScanDB.sdf ], Stack:    at System.Data.SqlServerCe.SqlCeConnection.ProcessResults(Int32 hr) at System.Data.SqlServerCe.SqlCeConnection.Open(Boolean silent)  at System.Data.SqlServerCe.SqlCeConnection.Open()  at JDB.WorkOrder.DataAccess.DatabaseVerifier.HasTable(String tableName) at JDB.WorkOrder.DataAccess.DatabaseVerifier.Ensure()   at JDB.WorkOrder.DesktopClient.Program.Main()

 

FIX
  • Go into folder of WOScan
  • Right click on data folder
  • Properties
  • Security Tab
  • Allow user to modify file