.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Thread was being aborted

Posted By:      Posted Date: October 03, 2010    Points: 0   Category :ASP.Net


I hit the above error, and below is the stack trace. Any ideas? It doesn't happen regularly.

Thank you

    Stack trace:    at System.Web.Configuration.HttpModuleAction.get_Entry()
   at System.Web.Configuration.HttpModulesSection.CreateModules()
   at System.Web.HttpApplication.InitModules()
   at System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers)
   at System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context)

More Related Resource Links

How to prevent thread form being stopped/aborted?

I'm not sure if it's a CLR related issue but at the same time i can't say it isn't. The problem is as follows: I have created a windows forms user control that spawns a thread(running a form). The thread is not a background thread and it's not supposed to exit until the form gets closed. It works as desired when the control is hosted in a windows forms application. The problem starts when i want to host it inside a html page. All works fine as long as the page containing the control is opened. Things get a bit weird when i redirect or close the tab(not the window; more tabs are opened). Exactly 1 minute from this moment the thread gets aborted. public partial class IEControl : UserControl { public IEControl() { InitializeComponent(); } private System.Threading.Thread t; private MainForm mf; private void IEControl_Load(object sender, EventArgs e) { GoThread(); } public void GoThread() { try { t = new System.Threading.Thread(RunForm); t.IsBackground = false; t.Start(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } private void RunForm() { mf = new MainForm(); Application.Run(mf); GC.KeepAlive(mf); GC.KeepAlive(this); } } I'm a bit confused at this point. Where could I get any information on this topic if it's not a CLR/GC related issue.

Thread being aborted Error -- while using sqlldr

public sub LoaddataIntotable() _errorLogFilePath = something _badLogFilePath = something _discardLogFilePath = something credentialTokens = "connection string" objCommand.UserName = "scott" objCommand.Password = "tiger" objCommand.Host = "oracle" objCommand.ControlFile = "test.ctl" objCommand.LogFile = _errorLogFilePath objCommand.BadFile = _badLogFilePath objCommand.DataFile = _dataFilePath objCommand.DiscardFile = _discardLogFilePath objCommand.IsParallel = False objCommand.IsDirectLoad = True _objShell.Command = "SQLLDR" _objShell.Arguments = objCommand.ToString AddHandler _objShell.Exited, AddressOf OnProcessExit _objShell.Start() end sub Private Sub OnProcessExit(ByVal sender As Object, ByVal e As CommandLineProcess.ExitedEventArgs) Try If Not e Is Nothing Then If _processExited = False Then _processExited = True CommandCompleted(e.ExitCode) Exit Sub Else ' Event raised again

Blob Cache Event ID 7888 Runtime Exception Thread was being aborted

HI, We have 3WFE and we are getting error Events 788 and 5538 on all three servers at same time. Any thoughts on what is causing this error? Event Type: Error Event Source: Office SharePoint Server Event Category: Office Server General Event ID: 7888 Date:  9/14/2010 Time:  2:31:08 PM User:  N/A Computer: MOSS2007A Description: A runtime exception was detected. Details follow. Message: Thread was being aborted. Techinal Details: System.Threading.ThreadAbortException: Thread was being aborted.    at System.Threading.ReaderWriterLock.AcquireWriterLockInternal(Int32 millisecondsTimeout)    at Microsoft.SharePoint.Publishing.BlobCache.<>c__DisplayClass14.<>c__DisplayClass17.<FetchItemFromWss>b__11()    at Microsoft.Office.Server.Diagnostics.FirstChanceHandler.ExceptionFilter(Boolean fRethrowException, TryBlock tryBlock, FilterBlock filter, CatchBlock catchBlock, FinallyBlock finallyBlock) For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.   Event Type: Error Event Source: Office SharePoint Server Event Category: Publishing Cache Event ID: 5538 Date:  9/14/2010 Time:  2:31:08 PM User:  N/A Computer: MOSS2007A Description: An error occured in the blob cache.  The ex

System.Threading.ThreadAbortException: Thread was being aborted


In my ASP.Net web application, one of the function is calling the WCF service that has been developed by .Net framework 3.0 using VS2005.It works fine on production and user can make request 8 times(calls) between client and service after that the web application got hanged and generated the following error message. But it works fine on development even more than 8 requests.

