Kelly Coulter
Kelly Coulter

Reputation: 11

Checking inner exceptions in VS2010

Probably an obvious question from a programming novice:

I'm debugging a Silverlight project in Visual Studio 2010. How/where do I check the "inner exception"? Is this something I select under "Debug"?

UPDATE: I'm trying to figure out why I started receiving the following error:

Microsoft JScript runtime error: Unhandled Error in Silverlight Application 

Code: 4004
Category: ManagedRuntimeError
Message: System.Exception: Submit error is not handled! at Telerik.Windows.Data.QueryableDomainServiceCollectionView`1.OnDomainContextSubmittCompleted(SubmitOperation submitOperation) at System.ServiceModel.DomainServices.Client.SubmitOperation.InvokeCompleteAction() at System.ServiceModel.DomainServices.Client.OperationBase.Complete(Exception error) at System.ServiceModel.DomainServices.Client.SubmitOperation.Complete(OperationErrorStatus errorStatus) at System.ServiceModel.DomainServices.Client.DomainContext.<>c_DisplayClassb.b_3(Object )

Upvotes: 1

Views: 3154

Answers (2)

Punit Vora
Punit Vora

Reputation: 5198

Did you try to Enable First Chance Exceptions? You can go to Debug > Exceptions > Common Language Runtime Exceptions and check the 'Thrown' check box. Hopefully this will help you break right at the source of the Inner Exception.

Upvotes: 3

George Johnston
George Johnston

Reputation: 32278

It's within your exception object. InnerException. If you're programmatically handling the error, you could capture it via your try/catch. e.g.

try
{
   // Do something.
}
catch(Exception ex)
{
   Console.WriteLine(ex.InnerException);
}

If you're simply trying to see it within the editor, when the exception is thrown click `View Detail' and expand the exception to see the InnerException

Upvotes: 0

Related Questions