System.Collections.Generic.KeyNotFoundException when using .NET Connector Server 1.4.0.0 with the Active Directory Connector in OpenIDM 3.x
The purpose of this article is to provide assistance if you receive a System.Collections.Generic.KeyNotFoundException Caused by: The given key was not present in the dictionary when using the .NET® Connector Server 1.4.0.0 with the Active Directory Connector in OpenIDM 3.x.
Archived
This article has been archived and is no longer maintained by ForgeRock.
Symptoms
The following errors are shown in the .NET Connector Server log file when the connection fails:
ConnectorServer.exe Error: 0 : Exception : Type: System.Collections.Generic.KeyNotFoundException Message: The given key was not present in the dictionary. Source: FrameworkInternal Stacktrace: at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at Org.IdentityConnectors.Framework.Impl.Api.Local.Operations.ConnectorOperationalContext.get_Pool() at Org.IdentityConnectors.Framework.Impl.Api.Local.Operations.ConnectorAPIOperationRunnerProxy.Invoke(Object proxy, MethodInfo method, Object[] args) at ___proxy1.Create(ObjectClass , ICollection`1 , OperationOptions ) at Org.IdentityConnectors.Framework.Impl.Api.DelegatingTimeoutProxy.Invoke(Object proxy, MethodInfo method, Object[] args) at ___proxy1.Create(ObjectClass , ICollection`1 , OperationOptions ) at Org.IdentityConnectors.Framework.Impl.Server.ConnectionProcessor.ProcessOperationRequest(OperationRequest request) DateTime=2015-01-10T16:21:56.4090546ZCaused by: org.identityconnectors.framework.common.exceptions.ConnectorException: The given key was not present in the dictionary. at org.forgerock.openidm.provisioner.openicf.impl.OpenICFProvisionerService$DotNetExceptionHelper.getConnectorException(OpenICFProvisionerService.java:642) ... 153 moreThe errors are cleared if you restart the .NET Connector Server and you can connect again.
Recent Changes
Upgraded to .NET Connector Server 1.4.0.0
Implemented the .NET Connector Server and the AD Connector in OpenIDM.
Causes
This is an intermittent error that causes the .NET Connector Server to stop running or responding, which in turn prevents connection.
Solution
This issue can be resolved by upgrading the .NET Connector Server to 1.4.1.0 or upgrading to OpenIDM 4 or later; you can download this from BackStage.
Note
You must uninstall .NET Connector Server 1.4.0.0 before installing .NET Connector Server 1.4.1.0.
See Also
N/A
Related Training
N/A