Common .Net Active Directory Exceptions

Any application dealing with Active Directory lookup must handle the following 3 exception types

1) InvalidOperationException
Explanation: 
2) NotSupportedException
Explanation: The Active Directory provider does not support the operation performed (e.g. .FindAll(), .FindOne())
3) COMException
Explanation: This exception is thrown when the machine performing AD lookup, cannot access the provider.

Reference:

Comments

Popular posts from this blog

WPF How to Dispose ViewModel when the associated UserControl (Not Window) closes?

C# How to unit test Dispatcher

WPF: How to Deep Copy WPF object (e.g. UIElement) ?