小弟在写程序报如下异常错误,求高人指导
An error occurred while executing the command definition.See the inner exception for details .System,InvalidOperationException:The transaction associated with the current connection has completed but has not been disposed.The transaction must be disposed before the connection can be used to execute SQL statements
与当前连接相关联的事物已经完成,但尚未尚释放。必须先释放该事物,然后才能使用该连接来执行SQL语句。
是在什么情况下报错的?描述具体点··