Showing posts with label errors. Show all posts
Showing posts with label errors. Show all posts

Thursday, March 22, 2012

Thread abort error - REVISITED

I'm periodically getting "Thread Abort Error" errors thown from my web
app. My app will throw like 5 of these and will work normally again.
I'm thinking it is because my worker process was recycling so it
aborted all the threads. My question is, How can I stop it?Don't put any code after Response.Redirect(). That's it. Those Thread
Abort Exceptions will go away.

If you have so much as a return statement after a
Response.Redirect(?,true);, you'll run the risk of seeing these
exceptions. Regardless of what you do, you shouldn't be sweating them.
They're completely harmless.

Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/

--
Get your own Travel Blog, with itinerary maps and photos!
http://www.blogabond.com/

Thread abort error - REVISITED

I'm periodically getting "Thread Abort Error" errors thown from my web
app. My app will throw like 5 of these and will work normally again.
I'm thinking it is because my worker process was recycling so it
aborted all the threads. My question is, How can I stop it?Don't put any code after Response.Redirect(). That's it. Those Thread
Abort Exceptions will go away.
If you have so much as a return statement after a
Response.Redirect(?,true);, you'll run the risk of seeing these
exceptions. Regardless of what you do, you shouldn't be sweating them.
They're completely harmless.
Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/
Get your own Travel Blog, with itinerary maps and photos!
http://www.blogabond.com/

thread httpContext

If I launch a thread within an asp.net application. Is their anyway to get
at the base threads HttpContext object.
If the thread errors I want to capture stuff like:
HttpContext.Current.Request.ServerVariables["REMOTE_HOST"]Hi Chuck,
Regarding on the thread HttpContext issue you mentioned, do you mean you
want to access the HttpContext in a thread you manually started through
Thread.Start?
Based on my understanding, the HttpContext object is only associated with
those ASP.NET worker threads(pickup from thread pool when a request
coming). For those custom thread you start through Thread.Start, they're
not associated with a HttpContext object automatically. Would you provide
some further info about how to will spawn those custom threads and what
you'll do in it? Anyway, since custom thread's execution lifecycle may
beyound an ASP.NET request's server-side processing lifecycle, it is not
recommended(also unsafe) to use Httpcontext objects(like Request, Response)
in custom thread's code. If what you want to pass some unchanged
data/parameters, you can consider direclty pass them as Thread's input
parameters(State data) at startup time.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
========================================
==========
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscript...ault.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscript...t/default.aspx.
========================================
==========
This posting is provided "AS IS" with no warranties, and confers no rights.
thanks, that's whats I figured.
I am writing a ExceptionHandler : IHttpModule
that hooks into
AppDomain.CurrentDomain.UnhandledException += new
UnhandledExceptionEventHandler(OnUhe);
incase some error occurs in a thread.
If the event does get called I'd like to know some things like
name of the server, name of the application, class that spawned the thread.
"Chuck P" <Chuck@.newsgroup.nospam> wrote in message
news:28FBA0D7-70D3-43AA-A1AC-CF26A3BC69A3@.microsoft.com...
> thanks, that's whats I figured.
> I am writing a ExceptionHandler : IHttpModule
> that hooks into
> AppDomain.CurrentDomain.UnhandledException += new
> UnhandledExceptionEventHandler(OnUhe);
> incase some error occurs in a thread.
> If the event does get called I'd like to know some things like
> name of the server, name of the application, class that spawned the
> thread.
I don't believe you can find out the class that spawned the thread, unless
you give the thread that information when you start it.
What would your ExceptionHandler module do? It can't affect the current
request, as there may not be a current request by the time the thread throws
the unhandled exception.
--
John Saunders [MVP]
Hi Chuck,
As you mentioned that you are registering the
AppDomain.UnhandledExceptionEvent, why did you use Httpmodule? Httpmodule
will be called at each request while AppDomain event onlyl need to be
registered once.
Also, the "UnhanddledExceptionEvent" is actually a notify event, that means
it will inform you of such an unhandled exception, but you can not do
anything to prevent the application from being ended due to the unhandled
exception.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
Hi Steven,
I have bunches of asp.net applications.
Wanted to write a drop in Unhandled Exception utility we could use in all of
our applications.
In the module I monitor:
the application.Error event for UHE on the main thread.
and the AppDomain.CurrentDomain.UnhandledException for other threads.
Here is my code for the module. If their is a better way please let me know
.
public virtual void Init(HttpApplication application)
{
application.Error += new EventHandler(OnError);
if (!_initialized)
{
lock (_initLock)
{
if (!_initialized)
{
if (application == null)
throw new ArgumentNullException("application");
CheckForConfigSettings();
AppDomain.CurrentDomain.UnhandledException += new
UnhandledExceptionEventHandler(OnUhe);
_initialized = true;
}
}
}
}
protected virtual void OnUhe(object sender,
UnhandledExceptionEventArgs e)
{ // threaded exceptions occur on this method
// Let this occur one time for each AppDomain.
if (System.Threading.Interlocked.Exchange(ref
_unhandledExceptionCount, 1) != 0)
return;
Exception ex = e.ExceptionObject as Exception;
ProcessTheUHE(ex);
}
protected virtual void OnError(object sender, EventArgs args)
{
HttpApplication application = sender as HttpApplication;
Exception ex = application.Server.GetLastError() as Exception;
ProcessTheUHE(ex);
}
Thanks for your followup Chuck,
I think your current implementation is reasonable. BTW, for the
AppDomain.UnhandledException event, you only need to register the event
handler once since the AppDomain will remain running during ASP.NET Web
application's lifecycle.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

