SCSM: “An error was encountered while running the task”

I recently came across an unusual issue with Service Manager were all of the connectors stopped functioning.  Any time I went into the properties or attempted to create a new connector (in particular when starting to create and selecting test authentication), the connector would crash with the following error:

Application: System Center Service Manager
Application Version: 7.5.3079.0
Severity: Error
Message: An error was encountered while running the task.


Really helpful message…

I had seen a similar issues previously with the Exchange Connector due to a corrupted Default SR or IR Template.  As this was in the sandbox environment, I started removing custom Management Packs as a test – all that had been created since the connector had stopped working.  None of this resolved the issue.

The issue it turned out was with the System Center Operations Manager Agent installed on the SCSM server.

The Microsoft SCOM Agent is bundled in with Service Manager by default.  I have ran into several random issues before with System Center Operations Manager, where I needed to rebuild the Health Service State folder by stopping the “Microsoft Monitoring Agent” and renaming this folder.  On the SCSM server, the service is still the same but the Health State is in a different location.

First, stop the service:

Rename the SCOM Health Service State Folder (Located: C:\Program Files\Microsoft System Center 2012 R2\Service Manager\Health Service State)
Restart the Microsoft Monitoring Agent (this will recreate the Health Service State folder).

You should now be able to create connectors!

About AJ McKean

Based in sunny Tauranga, New Zealand, AJ McKean is a Senior Systems Engineer in Mt Maunganui. With over 15 years of professional IT experience working in both New Zealand and the United States, he holds several certifications including MCSE(2000-2003), MCITP:Enterprise(2008), MCSA(2012), VMware VCP-DCV5.5, CompTIA A+ & is an HP Storage Architect. He is passionate about all things IT, especially virtualization, automation & cloud technologies.

3 Responses to “SCSM: “An error was encountered while running the task””

  1. Ericca Springer says :

    I am experiencing this problem in SCSM 2016. I followed this procedure and it did not resolve it. This is a brand new install, there are no custom management packs present, nor are there any other connectors.

    • AJ McKean says :

      Hi Ericca – thanks for stopping by the site. Sorry this didn’t help. Any errors coming out of the Operations Manager log? Is there already an existing SCOM 2012 Monitoring Agent installed that may be conflicting with the bundled SCSM agent?

  2. Mike Maggio says :

    I followed your instructions but I am now getting this error:

    Application: System Center Service Manager
    Application Version: 7.5.7487.0
    Severity: Error
    Message: Could not load type ‘Microsoft.EnterpriseManagement.ServiceManager.UI.Administration.Administration’ from assembly ‘Microsoft.EnterpriseManagement.ServiceManager.UI.Administration, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’.

    System.TypeLoadException: Could not load type ‘Microsoft.EnterpriseManagement.ServiceManager.UI.Administration.Administration’ from assembly ‘Microsoft.EnterpriseManagement.ServiceManager.UI.Administration, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’.
    at Microsoft.EnterpriseManagement.UI.SdkDataAccess.ConsoleTaskHandler.DoTask(IList`1 navigationNodes, NavigationModelNodeTask task, List`1 parameterList)
    at Microsoft.EnterpriseManagement.UI.SdkDataAccess.ConsoleTaskHandler.DoTask(IList`1 navigationNodes, NavigationModelNodeTask task)
    at Microsoft.EnterpriseManagement.ServiceManager.UI.Console.ConsoleJobExceptionHandler.ExecuteJob(IComponent component, EventHandler`1 job, Object sender, ConsoleJobEventArgs args)

Leave a Reply

Your email address will not be published. Required fields are marked *