Falha
Estou com problema no e-Agente Datacenter Integration, após reiniciar o computador ele não inicia, e esta me trazendo o seguinte retorno no EventViewer:
Service cannot be started. System.ArgumentException: An item with the same key has already been added. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at NDDigital.eAgentIntegration.Service.Session.SessionCache.PopulateTransmittersDictionary() at NDDigital.eAgentIntegration.Service.Session.SessionCache.LoadCacheData() at NDDigital.eAgentIntegration.Service.AgentIntegrationService.OnStart(String[] args) at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state)
Como posso resolver?
Solução
Conforme analisado pelo Luciano, identificamos que esse erro ocorre quando existe um JobKey duplicado em nossa base do Datacenter.ConfigurationManager.
Ao reiniciar o servidor, o serviço do eAgente atualiza a configuração do cliente e no momento que o e-Agente Datacenter Integration faz a validação e identifica o jobkey duplicado ele não inicia.
Após validação, correta parametrização e reinicialização dos serviços, o e-Agente Datacenter Integration foi iniciado e os documentos na fila foram processados com sucesso.
Outras informações
Fonte: Petterson Grahl Ferreira