1

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 )

Kelly Coulter
  • 11
  • 1
  • 3

2 Answers2

3

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.

Punit Vora
  • 5,052
  • 4
  • 35
  • 44
0

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

George Johnston
  • 31,652
  • 27
  • 127
  • 172
  • See update above for error message. Tried added the Console.WriteLine and still getting the same thing as before - a popup with Microsoft Script Editor with the above error message. – Kelly Coulter Apr 15 '11 at 13:48