thread httpContext

If I launch a thread within an asp.net application. Is their anyway to get
at the base threads HttpContext object.

If the thread errors I want to capture stuff like:
HttpContext.Current.Request.ServerVariables["REMOTE_HOST"]Hi Chuck,

Regarding on the thread HttpContext issue you mentioned, do you mean you
want to access the HttpContext in a thread you manually started through
Thread.Start?

Based on my understanding, the HttpContext object is only associated with
those ASP.NET worker threads(pickup from thread pool when a request
coming). For those custom thread you start through Thread.Start, they're
not associated with a HttpContext object automatically. Would you provide
some further info about how to will spawn those custom threads and what
you'll do in it? Anyway, since custom thread's execution lifecycle may
beyound an ASP.NET request's server-side processing lifecycle, it is not
recommended(also unsafe) to use Httpcontext objects(like Request, Response)
in custom thread's code. If what you want to pass some unchanged
data/parameters, you can consider direclty pass them as Thread's input
parameters(State data) at startup time.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscript...ault.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscript...rt/default.aspx.

==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
thanks, that's whats I figured.
I am writing a ExceptionHandler : IHttpModule
that hooks into
AppDomain.CurrentDomain.UnhandledException += new
UnhandledExceptionEventHandler(OnUhe);

incase some error occurs in a thread.

If the event does get called I'd like to know some things like
name of the server, name of the application, class that spawned the thread.
"Chuck P" <Chuck@.newsgroup.nospamwrote in message
news:28FBA0D7-70D3-43AA-A1AC-CF26A3BC69A3@.microsoft.com...

Quote:

Originally Posted by

thanks, that's whats I figured.
I am writing a ExceptionHandler : IHttpModule
that hooks into
AppDomain.CurrentDomain.UnhandledException += new
UnhandledExceptionEventHandler(OnUhe);
>
incase some error occurs in a thread.
>
If the event does get called I'd like to know some things like
name of the server, name of the application, class that spawned the
thread.


I don't believe you can find out the class that spawned the thread, unless
you give the thread that information when you start it.

What would your ExceptionHandler module do? It can't affect the current
request, as there may not be a current request by the time the thread throws
the unhandled exception.
--
John Saunders [MVP]
Hi Chuck,

As you mentioned that you are registering the
AppDomain.UnhandledExceptionEvent, why did you use Httpmodule? Httpmodule
will be called at each request while AppDomain event onlyl need to be
registered once.

Also, the "UnhanddledExceptionEvent" is actually a notify event, that means
it will inform you of such an unhandled exception, but you can not do
anything to prevent the application from being ended due to the unhandled
exception.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

This posting is provided "AS IS" with no warranties, and confers no rights.
Hi Steven,
I have bunches of asp.net applications.
Wanted to write a drop in Unhandled Exception utility we could use in all of
our applications.

In the module I monitor:
the application.Error event for UHE on the main thread.
and the AppDomain.CurrentDomain.UnhandledException for other threads.

Here is my code for the module. If their is a better way please let me know.

public virtual void Init(HttpApplication application)
{

application.Error += new EventHandler(OnError);

if (!_initialized)
{
lock (_initLock)
{
if (!_initialized)
{
if (application == null)
throw new ArgumentNullException("application");

CheckForConfigSettings();

AppDomain.CurrentDomain.UnhandledException += new
UnhandledExceptionEventHandler(OnUhe);
_initialized = true;
}
}
}
}

