Handling Exceptions

To ensure that you handle exceptions properly, you need to know which part of the system threw the exception and why. Microsoft Identity Integration Server 2003, the operating system, and the .NET Framework can all throw exceptions. You can start the Visual Studio .NET debugger whenever an exception is thrown to determine if you need to handle that particular exception.

The following procedures show how to configure the Visual Studio .NET debugger to start on any exception, or on a specified exception. Before performing the following procedures, attach the debugger to the Microsoft Identity Integration Server 2003 Server service process. For more information, see Attaching the Debugger to the Process.

ms696505.wedge(en-us,VS.85).gifTo start the Visual Studio .NET debugger on any exception

  1. On the Debug menu of Visual Studio .NET, click Exceptions.
  2. In Exceptions, click Common Language Runtime Exceptions.
  3. In When the exception is thrown, click Break into the debugger.
  4. Click OK to apply your changes.

You can also start the debugger when a specified exception is thrown by adding the fully qualified exception name to the appropriate category of Exceptions in Visual Studio .NET.

ms696505.wedge(en-us,VS.85).gifTo start the debugger on a specified exception

  1. From the Debug menu of Visual Studio .NET, click Exceptions.
  2. In Exceptions, click the most appropriate category for your exception and then click Add.
  3. In New Exceptions, type the fully qualified exception name and click OK.
  4. In Exceptions under the category you selected earlier, click your exception name.
  5. In When the exception is thrown, click Break into the debugger.
  6. Click OK to apply your changes.

See Also

Testing and Debugging Extensions

Send comments about this topic to Microsoft

Build date: 2/16/2009