WCF分布式开发常见错误(13):The transaction under which this method call was executing ,此方法调用的事务被异步中断
2009-05-30 22:19
856 查看
Posted on 2009-05-30 22:32 Frank Xu Lei 阅读(400) 评论(0) 编辑 收藏 网摘 所属分类: WCF分布式开发常见错误
今天WCF事务编程的时候遇到这个错误:The transaction under which this method call was executing was asynchronously aborted.此方法调用的事务被异步中断。
错误截图如下:
原因可能由多个。我查询了很多资料。国内论坛很少有人讨论这个问题。MSDN英文论坛有人遇到过,他们也给出了解决问题的方式。但是我尝试了不起作用。
最后检查是客户端没有启动事务流引起的。修改以后便可以运行。下面总结一下全部的可能的解决办法:
1.[ServiceBehavior(TransactionTimeout = "00:10:00")],服务类添加事务超时属性,也可以再配置文件里。原文:http://social.msdn.microsoft.com/Forums/en-US/windowstransactionsprogramming/thread/745b961f-0a95-407c-bbe5-9d67597b7b6f;
2.mismatch of transaction isolation levels etc,隔离级别等信息部匹配。原文链接:http://social.msdn.microsoft.com/Forums/en-US/windowstransactionsprogramming/thread/745b961f-0a95-407c-bbe5-9d67597b7b6f;
3.客户端启动事务流,默认客户端终结点transactionFlow="false" ,修改为transactionFlow="true" .
4.还有就是可能是调用的操作参数不符合要求所致。我这里把参数的长度过长也会出现这个错误。
以上就是可能的原因。大家修改的时候全部考虑,综合检查。能找到解决问题的方法。也欢迎补充。
【老徐的博客】
【作者】:Frank Xu Lei
【地址】:http://www.cnblogs.com/frank_xl/archive/2009/05/30/1492312.html
今天WCF事务编程的时候遇到这个错误:The transaction under which this method call was executing was asynchronously aborted.此方法调用的事务被异步中断。
错误截图如下:
原因可能由多个。我查询了很多资料。国内论坛很少有人讨论这个问题。MSDN英文论坛有人遇到过,他们也给出了解决问题的方式。但是我尝试了不起作用。
最后检查是客户端没有启动事务流引起的。修改以后便可以运行。下面总结一下全部的可能的解决办法:
1.[ServiceBehavior(TransactionTimeout = "00:10:00")],服务类添加事务超时属性,也可以再配置文件里。原文:http://social.msdn.microsoft.com/Forums/en-US/windowstransactionsprogramming/thread/745b961f-0a95-407c-bbe5-9d67597b7b6f;
2.mismatch of transaction isolation levels etc,隔离级别等信息部匹配。原文链接:http://social.msdn.microsoft.com/Forums/en-US/windowstransactionsprogramming/thread/745b961f-0a95-407c-bbe5-9d67597b7b6f;
3.客户端启动事务流,默认客户端终结点transactionFlow="false" ,修改为transactionFlow="true" .
4.还有就是可能是调用的操作参数不符合要求所致。我这里把参数的长度过长也会出现这个错误。
以上就是可能的原因。大家修改的时候全部考虑,综合检查。能找到解决问题的方法。也欢迎补充。
【老徐的博客】
【作者】:Frank Xu Lei
【地址】:http://www.cnblogs.com/frank_xl/archive/2009/05/30/1492312.html
相关文章推荐
- WCF分布式开发常见错误(13):此方法调用的事务被异步中断
- WCF分布式开发常见错误解决(12):The server was unable to process the request,服务无法处理请求
- WCF分布式开发常见错误(16):The Transaction has aborted,事务已经被中断
- WCF分布式开发常见错误(22):The caller was not authenticated...如何在XP系统为WCF设置可信任的证书
- WCF分布式开发常见错误(22):The caller was not authenticated...如何在XP系统为WCF设置可信任的证书
- WCF分布式开发常见错误(15):Communication with the underlying transaction manager has failed.
- WCF分布式开发常见错误(12):The server was unable to process the request,服务无法处理请求
- WCF分布式开发常见错误(16):The Transaction has aborted,事务已经被中断
- WCF分布式开发常见错误(12):The server was unable to process the request,服务无法处理请求
- WCF分布式开发常见错误(23):This could be due to the fact that the server certificate is not configured properly with HTTP.SYS
- WCF分布式开发常见错误(20):TimeoutException was unhandled
- WCF分布式开发常见错误(14):无效的操作异常,At least one operation on the ...
- WCF分布式开发常见错误解决(9):无终结点监听,There was no endpoint listening at
- WCF分布式开发常见错误(28):The requested upgrade is not supported by...
- WCF分布式开发常见错误(20):TimeoutException was unhandled
- WCF分布式开发常见错误解决(7):Cannot have two operations in the same contract
- WCF分布式开发常见错误(10):套接字连接中断,The socket connection was aborted
- WCF分布式开发常见错误(28):The requested upgrade is not supported by...
- WCF分布式开发常见错误(3):客户端调用服务出错
- WCF分布式开发常见错误(10):套接字连接中断,The socket connection was aborted