protected virtual void OnUhe(object sender,
UnhandledExceptionEventArgs e)
{ // threaded exceptions occur on this method

// Let this occur one time for each AppDomain.
if (System.Threading.Interlocked.Exchange(ref
_unhandledExceptionCount, 1) != 0)
return;

Exception ex = e.ExceptionObject as Exception;

ProcessTheUHE(ex);
}

protected virtual void OnError(object sender, EventArgs args)
{
HttpApplication application = sender as HttpApplication;

Exception ex = application.Server.GetLastError() as Exception;

ProcessTheUHE(ex);
}
Thanks for your followup Chuck,

I think your current implementation is reasonable. BTW, for the
AppDomain.UnhandledException event, you only need to register the event
handler once since the AppDomain will remain running during ASP.NET Web
application's lifecycle.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

This posting is provided "AS IS" with no warranties, and confers no rights.

Tuesday, March 13, 2012

Thread was being aborted

I've started getting "Thread was being aborted" errors. This errormessage
has me puzzled. I'm using the same very simple approach throughout the
application, and it works elsewhere:
-- my aspx form declares an instance of a data-layer class with form-level
scope
Protected WithEvents MyDataLayer as DataLayer
-- and a new instance of the class is created in Page_Load:
MyDataLayer = New DataLayer
AddHandler MyDataLayer.Success, AddressOf OnSuccess
-- on the aspx form, a Save button onclick eventhandler invokes a method in
the datalayer class
MyDataLayer.DoSomething()
-- the data layer's DoSomething() method executes a stored procedure against
SQL Server and raises either a Success or Failure event
RaiseEvent Success(args as DataLayer.SuccessArgs)
-- a subroutines on the aspx form listens for the success event:
Private Sub OnSuccess(args as DataLayer.SuccessArgs)
Try
'// on Success, we want to go to another page;
'// none of the following alternatives works:
Response.Redirect("SomeOtherPage.aspx", False)
Response.Redirect("SomeOtherPage.aspx", True)
Server.Transfer("SomeOtherPage.aspx", False)
Server.Transfer("SomeOtherPage.aspx", True)
Catch ex as Exception
'// always thread was being aborted error
End Try
End Sub
How do I fix this? Is it a timing issue not under programmer's control?
Thanks
K.Hi Josef:
ThreadAbortException is the expected behavior for
Response.Redirect(url, true) [1]. Are you still getting an abort when
passing false as the second parameter?
[1] http://support.microsoft.com/kb/312629/EN-US/
Scott
http://www.OdeToCode.com/blogs/scott/
On Sun, 22 May 2005 12:48:10 -0400, "Josef K." <josefk@.spamcastle.org>
wrote:

>I've started getting "Thread was being aborted" errors. This errormessage
>has me puzzled. I'm using the same very simple approach throughout the
>application, and it works elsewhere:
>-- my aspx form declares an instance of a data-layer class with form-level
>scope
>Protected WithEvents MyDataLayer as DataLayer
>-- and a new instance of the class is created in Page_Load:
>MyDataLayer = New DataLayer
>AddHandler MyDataLayer.Success, AddressOf OnSuccess
>-- on the aspx form, a Save button onclick eventhandler invokes a method in
>the datalayer class
>MyDataLayer.DoSomething()
>-- the data layer's DoSomething() method executes a stored procedure agains
t
>SQL Server and raises either a Success or Failure event
>RaiseEvent Success(args as DataLayer.SuccessArgs)
>-- a subroutines on the aspx form listens for the success event:
>Private Sub OnSuccess(args as DataLayer.SuccessArgs)
> Try
> '// on Success, we want to go to another page;
> '// none of the following alternatives works:
> Response.Redirect("SomeOtherPage.aspx", False)
> Response.Redirect("SomeOtherPage.aspx", True)
> Server.Transfer("SomeOtherPage.aspx", False)
> Server.Transfer("SomeOtherPage.aspx", True)
> Catch ex as Exception
> '// always thread was being aborted error
> End Try
>End Sub
>How do I fix this? Is it a timing issue not under programmer's control?
>Thanks
>K.
>

Thread was being aborted

I've started getting "Thread was being aborted" errors. This errormessage
has me puzzled. I'm using the same very simple approach throughout the
application, and it works elsewhere:

-- my aspx form declares an instance of a data-layer class with form-level
scope

Protected WithEvents MyDataLayer as DataLayer

-- and a new instance of the class is created in Page_Load:

MyDataLayer = New DataLayer
AddHandler MyDataLayer.Success, AddressOf OnSuccess

-- on the aspx form, a Save button onclick eventhandler invokes a method in
the datalayer class

MyDataLayer.DoSomething()

