I have aspx page (web from). That page contains some data fields and submit button.
我有aspx页面(来自)。该页面包含一些数据字段和提交按钮。
Once user click on submit button WCF service
method will get called from the code behind.
WCF service will do some DB manipulations and sometimes it will take nearly 3-4 mins to completed and send the result to the page.
一旦用户点击提交按钮,将从后面的代码中调用WCF服务方法。 WCF服务将执行一些数据库操作,有时需要将近3-4分钟才能完成并将结果发送到页面。
Since it will get more time aspx page gives an exception System.Threading.ThreadAbortException: Thread was being aborted
因为它将获得更多时间aspx页面给出异常System.Threading.ThreadAbortException:线程被中止
What do I need to do in order to fix this??
为了解决这个问题,我需要做些什么?
My service binding is like below
我的服务绑定如下
<binding name="NetTcpBinding_IDbHelperService" closeTimeout="10:01:00"
openTimeout="10:01:00" receiveTimeout="10:01:00" sendTimeout="10:01:00"
maxBufferPoolSize="2147483646" maxReceivedMessageSize="2147483646" />
1 个解决方案
#1
1
I ran into the same problem awhile back. The thread aborted exception you are receiving is most likely due to an error occurring on the WCF side and that exception is not being sent back to the client. I'd recommend setting up logging within the WCF service to find out what's really going on and be sure to set the IncludeExceptionDetailsInFault property to true (during development, set to false when releasing). I'd also recommend reading Fault Handling in WCF Services.
我曾经遇到过同样的问题。您收到的线程中止异常很可能是由于WCF端发生错误而该异常未被发送回客户端。我建议在WCF服务中设置日志记录以找出实际发生的情况,并确保将IncludeExceptionDetailsInFault属性设置为true(在开发期间,在发布时设置为false)。我还建议阅读WCF服务中的故障处理。
#1
1
I ran into the same problem awhile back. The thread aborted exception you are receiving is most likely due to an error occurring on the WCF side and that exception is not being sent back to the client. I'd recommend setting up logging within the WCF service to find out what's really going on and be sure to set the IncludeExceptionDetailsInFault property to true (during development, set to false when releasing). I'd also recommend reading Fault Handling in WCF Services.
我曾经遇到过同样的问题。您收到的线程中止异常很可能是由于WCF端发生错误而该异常未被发送回客户端。我建议在WCF服务中设置日志记录以找出实际发生的情况,并确保将IncludeExceptionDetailsInFault属性设置为true(在开发期间,在发布时设置为false)。我还建议阅读WCF服务中的故障处理。