The Source Was Not Found But Some Or All Event Logs Could Not Be Searched

Issue Description:

  • Error EventLogTarget(Name=eventLog_wrapped): Error when connecting to EventLog. Source=Orchestrator in Log=Application Exception: System.Security.SecurityException: The source was not found, but some or all event logs could not be searched. Inaccessible

  • This Error is observed in NLog when the Orchestrator web.config file or Orchestrator.dll.config file is configured to troubleshoot NLog configuration for proper syntax.

Resolution:

  • On the Orchestrator Server machine, open Powershell as an Administrator and run the below Command
    • New-EventLog -Source Orchestrator -LogName Application