When running code from Listing 5.2 you may get the following error:
System.Runtime.InteropServices.COMException (0x8007202C): The server does not support the requested critical extension.The issue is usually related to ADAM and the server side sorting. You can fix this issue by changing the SortOption from 'cn' in the example to something else you wish to sort on (e.g. last name or 'sn'). If we had to do this again, I would have used another attribute other than CN, which apparently only works in Windows 2003 for this example.
Ryan Dunn
Extemporaneous MumblingsThe .NET Developer's Guide to Directory Services Programming