我已经检查了非关闭连接的代码,但我在生产中仍然遇到了这个错误:
System.Data.OleDb.OleDbException (0x80004005): Could not update; currently locked.
at System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr)
at System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult)
at System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult)
at System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult)
at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method)
at System.Data.OleDb.OleDbCommand.ExecuteNonQuery()
at System.Data.OleDb.OleDbCommand.ExecuteNonQuery()
at (my code here)
看起来像是在ExecuteNonQuery()的递归调用,我们可以在堆栈的底部看到。这是重试模式吗?有什么想法吗?
其他信息: