Testing and Debugging

When developing a regular application with Visual Studio 2005, the application is tested and debugged by running it directly from Visual Studio 2005. You do this by selecting Debug, and then Start Debugging from the Visual Studio 2005 menu. When developing a rules extension however, the extension is loaded and run by the Microsoft Identity Lifecycle ManagerĀ 2007, Feature PackĀ 1 server service. Because the ILM 2007 FP1 server is a system service, it is started automatically when the system starts and the service cannot be started from Visual Studio 2005. To debug the rules extension, it is necessary to manually attach the debugger to the running ILM 2007 FP1 server service process and then cause the extension to be loaded and used.

You can also start the debugger from within the rules extension source code with the Debugger.Launch method. However, for this method to work, the account used to run ILM 2007 FP1 must be a member of the Local Administrators or Debugger Users group. For more information about the Debugger.Launch method, see the .NET Framework SDK Documentation.

If your rules extension requires other assemblies, install the other assemblies in the assemblies folder of the ILM 2007 FP1 installation folder.

If any rules extension assembly file is replaced, any running management agents will be stopped and the run will return "stopped-extension-dll-updated-version" the next time the management agent attempts to use a rules extension.

Send comments about this topic to Microsoft

Build date: 2/16/2009