I given the proxy time out 20 min in the client side proxy setting.

Error message:

WebService Thread was being aborted



i have a windows service that listens to a directory with FileSystemWatcher.

i listen to xml files that are being copied to the directory.

when a xml is copied i call an WS that runs thrue the Xml File and dose what it has to do...

now i have 2 problems that maybe someone can assist:

1.in my PROD Server i get an timeout or Thread was being aborted (Exception message) after 2 minutes exactly!! when on my DEV or TEST Server this is not happening...

2.how can i throw into the directory 2 huge Xml Files without getting timeout from Window service?

it takes about 2 hours working on 1 xml file..



Why i am getting error ==> ".NET Framework execution was aborted. The UDP/UDF/UDT did not end thread


Good evening all,

I developed a C# class libray code. Under which i called a third party .asmx web service. I used "CREATE ASSEMBLY" command to register all my custom assembly and needed .net core assemblies. I did register all needed .net dll's. for Ex:-


C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Core.dll

I created a procedure and called my class libray methods from SQL analyzer. See Ex:- code below. But when i executed the code method i see the error ".NET Framework execution was aborted. The UDP/UDF/UDT did not end thread affinity.". For testing purpose i logged the flow of my code and the flow of code is good and it even fetched the miles i wanted, except the error. What possibley could be going wrong? Could somebody help me?

@strXML nvarchar(3000),
@blnSkipMilesCalcByZip bit,
@bLogProcessFlow bit,
@calledFrom nvarchar(3),
@distance nvarchar(15)OUTPUT
AS EXTERNAL NAME CalculateMilesPCM.[CalculateMilesPCM.clsMiles].CalcMilesGetcitystate

DECLARE @distance nvarchar(15)
declare @testval nvarchar(15)
 EXEC usp_GetCalcMilesTest '<int_Loads BtLoadid="508952996" SHID="2480" Routetype="HB" SkipMil

Thread Performance: Resource Contention Concurrency Profiling in Visual Studio 2010


Visual Studio 2010 includes new resource contention profiling features that help detect concurrency contention among threads. We walk through a profiling investigation to demonstrate how you can pinpoint and fix resource contention problems in your code.

Maxim Goldin

MSDN Magazine June 2010

Thread Diagnostics: Performance Tuning with The Concurrency Visualizer in Visual Studio 2010


Understanding performance bottlenecks in multithreaded apps used to require significant instrumentation and analysis by expert developers. The Concurrency Visualizer in Visual Studio 2010 significantly reduces the burden of parallel performance analysis.

Hazim Shafi

MSDN Magazine March 2010

CLR Inside Out: Thread Management In The CLR


Getting the performance you want in concurrent applications is not as straightforward as you might think. See how common threading issues can affect your application.

Erika Fuentes and Eric Eilebrecht

MSDN Magazine December 2008

Editor's Note: new Thread(ReadEditorsNote).Start(); yourAttention.WaitOne();


Introducing the issue, Howard Dierking points out that you can't simply parallelize your code blindly if you expect to truly reap the benefits that parallelism promises.

Howard Dierking

MSDN Magazine October 2008

Pooled Threads: Improve Scalability With New Thread Pool APIs


The new threadpool APIs in Windows Vista and in the upcoming Windows Server 2008 provide advances that even native Windows developers can benefit from.

Robert Saccone

MSDN Magazine October 2007

Concurrent Affairs: Build a Richer Thread Synchronization Lock


In my last column, I showed the various thread synchronization mechanisms employed by the Microsoft® . NET Framework (see Concurrent Affairs: Performance-Conscious Thread Synchronization). I then examined the performance characteristics of all these mechanisms and determined that the Interlocked methods performed the best because the calling thread never has to transition to kernel mode.

Jeffrey Richter

MSDN Magazine March 2006

Concurrent Affairs: Performance-Conscious Thread Synchronization


In my career, I have architected and implemented many thread synchronization techniques. This has provided me with a lot of experience that has shaped the way I now think about thread synchronization problems.

Jeffrey Richter

MSDN Magazine October 2005

Basic Instincts: Thread Synchronization


My last three Basic Instincts columns have examined techniques for using asynchronous delegates and creating secondary threads. Those columns demonstrated how to introduce multithreaded behavior into your applications.

Ted Pattison

MSDN Magazine September 2004

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend