QPR
asked on
A first chance exception of type 'System.Threading.ThreadAbortException'
Am building a .net web application on my local machine and when I insert a breakpoint so I can test something I see all the messages (below) in the immediate window.
Everything is working fine with the app so I'm not sure what they can mean. There are no other messages in other windows to give me any other clues.
What is it trying to tell me?
asp.net 4.0
c#
visual studio 2010
Everything is working fine with the app so I'm not sure what they can mean. There are no other messages in other windows to give me any other clues.
What is it trying to tell me?
asp.net 4.0
c#
visual studio 2010
A first chance exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll
An exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll but was not handled in user code
A first chance exception of type 'System.NullReferenceException' occurred in App_Code.aidrup4p.dll
A first chance exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll
An exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll but was not handled in user code
Step into: Stepping over non-user code 'System.Xml.XmlNode.ChildNodes.get'
Step into: Stepping over non-user code 'System.Xml.XmlNode.ChildNodes.get'
Step into: Stepping over non-user code 'System.Xml.XmlNode.ChildNodes.get'
Step into: Stepping over non-user code 'System.Xml.XmlNode.ChildNodes.get'
Step into: Stepping over non-user code 'System.Xml.XmlNode.ChildNodes.get'
Step into: Stepping over non-user code 'string.Split'
Step into: Stepping over non-user code 'string.Concat'
Step into: Stepping over non-user code 'string.Concat'
Step into: Stepping over non-user code 'System.Xml.XmlNode.ChildNodes.get'
A first chance exception of type 'System.NullReferenceException' occurred in App_Code.aidrup4p.dll
A first chance exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll
An exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll but was not handled in user code
Step into: Stepping over non-user code 'System.Xml.XmlNode.ChildNodes.get'
Step into: Stepping over non-user code 'System.Xml.XmlNode.ChildNodes.get'
Step into: Stepping over non-user code 'System.Xml.XmlNode.ChildNodes.get'
Step into: Stepping over non-user code 'System.Xml.XmlNode.ChildNodes.get'
Step into: Stepping over non-user code 'System.Xml.XmlNode.ChildNodes.get'
Step into: Stepping over non-user code 'string.Split'
Step into: Stepping over non-user code 'string.Concat'
Step into: Stepping over non-user code 'string.Concat'
Step into: Stepping over non-user code 'System.Xml.XmlNode.ChildNodes.get'
Step into: Stepping over non-user code 'System.Xml.XmlNode.ChildNodes.get'
Step into: Stepping over non-user code 'System.Xml.XmlNode.ChildNodes.get'
A first chance exception of type 'System.NullReferenceException' occurred in App_Code.oexwrzuj.dll
A first chance exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll
An exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll but was not handled in user code
Step into: Stepping over non-user code 'System.Xml.XmlNode.ChildNodes.get'
Step into: Stepping over non-user code 'System.Xml.XmlNode.ChildNodes.get'
Step into: Stepping over non-user code 'System.Xml.XmlNode.ChildNodes.get'
Step into: Stepping over non-user code 'string.Split'
Step into: Stepping over non-user code 'string.Concat'
Step into: Stepping over non-user code 'System.Xml.XmlNode.ChildNodes.get'
Step into: Stepping over non-user code 'string.Concat'
Step into: Stepping over non-user code 'System.Text.StringBuilder.Append'
Step into: Stepping over non-user code 'System.Text.StringBuilder.Append'
Step into: Stepping over non-user code 'System.Text.StringBuilder.Append'
Step into: Stepping over non-user code 'System.Text.StringBuilder.Append'
Step into: Stepping over non-user code 'System.Text.StringBuilder.Append'
Step into: Stepping over non-user code 'System.Text.StringBuilder.Append'
Step into: Stepping over non-user code 'System.Text.StringBuilder.Append'
Step into: Stepping over non-user code 'string.Split'
Step into: Stepping over non-user code 'System.Web.UI.Control.OnLoad'
Step into: Stepping over non-user code 'System.Web.UI.Control.LoadRecursive'
Step into: Stepping over non-user code 'System.Web.UI.Page.ProcessRequestMain'
Step into: Stepping over non-user code 'System.Web.UI.Page.ProcessRequest'
Step into: Stepping over non-user code 'System.Web.UI.Page.ProcessRequest'
Step into: Stepping over non-user code 'System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute'
Step into: Stepping over non-user code 'System.Web.HttpApplication.ExecuteStep'
Step into: Stepping over non-user code 'System.Web.HttpApplication.ApplicationStepManager.ResumeSteps'
Step into: Stepping over non-user code 'System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest'
Step into: Stepping over non-user code 'System.Web.HttpRuntime.ProcessRequestInternal'
Step into: Stepping over non-user code 'Microsoft.VisualStudio.WebHost.Request.Process'
Step into: Stepping over non-user code 'Microsoft.VisualStudio.WebHost.Host.ProcessRequest'
Step into: Stepping over non-user code 'System.Threading.ThreadPoolWorkQueue.Dispatch'
A first chance exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll
An exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll but was not handled in user code
A first chance exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll
An exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll but was not handled in user code
A first chance exception of type 'System.NullReferenceException' occurred in App_Code.nvmhhtli.dll
A first chance exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll
An exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll but was not handled in user code
A first chance exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll
An exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll but was not handled in user code
First chance exceptions are handled by the runtime. They will not cause your application not to function.
ASKER
so what is it taking exception to?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I have a couple of response.redirects that are set up to take a user back to a particular page should there be some missing querystring data... but I'm not testing that part of the app when I'm seeing this. Or will these exceptions be thrown even if that portion of the code is not running (arrived at)?
ASKER
actual I'm wrong I am using a response.redirect on button click and each time I use it I get another exception so it looks as though you've nailed that one...
"A first chance exception of type 'System.Threading.ThreadAb ortExcepti on' occurred in mscorlib.dll
An exception of type 'System.Threading.ThreadAb ortExcepti on' occurred in mscorlib.dll but was not handled in user code"
Not sure how to recreate this one though
"A first chance exception of type 'System.NullReferenceExcep tion' occurred in App_Code.aidrup4p.dll"
I went to debug->exceptions and ticked everything, but other than write to the intermediate window nothing other seems to be happening in debug mode.
Should it not break and highlight the offending line?
Should I care about these exceptions?
"A first chance exception of type 'System.Threading.ThreadAb
An exception of type 'System.Threading.ThreadAb
Not sure how to recreate this one though
"A first chance exception of type 'System.NullReferenceExcep
I went to debug->exceptions and ticked everything, but other than write to the intermediate window nothing other seems to be happening in debug mode.
Should it not break and highlight the offending line?
Should I care about these exceptions?
>>Should it not break and highlight the offending line?<<
Not at all, this is the purpose of a "First Chance" exception.
Have a read over this blog for more info;
http://blogs.msdn.com/b/davidklinems/archive/2005/07/12/438061.aspx
It's likely an external piece of code is catching the NullReferenceException and handling it gracefully.
Not at all, this is the purpose of a "First Chance" exception.
Have a read over this blog for more info;
http://blogs.msdn.com/b/davidklinems/archive/2005/07/12/438061.aspx
It's likely an external piece of code is catching the NullReferenceException and handling it gracefully.