Any Idea why we get this error, its happening in only one page and that too
first time user visits that page,in the below "GetData" is a method which
gets the data from SQL Server, but some times it is taking time to get data
and throwing this error i think it has to throw "Timed Out" instead of this
"Thread Abort" error. any idea why we get this error?
Exception Type: System.Threading.ThreadAbortException
ExceptionState: System.Web.HttpApplication+CancelModuleException
Message: Thread was being aborted.
TargetSite: System.Data.DataSet GetData(RPID,
System.Data.SqlClient.SqlCommand)Unless you post the full code around where the error happens, then I can
only guess. One common cause for this error is that you have a
Response.Redirect statement enclosed within a try...catch
[note: if this post answers your question, you can mark it as an answer
using the web-based newsreader functions]
--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"xsluser" wrote:
> Any Idea why we get this error, its happening in only one page and that to
o
> first time user visits that page,in the below "GetData" is a method which
> gets the data from SQL Server, but some times it is taking time to get dat
a
> and throwing this error i think it has to throw "Timed Out" instead of thi
s
> "Thread Abort" error. any idea why we get this error?
> Exception Type: System.Threading.ThreadAbortException
> ExceptionState: System.Web.HttpApplication+CancelModuleException
> Message: Thread was being aborted.
> TargetSite: System.Data.DataSet GetData(RPID,
> System.Data.SqlClient.SqlCommand)
By default SQL Command has 30 second to finish.
If it did not finish then it's aborted.
Look at Command.CommandTimeout value and increase it.
George.
"xsluser" <xsluser@.discussions.microsoft.com> wrote in message news:F2E4E54F
-7A47-47CE-BDC9-8FBDA9A9BD3F@.microsoft.com...
Any Idea why we get this error, its happening in only one page and that too
first time user visits that page,in the below "GetData" is a method which
gets the data from SQL Server, but some times it is taking time to get data
and throwing this error i think it has to throw "Timed Out" instead of this
"Thread Abort" error. any idea why we get this error?
Exception Type: System.Threading.ThreadAbortException
ExceptionState: System.Web.HttpApplication+CancelModuleException
Message: Thread was being aborted.
TargetSite: System.Data.DataSet GetData(RPID,
System.Data.SqlClient.SqlCommand)
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment