RE: Long running web service call ends with ThreadAbortException



Hi Mads,

From your description, I understand you often get "ThreadAbortException" in
your .NET client app which calls some long-run server-side webservice,
correct?

Based on my experience, such problem is likely caused by the server-side
service method exceed the runtime execution timeout scope. If you can
reach and adjust the server-side service, I suggest you try enlarge the
"executionTimeout" in <httpRuntime> setting to see whether it helps:

#httpRuntime Element (ASP.NET Settings Schema)
http://msdn2.microsoft.com/en-us/library/e1f13641.aspx

Here is a former thread that also discussing on this:

#ThreadAbortException & executionTimeout
http://www.thescripts.com/forum/thread467787.html

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



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

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.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/subscriptions/support/default.aspx.

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


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




--------------------
From: =?Utf-8?B?TWFkcyBOaWVsc2Vu?= <ResultmakerMSDN@xxxxxxxxxxxxxxxxx>
Subject: Long running web service call ends with ThreadAbortException
Date: Fri, 11 Jan 2008 04:08:01 -0800


Hi,

I get a ThreadAbortException when clients call a long running operation of
one of my web services.

I am unable to determine the cause of this.

The web service method compiles C# code in a SQL Server database to DLL
files, and runs for about 1-2 minutes before the exception occurs.

Any help on how to avoid the exception would be most welcome.

Best Regards,
Mads Nielsen


.



Relevant Pages

  • Re: Updating a control with data on server event.
    ... typical asynchronous server-side processing and update client case, ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)
  • Re: Updating a control with data on server event.
    ... typical asynchronous server-side processing and update client case, ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)
  • Re: Display animation during page-load
    ... immediately(let the service executing at server-side) and at client-side, ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Display animation during page-load
    ... immediately(let the service executing at server-side) and at client-side, ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Printing from ASP.NET application
    ... when performing printing on ASP.NET web page,correct? ... server-side .NET code that deal with printer will only affect the server ... Microsoft MSDN Online Support Lead ... I don't want the end user to have to view the report and then select the ...
    (microsoft.public.vsnet.general)

Quantcast