-- the data layer's DoSomething() method executes a stored procedure against
SQL Server and raises either a Success or Failure event

RaiseEvent Success(args as DataLayer.SuccessArgs)

-- a subroutines on the aspx form listens for the success event:

Private Sub OnSuccess(args as DataLayer.SuccessArgs)
Try
'// on Success, we want to go to another page;
'// none of the following alternatives works:

Response.Redirect("SomeOtherPage.aspx", False)
Response.Redirect("SomeOtherPage.aspx", True)
Server.Transfer("SomeOtherPage.aspx", False)
Server.Transfer("SomeOtherPage.aspx", True)

Catch ex as Exception
'// always thread was being aborted error
End Try
End Sub

How do I fix this? Is it a timing issue not under programmer's control?
Thanks
K.Hi Josef:

ThreadAbortException is the expected behavior for
Response.Redirect(url, true) [1]. Are you still getting an abort when
passing false as the second parameter?

[1] http://support.microsoft.com/kb/312629/EN-US/

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sun, 22 May 2005 12:48:10 -0400, "Josef K." <josefk@.spamcastle.org>
wrote:

>I've started getting "Thread was being aborted" errors. This errormessage
>has me puzzled. I'm using the same very simple approach throughout the
>application, and it works elsewhere:
>-- my aspx form declares an instance of a data-layer class with form-level
>scope
>Protected WithEvents MyDataLayer as DataLayer
>-- and a new instance of the class is created in Page_Load:
>MyDataLayer = New DataLayer
>AddHandler MyDataLayer.Success, AddressOf OnSuccess
>-- on the aspx form, a Save button onclick eventhandler invokes a method in
>the datalayer class
>MyDataLayer.DoSomething()
>-- the data layer's DoSomething() method executes a stored procedure against
>SQL Server and raises either a Success or Failure event
>RaiseEvent Success(args as DataLayer.SuccessArgs)
>-- a subroutines on the aspx form listens for the success event:
>Private Sub OnSuccess(args as DataLayer.SuccessArgs)
> Try
> '// on Success, we want to go to another page;
> '// none of the following alternatives works:
> Response.Redirect("SomeOtherPage.aspx", False)
> Response.Redirect("SomeOtherPage.aspx", True)
> Server.Transfer("SomeOtherPage.aspx", False)
> Server.Transfer("SomeOtherPage.aspx", True)
> Catch ex as Exception
> '// always thread was being aborted error
> End Try
>End Sub
>How do I fix this? Is it a timing issue not under programmer's control?
>Thanks
>K.

Thread was being aborted errors

Hi,
I have an asp.net web app that is intermittently throwing "Thread was being
aborted." errors in my data access component. This seems to occur when the
app is under a heavier than normal load. I don't get any of these errors for
days, then I get a bunch all at once.
I would have thought if the database call was timing out I would get a
timeout
error.
The server is Win 2003 (under VMware), and hosts multiple asp and asp.net
web applications.

This is a sample of the exception details I'm getting:

