The Initialize-CSSite command can fail after applying Windows updates

  • Description

    After applying the latest Windows updates, you can see the following error messages when executing the Initialize-CSSite Powershell command during Sitecore Commerce deployment:

    Granting the identity '.\CSFndRuntimeUser' access to the IIS WAMREG admin Service DCOM application...
    System.Management.Automation.RuntimeException: The property 'Dacl' cannot be found on this object. Verify that the property exists and can be set.
       at CallSite.Target(Closure , CallSite , Object , Object )
       at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
       at System.Management.Automation.Interpreter.DynamicInstruction`3.Run(InterpretedFrame frame)
       at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
    Failed to grant the identity '.\CSFndRuntimeUser' access to the DCOM application 'IIS WAMREG admin Service' (ID = {61738644-F196-11D0-9953-00C04FD919C1}).
    Granting the identity '.\CSFndRuntimeUser' access to the CSS Replication Server DCOM application...
    System.Management.Automation.RuntimeException: The property 'Dacl' cannot be found on this object. Verify that the property exists and can be set.
       at CallSite.Target(Closure , CallSite , Object , Object )
       at System.Management.Automation.Interpreter.DynamicInstruction`3.Run(InterpretedFrame frame)
       at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
    Failed to grant the identity '.\CSFndRuntimeUser' access to the DCOM application 'CSS Replication Server' (ID = {7E95698D-CD3C-4C98-93C7-6510C31F7DDF}).
  • To fix this issue, you must manually assign Launch and Activation permissions on the CSS Replication Server for the Sitecore application pool identity:

    1. In the Control Panel, click System and Security and then click Administrative Tools, to launch the Component Services application.
    2. Navigate to /Component Services/Computers/My Computer/DCOM Config.
    3. Locate the CSS Replication Server entry. Depending on your Windows version, this entry can appear as {7E95698D-CD3C-4C98-93C7-6510C31F7DDF}.
    4. Click Properties and on the Security tab, in the Launch and Activation Permissions section, click Customize and then click Edit.
    5. Assign the Sitecore site application pool user the following permissions:
      • Local Launch
      • Local Activation
    6. Click OK to save the changes.
    • You do not have to manually assign permissions for the IIS WAMREG admin Service, which is not being used by the current Commerce features.
    • Despite the failures on DCOM steps, the Initialize-CSSite command should still finish the remaining steps successfully. Therefore, you do not need to re-run this command after following the instructions in the Solution section of this article.

Applies to:

Sitecore Commerce 8.0+

May 30, 2017
May 30, 2017

Reference number:

27284

Keywords: 

  • Commerce Server