Unhandled exception at Microsoft.ActiveDirectory.Management.Commands.SafeSessionCache
Hi all,
Our App crashes randomly every now and then. Right before it crashes the following appears logged:
====================================================================
Application: xxxxxx.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
at Microsoft.ActiveDirectory.Management.Commands.SafeSessionCache.Dispose(Boolean)
at Microsoft.ActiveDirectory.Management.Commands.SafeSessionCache.Finalize() ====================================================================
Note that a Powershell script runs by our app which loads Import-Module ActiveDirectory to run AD commands.