- priority: 5 --> 7
I am currently trying to write an application that interogates an MIIS Connector Space object so I can then forward some details on to a team that needs to complete some actions outside of the FIM environment.
The problem I am having is that for some reason when I try to search for the CSEntries I need I keep getting an error. I have tried to use the example provided in particular the method GetCSEntry_fast but to no avail. If I specify the Management Scope as \\root\MicrosoftIdentityIntegrationServer, I get an 'RPC Server is unavailable' error. If I define it without the \\ I get a 'Generic error' message and an error in the Event Viewer for BAIL: MMS(5748) which I'm having trouble finding any info for. Here's the code snippet:
string MIIS_WMI_Namespace = @"\\root\MicrosoftIdentityIntegrationServer";
string query = string.Format("Select * from MIIS_CSObject where DN='{0}' and MaGuid='{1}'",dn, maGuid);
ManagementObjectSearcher CSsearcher = new ManagementObjectSearcher(MIIS_WMI_Namespace, query);
//the error occurs on the line below
ManagementObjectCollection CSobjects = CSsearcher.Get();
This code is being run on the actual FIM server so it not connecting remotely.
Can anyone please see what I might be doing wrong?
Thanks in advance!