Fix TCP error code 10061 in SharePoint 2010 User Profile Service
In SharePoint timer job history I have noticed that there's the error in starting User Profile synchronization:
Could not connect to http://spsrv:5725/ResourceManagementService/MEX. TCP error code 10061: No connection could be made because the target machine actively refused it <ip-adress:port>.
In EventViewer there were some records like this:
Detection of product '{90140000-104C-0000-1000-0000000FF1CE}', feature 'PeopleILM', component '{1C12B6E6-898C-4D58-9774-AAAFBDFE273C}' failed. The resource 'C:\Program Files\Microsoft Office Servers\14.0\Service\Microsoft.ResourceManagement.Service.exe' does not exist.
Solution.
Open services.msc. Be sure that both Forefront Identity Manager Service and Forefront Identity Manager Synchronization Service are started. Start them if they are stopped.