Saturday, February 4, 2017

Citrix MFCOM errors

Error
"Citrix MFCOM Service did not respond as expected. Make sure that your user account is a member of this computer's Distributed COM Users group if you are connecting to a remote server. Check the version of Citrix Presentation Server on the computer and make sure that a compatible version of Citrix MFCOM Service is installed and running."

Resolution

go to Component Services within Administrative Tools

Expand Component Services
Expand Computers
Expand My Computer
Expand COM+ Applications
Expand Citrix IMA COM Interop
Expand Roles
Expand Citrix Administrators
Right click Users and add an existing user or group

***


To re-register MFCOM in Windows complete the following procedure: 
  1. Navigate to the %programfiles(x86)%\Citrix\system32 folder from the command prompt.
  2. Run the following command from the command prompt:
    mfcom /unregserver
    No output is displayed
  3. Run the following command from the command prompt:
    mfcom /regserver
  4. Run the following command from the command prompt: (for XA 6.5)
    regsvr32 mfcomsrv.dll
  5. Click OK.
  6. Open the registry editor and navigate to the following entry:
    HKLM\SYSTEM\CurrentControlSet\Services\MFCom
  7. Create a DWORD value with the following details:
    Name: ServiceSidType
    Data: 1
  8. Restart the server.
  9. Verify if the Citrix MFCOM Service is displayed and has started.


Missing Citrix MetaFrame COM Server

I am picky when it comes to the Citrix XenApp servers on which I work.  Warnings and Errors in the event logs just drive me up the wall.  They are both to be banished if at all possible.  A client site I was at recently fixing issues had hundreds of DCOM errors recorded in every XenApp server’s System event log.   A particular event that is recorded is shown in Figure 1.

Figure 1
One of the common reasons for this error is when an administrator executes the Citrix Management Consoles on XenApp servers which are not Zone Data Collectors.  Best practice is to install and run the Citrix Delivery Services Console and Advanced Configuration Console on the Zone Data Collectors.
To resolve this error, Microsoft recommends the following steps be followed (http://tinyurl.com/DCOM10016 ).

DCOM Repair Instructions:

  1. Copy the CLSID
  2. Open the registry editor
  3. Search for the CLSID
  4. Record the name
  5. Open Administrative Tools -> Component Services
  6. Double-click Component Services
  7. Double-click Computers
  8. Double-click My Computer
  9. Click DCOM Config
  10. Scroll down and find the object with the name you recorded earlier
  11. Right-click the object and select Properties
  12. Click the Security tab
  13. In the Launch and Activation Permissions section, select Customize and click Edit…
  14. Add the user reported in the event
  15. Select the user just added and check Allow – Remote Activation
  16. Click OKOK and exit Component Services
CLSID {ED62F4E3-63C2-11D4-94D8-00C04FB0F326) is MetaFrame COM Server and is found by that name on most servers at this client site.  On a few of their servers, I ran into two issues in Component Services:
  1. CLSID found but not MetaFrame COM Server.
  2. Neither MetaFrame COM Server nor the CLSID is found.

CLSID found but not MetaFrame COM Server

Searching the registry for the CLSID on one server returned what is shown in Figure 2.

Figure 2
I knew from other servers that this should be showing as MetaFrame COM Server (Figure 3).

Figure 3
Looking in DCOM Config shows no component named MetaFrame COM Server (Figure 4).

Figure 4
However, the CLSID of {ED62F4E0-63C2-11D4-94D8-00C04FB0F326} is found (Figure 5).

Figure 5
For this server, the problem is simply that the component does not have the name configured.  To fix this problem, return back to the registry editor and double click on (Default) (Figure 6).

Figure 6
For Value data Enter MetaFrame COM Server, click OK and exit the registry editor (Figure 7).
Note: This entry may be case sensitive, so enter the Value data exactly as shown above.

Figure 7
In Component Services, click on DCOM Config and then click on the Refresh icon (Figure 8).

Figure 8
The MetaFrame COM Server component is now in the proper location (Figure 9).

Figure 9
You can now use the instructions given above under DCOM Repair Instructions, to add the user and assign the Allow – Remote Activation permission.

Neither MetaFrame COM Server nor the CLSID is found

On one server, the Citrix MFCOM Service is missing (Figure 10).

Figure 10
Also, the MetaFrame COM Server is missing in Component Services (Figure 11).

Figure 11
The CLSID of {ED62F4E0-63C2-11D4-94D8-00C04FB0F326} is also missing (Figure 12).

Figure 12
To fix these issues, from an elevated command prompt, register both by typing the following commands (Figure 13).
mfcom /regserver
mfreg /regserver
net start MFCom

Figure 13
The Citrix MFCOM Service returns and is started (Figure 14).

Figure 14
In DCOM Config in Component Services, the CLSID appears (Figure 15).

Figure 15
Open the registry editor, search for the CLSID and double click on (Default) (Figure 16).

Figure 16
For Value data Enter MetaFrame COM Server, click OK and exit the registry editor (Figure 17).
Note: This entry may be case sensitive, so enter the Value data exactly as shown above.

Figure 17
In Component Services, click on DCOM Config and then click on the Refresh icon (Figure 18).

Figure 18
The MetaFrame COM Server component is now in the proper location (Figure 19).

Figure 19
You can now use the instructions given above under DCOM Repair Instructions, to add the user and assign the Allow – Remote Activation permission.

No comments:

Post a Comment