异常错误

youhaoxinqin2013 2013-04-12 11:43:12
小弟在写程序报如下异常错误,求高人指导
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
...全文
589 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
三五月儿 2013-04-20
  • 打赏
  • 举报
回复
The transaction associated with the current connection has completed but has not been disposed
  • 打赏
  • 举报
回复
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连接
youhaoxinqin2013 2013-04-12
  • 打赏
  • 举报
回复
与当前连接相关联的事物已经完成,但尚未尚释放。必须先释放该事物,然后才能使用该连接来执行SQL语句。
王子文龙 2013-04-12
  • 打赏
  • 举报
回复
操作数据库异常

1,979

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 其他语言讨论
社区管理员
  • 其他语言社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