System.Threading.ThreadAbortException: Thread was being aborted.
at System.Data.SqlClient.SqlCommand.ExecuteReader(Com mandBehavior
cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
at System.Data.SqlClient.SqlCommand.ExecuteReader(Com mandBehavior behavior)
at
System.Data.SqlClient.SqlCommand.System.Data.IDbCo mmand.ExecuteReader(CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.FillFromCommand(O bject data, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)
at NCSUtilities.DataAccess.ExecuteDataset(SqlConnecti on connection,
CommandType commandType, String commandText, SqlParameter[] commandParameters)
at NCSUtilities.DataAccess.ExecuteDataset(String connectionString,
CommandType commandType, String commandText, SqlParameter[] commandParameters)

I got a suggestion to look at the "DefaultAppPool" properties on the web
server, but I'm not sure what settings to modify.

Any ideas on how I could identify the cause or how I could resolve this
would be greatly appreciated.

Thanks,
Keith FIn most circumstances that I have seen, this issue occurs when the
application pool is being reset. One easy way to isolate the problem is to
match the times of the thread error with the application pool reset log in
the windows event viewer. The fix is to increase the recycle parameters on
the applicaiton pool in question.

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
"Keith F." <KeithF@.discussions.microsoft.com> wrote in message
news:D42B570D-11E4-485A-8CA9-B55D3D31A389@.microsoft.com...
> Hi,
> I have an asp.net web app that is intermittently throwing "Thread was
> being
> aborted." errors in my data access component. This seems to occur when the
> app is under a heavier than normal load. I don't get any of these errors
> for
> days, then I get a bunch all at once.
> I would have thought if the database call was timing out I would get a
> timeout
> error.
> The server is Win 2003 (under VMware), and hosts multiple asp and asp.net
> web applications.
> This is a sample of the exception details I'm getting:
> System.Threading.ThreadAbortException: Thread was being aborted.
> at System.Data.SqlClient.SqlCommand.ExecuteReader(Com mandBehavior
> cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
> at System.Data.SqlClient.SqlCommand.ExecuteReader(Com mandBehavior
> behavior)
> at
> System.Data.SqlClient.SqlCommand.System.Data.IDbCo mmand.ExecuteReader(CommandBehavior
> behavior)
> at System.Data.Common.DbDataAdapter.FillFromCommand(O bject data, Int32
> startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
> CommandBehavior behavior)
> at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32
> startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
> CommandBehavior behavior)
> at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)
> at NCSUtilities.DataAccess.ExecuteDataset(SqlConnecti on connection,
> CommandType commandType, String commandText, SqlParameter[]
> commandParameters)
> at NCSUtilities.DataAccess.ExecuteDataset(String connectionString,
> CommandType commandType, String commandText, SqlParameter[]
> commandParameters)
> I got a suggestion to look at the "DefaultAppPool" properties on the web
> server, but I'm not sure what settings to modify.
> Any ideas on how I could identify the cause or how I could resolve this
> would be greatly appreciated.
> Thanks,
> Keith F

Thread was being aborted errors

Hi,
I have an asp.net web app that is intermittently throwing "Thread was being
aborted." errors in my data access component. This seems to occur when the
app is under a heavier than normal load. I don't get any of these errors for
days, then I get a bunch all at once.
I would have thought if the database call was timing out I would get a
timeout
error.
The server is Win 2003 (under VMware), and hosts multiple asp and asp.net
web applications.
This is a sample of the exception details I'm getting:
System.Threading.ThreadAbortException: Thread was being aborted.
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior
cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior)
at
System.Data.SqlClient.SqlCommand.System.Data.IDbCommand.ExecuteReader(Comman
dBehavior behavior)
at System.Data.Common.DbDataAdapter.FillFromCommand(Object data, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)
at NCSUtilities.DataAccess.ExecuteDataset(SqlConnection connection,
CommandType commandType, String commandText, SqlParameter[] commandParameter
s)
at NCSUtilities.DataAccess.ExecuteDataset(String connectionString,
CommandType commandType, String commandText, SqlParameter[] commandParameter
s)
I got a suggestion to look at the "DefaultAppPool" properties on the web
server, but I'm not sure what settings to modify.
Any ideas on how I could identify the cause or how I could resolve this
would be greatly appreciated.
Thanks,
Keith FIn most circumstances that I have seen, this issue occurs when the
application pool is being reset. One easy way to isolate the problem is to
match the times of the thread error with the application pool reset log in
the windows event viewer. The fix is to increase the recycle parameters on
the applicaiton pool in question.
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
"Keith F." <KeithF@.discussions.microsoft.com> wrote in message
news:D42B570D-11E4-485A-8CA9-B55D3D31A389@.microsoft.com...
> Hi,
> I have an asp.net web app that is intermittently throwing "Thread was
> being
> aborted." errors in my data access component. This seems to occur when the
> app is under a heavier than normal load. I don't get any of these errors
> for
> days, then I get a bunch all at once.
> I would have thought if the database call was timing out I would get a
> timeout
> error.
> The server is Win 2003 (under VMware), and hosts multiple asp and asp.net
> web applications.
> This is a sample of the exception details I'm getting:
> System.Threading.ThreadAbortException: Thread was being aborted.
> at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior
> cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
> at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior
> behavior)
> at
> System.Data.SqlClient.SqlCommand.System.Data.IDbCommand.ExecuteReader(Comm
andBehavior
> behavior)
> at System.Data.Common.DbDataAdapter.FillFromCommand(Object data, Int32
> startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
> CommandBehavior behavior)
> at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32
> startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
> CommandBehavior behavior)
> at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)
> at NCSUtilities.DataAccess.ExecuteDataset(SqlConnection connection,
> CommandType commandType, String commandText, SqlParameter[]
> commandParameters)
> at NCSUtilities.DataAccess.ExecuteDataset(String connectionString,
> CommandType commandType, String commandText, SqlParameter[]
> commandParameters)
> I got a suggestion to look at the "DefaultAppPool" properties on the web
> server, but I'm not sure what settings to modify.
> Any ideas on how I could identify the cause or how I could resolve this
> would be greatly appreciated.
> Thanks,
> Keith F
>