How to: Correct Run-Time Errors with the Exception Assistant 

This feature is available for Visual Basic, C#, and J# debugging only.

The Exception Assistant, which appears whenever a run-time exception occurs in the debugger, shows the type of exception, troubleshooting tips, and corrective actions that may be applied through the Exception Assistant.

An exception is an object that inherits from the Exception class. An exception is thrown by code whenever a problem occurs; it is passed up the stack until the application handles it or the program fails.


  The options available in dialog boxes, and the names and locations of menu commands you see, might differ from what is described in Help, depending on your active settings or edition. This Help page was written with General Development Settings in mind. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings.

The following table lists the actions that may appear in the Exception Assistant Actions pane:

Action Description

Find out more about the exception

Displays the exception object's properties, which can be copied to the Clipboard.

Add permission.

Adds necessary security permissions.

To apply an action from the Exception Assistant Actions pane

  • Click the action you wish to perform.

See Also