Support-Info: (INSTALLATION): Troubleshooting MIM Service/Portal Install/Upgrade IsSharepointAdminServiceRunning Error

PRODUCTS INVOLVED / SOLUTIONS INVOLVED

  • Forefront Identity Manager 2010 R2 SP1
  • Microsoft Identity Manager 2016 SP1
    • Service/Portal Install / Upgrade

PROBLEM SCENARIO DESCRIPTION

Trying to upgrade from FIM 2010 R2 SP1 to MIM 2016

The upgrade fails (this same error could also happen during an install process as well)

Collected a verbose log of the install/upgrade using the msiexec command:

  1. From an Administrative Command Prompt
  2. Run the following command to collect the verbose install log:

MSIEXEC /i “Service and Portal.msi” /l*v MIMInstallLog.txt

WINDOWS INSTALLER VERBOSE LOG

Calling custom action Microsoft.IdentityManagement.SharepointCustomActions!Microsoft.IdentityManagement.ManagedCustomActions.SharepointCustomActions.IsSharepointAdminServiceRunning

Exception thrown by custom action:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> System.NullReferenceException: Object reference not set to an instance of an object.

   at Microsoft.IdentityManagement.ManagedCustomActions.SharepointCustomActions.IsSharepointAdminServiceRunning(Session session)

   — End of inner exception stack trace —

CAUSE

Reviewed the install log and found the exact stack of the error

Cause – IsSharePointAdminServiceRunningException

RESOLUTION

  1. Verified the SharePoint Administration Service was running
  2. Issue was due to the required SharePoint permissions not being set on the install account
    • For the account that is being used to run the install/upgrade for the MIM Service/Portal we need the following SharePoint permissions

SharePoint Permissions (These are configured in SharePoint Central Administration)

        SharePoint Farm Administrators Group

        SharePoint Site Administrators

Refer to the guide below in the Additional Information section for the account permissions and details on the other permissions required

ADDITIONAL INFORMATION

 

SharePoint Permissions (These are configured in SharePoint Central Administration)

SharePoint Farm Administrators Group

SharePoint Site Administrators

Possible installation issues:

[Troubleshooting] CheckSharepointFarmAdministratorWithOpenPermission