This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Any ideas on how to fix this one? This is the first time I've seen this error message here is an excerpt. I'm migrating to a new database format so I renamed all my old tables to bk_
IDataReader reader = db.GetReader("SELECT * FROM bk_Config"); System.ArgumentException was unhandled Message="IsolationLevel must be ReadCommitted or Serializable\r\nParameter name: isolationLevel" Source="Oracle.DataAccess" ParamName="isolationLevel" StackTrace: at Oracle.DataAccess.Client.OracleConnection.BeginTransaction(IsolationLevel isolationLevel) at Oracle.DataAccess.Client.OracleConnection.System.Data.IDbConnection.BeginTransaction(IsolationLevel isolationLevel) at Mindscape.LightSpeed.UnitOfWork.BeginTransaction(IsolationLevel isolationLevel) at Mindscape.LightSpeed.UnitOfWork.SaveChanges(Boolean reset) at Mindscape.LightSpeed.UnitOfWorkBase.SaveChanges() at PasswordReset.Dal.DbConnection.UpdateOldSchema(Database db, DbModelUnitOfWork context) in C:\Projects\PasswordReset\Components\PasswordReset.Dal\DbConnection.cs:line 348 at PasswordReset.Dal.DbConnection.SetupDatabase(String dir, DbProviders provider, String serverName, String userName, String password, String database) in C:\Projects\PasswordReset\Components\PasswordReset.Dal\DbConnection.cs:line 765 at PasswordReset.UpgradeDb.Program.Main(String[] args) in C:\Projects\PasswordReset\Components\PasswordReset.UpgradeDb\Program.cs:line 14 at System.AppDomain._nExecuteAssembly(Assembly 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) at System.Threading.ThreadHelper.ThreadStart() InnerException: |
|
|
Wrap the SaveChanges in an explicit BeginTransaction call: using (var tx = context.BeginTransaction(IsolationLevel.ReadCommitted)) { |
|