使用工作流 4.0 的事务范围中的两个活动不起作用
我在具有隔离级别的事务范围中的序列中有两项活动 - 可串行化和 1 分钟超时。但是当我运行工作流程时,它永远不会提交到数据库。这两项活动都将数据提交到数据库。当我调试时,活动没有错误。
I have two activities in the sequence which in a transactionscope which has isolationlevel - serailizeable and 1 min timeout. But when I run the workflow its never commiting to the database. both activities commit data to databases. when I debug there is no error with the acitivites.
one similar issue: http://social.msdn.microsoft.com/Forums/en-US/windowsworkflowfoundation/thread/22fa47c7-65a6-4295-a779-8c5beedd9bcb?prof=required
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Microsoft 确认 WF 4.0 不支持在 transactionscope 内长时间运行的工作流。
请参阅此帖子
Microsoft confirms that WF 4.0 does not support long running workflows inside transactionscope.
Refer this post
听起来 DTC 可能有问题。要检查情况是否如此,您可以在没有 TransactionScope 的情况下运行两个数据库活动。如果成功的话,尝试当时做一个。如果仍然有效并且都失败,则需要调查运行工作流的计算机和数据库所在的计算机上的 DTC。
It sounds like there might a problem with the DTC. To check if that is the case you can run the two DB activities without the TransactionScope. If that succeeds try doing one at the time. If that still works and both fail you need to investigate the DTC on both the machine running the workflow and the machine where the database is located.