SCOM Events 21041 and 21027 opsmgr connector

 
Had a few machines today with an error we see more often, so I thought I would share it.
Symptoms:
A SCOM agent has these messages.
Event 21041.
Operations Manager has received a bad configuration file for management group mgmtgroup which could not be parsed. Configuration has been re-requested. A copy of the bad configuration file will be placed in C:\Program Files\System Center Operations Manager 2007\Health Service State\Connector Configuration Cache\mgmtgroup\OpsMgrConnector.Config.Error.xml
Event 21027
OpsMgr has received configuration for management group mgmtgroup from the Configuration Service, but failed to process the configuration. Configuration will be re-requested. The current state cookie is “” (State cookie may be empty if there is no active configuration)
Solution:
Re-install the msxml6 XML Parser on the agent machine. You can find it where the installer frm the SCOM agent is located on any management server (usually C:\Program Files\System Center Operations Manager 2007\AgentManagement\).
Re-start the System Center Management Service.
Bob Cornelissen