An exception of type System.Reflection.TargetInvocationException was thrown. Additional exception information: Exception has been thrown by the target of an invocation.

Tevon2.0 1,106 Reputation points
2023-01-19T17:04:27.2066667+00:00

Error popped up after trying to run SharePoint Configuration.

An exception of type System.Reflection.TargetInvocationException was thrown.  Additional exception information: Exception has been thrown by the target of an invocation.
/19/2023 12:01:57  13  INF                              Entering function RegistryHelper.GetStringValue
01/19/2023 12:01:57  13  INF                                Entering function RegistryHelper.GetValue
01/19/2023 12:01:57  13  INF                                Leaving function RegistryHelper.GetValue
01/19/2023 12:01:57  13  INF                              Leaving function RegistryHelper.GetStringValue
01/19/2023 12:01:57  13  INF                              Retrieved the service name ProjectCalcService16 from HKEY_LOCAL_MACHINE\Software\Microsoft\Shared Tools\Web Server Extensions\16.0\WSS\Services\Microsoft.Office.Project.Server.Administration.ProjectCalcService\ServiceName
01/19/2023 12:01:57  13  INF                              Entering function TaskCommon.ReflectionHelperInvokeConstructor
01/19/2023 12:01:57  13  INF                                Trying to get the type for assembly Microsoft.Office.Project.Server.Administration.ProjectCalcService, Microsoft.Office.Project.Server.Administration, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C
01/19/2023 12:01:57  13  INF                                Type for assembly Microsoft.Office.Project.Server.Administration.ProjectCalcService, Microsoft.Office.Project.Server.Administration, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C is Microsoft.Office.Project.Server.Administration.ProjectCalcService.  Now, calling the constructor...
01/19/2023 12:01:57  13  ERR                                Task services has failed with an unknown exception 
01/19/2023 12:01:57  13  ERR                                Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Security.Principal.IdentityNotMappedException: Some or all identity references could not be translated.
   at System.Security.Principal.SecurityIdentifier.Translate(IdentityReferenceCollection sourceSids, Type targetType, Boolean forceSuccess)
   at System.Security.Principal.SecurityIdentifier.Translate(Type targetType)
   at Microsoft.SharePoint.Utilities.SPUserUtility.SidToAccountName(SecurityIdentifier sid)
   at Microsoft.SharePoint.Utilities.SPUserUtility.IsLocalAccount(SecurityIdentifier sid)
   at Microsoft.SharePoint.Utilities.SPUserUtility.WarnIfLocalAccountOnFarm(SecurityIdentifier sid, String accountUser)
   at Microsoft.SharePoint.Administration.SPProcessIdentity.set_ManagedAccount(SPManagedAccount value)
   at Microsoft.Office.Project.Server.Administration.ProjectServiceBase..ctor(String name, SPFarm farm)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Microsoft.SharePoint.PostSetupConfiguration.ReflectionHelper.InvokeConstructor(String assemblyQualifiedName, Type[] constructorSignature, Object[] constructorParameters)
   at Microsoft.SharePoint.PostSetupConfiguration.TaskCommon.ReflectionHelperInvokeConstructor(String assemblyQualifiedName, Type[] constructorSignature, Object[] constructorParameters, TaskBase task)
   at Microsoft.SharePoint.PostSetupConfiguration.ServicesTask.InvokeServiceConstructor(String serviceRegistryKeyName, String solutionIdRegistryName, String serviceNameRegistryName, Type[] constructorSignature, Object[] constructorParameters)
   at Microsoft.SharePoint.PostSetupConfiguration.ServicesTask.InstallServiceInConfigDB(Boolean provisionTheServiceToo, String serviceRegistryKeyName)
   at Microsoft.SharePoint.PostSetupConfiguration.ServicesTask.InstallServices(Boolean provisionTheServicesToo)
   at Microsoft.SharePoint.PostSetupConfiguration.ServicesTask.Run()
   at Microsoft.SharePoint.PostSetupConfiguration.TaskThread.ExecuteTask()
01/19/2023 12:01:57  13  INF                                Entering function Common.BuildExceptionMessage
01/19/2023 12:01:57  13  INF                                  Entering function StringResourceManager.GetResourceString
01/19/2023 12:01:57  13  INF                                    Resource id to be retrieved is ExceptionInfo for language English (United States)
01/19/2023 12:01:57  13  INF                                    Resource retrieved id ExceptionInfo is An exception of type {0} was thrown.  Additional exception information: {1}
01/19/2023 12:01:57  13  INF                                  Leaving function StringResourceManager.GetResourceString
01/19/2023 12:01:57  13  INF                                Leaving function Common.BuildExceptionMessage
01/19/2023 12:01:57  13  INF                                Entering function Common.BuildExceptionInformation
01/19/2023 12:01:57  13  INF                                  Entering function Common.BuildExceptionMessage
01/19/2023 12:01:57  13  INF                                    Entering function StringResourceManager.GetResourceString
01/19/2023 12:01:57  13  INF                                      Resource id to be retrieved is ExceptionInfo for language English (United States)
01/19/2023 12:01:57  13  INF                                      Resource retrieved id ExceptionInfo is An exception of type {0} was thrown.  Additional exception information: {1}
01/19/2023 12:01:57  13  INF                                    Leaving function StringResourceManager.GetResourceString
01/19/2023 12:01:57  13  INF                                  Leaving function Common.BuildExceptionMessage
01/19/2023 12:01:57  13  INF                                Leaving function Common.BuildExceptionInformation
01/19/2023 12:01:57  13  ERR                                An exception of type System.Reflection.TargetInvocationException was thrown.  Additional exception information: Exception has been thrown by the target of an invocation.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Security.Principal.IdentityNotMappedException: Some or all identity references could not be translated.
   at System.Security.Principal.SecurityIdentifier.Translate(IdentityReferenceCollection sourceSids, Type targetType, Boolean forceSuccess)
   at System.Security.Principal.SecurityIdentifier.Translate(Type targetType)
   at Microsoft.SharePoint.Utilities.SPUserUtility.SidToAccountName(SecurityIdentifier sid)
   at Microsoft.SharePoint.Utilities.SPUserUtility.IsLocalAccount(SecurityIdentifier sid)
   at Microsoft.SharePoint.Utilities.SPUserUtility.WarnIfLocalAccountOnFarm(SecurityIdentifier sid, String accountUser)
   at Microsoft.SharePoint.Administration.SPProcessIdentity.set_ManagedAccount(SPManagedAccount value)
   at Microsoft.Office.Project.Server.Administration.ProjectServiceBase..ctor(String name, SPFarm farm)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Microsoft.SharePoint.PostSetupConfiguration.ReflectionHelper.InvokeConstructor(String assemblyQualifiedName, Type[] constructorSignature, Object[] constructorParameters)
   at Microsoft.SharePoint.PostSetupConfiguration.TaskCommon.ReflectionHelperInvokeConstructor(String assemblyQualifiedName, Type[] constructorSignature, Object[] constructorParameters, TaskBase task)
   at Microsoft.SharePoint.PostSetupConfiguration.ServicesTask.InvokeServiceConstructor(String serviceRegistryKeyName, String solutionIdRegistryName, String serviceNameRegistryName, Type[] constructorSignature, Object[] constructorParameters)
   at Microsoft.SharePoint.PostSetupConfiguration.ServicesTask.InstallServiceInConfigDB(Boolean provisionTheServiceToo, String serviceRegistryKeyName)
   at Microsoft.SharePoint.PostSetupConfiguration.ServicesTask.InstallServices(Boolean provisionTheServicesToo)
   at Microsoft.SharePoint.PostSetupConfiguration.ServicesTask.Run()
   at Microsoft.SharePoint.PostSetupConfiguration.TaskThread.ExecuteTask()
01/19/2023 12:01:57  13  INF                                Entering function Common.BuildExceptionInformation
01/19/2023 12:01:57  13  INF                                  Entering function Common.BuildExceptionMessage
01/19/2023 12:01:57  13  INF                                    Entering function StringResourceManager.GetResourceString
01/19/2023 12:01:57  13  INF                                      Resource id to be retrieved is ExceptionInfo for language English (United States)
01/19/2023 12:01:57  13  INF                                      Resource retrieved id ExceptionInfo is An exception of type {0} was thrown.  Additional exception information: {1}
01/19/2023 12:01:57  13  INF                                    Leaving function StringResourceManager.GetResourceString
01/19/2023 12:01:57  13  INF                                  Leaving function Common.BuildExceptionMessage
01/19/2023 12:01:57  13  INF                                Leaving function Common.BuildExceptionInformation
01/19/2023 12:01:57  13  INF                                Entering function get CommandCollection.this[string key]
01/19/2023 12:01:57  13  INF                                  Entering function CommandCollectionBase.Get
01/19/2023 12:01:57  13  INF                                    Found value in collection for key global
01/19/2023 12:01:57  13  INF                                  Leaving function CommandCollectionBase.Get
01/19/2023 12:01:57  13  INF                                  Found command global in collection
01/19/2023 12:01:57  13  INF                                Leaving function get CommandCollection.this[string key]
01/19/2023 12:01:57  13  INF                                Entering function get CommandCollection.this[string key]
Microsoft 365 and Office SharePoint Server For business
Microsoft 365 and Office SharePoint Server Development
0 comments No comments
{count} votes

Accepted answer
  1. Wendy Li_MSFT 1,711 Reputation points Moderator
    2023-01-20T06:32:50.31+00:00

    @Tevon2.0

    Firstly, let's verify the followings:

    1. Did you run SharePoint Configuration Wizard after installing a CU?
    2. Did you change username/password for your service accounts recently?

    If you installed CUs recently, please make sure you have installed both SharePoint Server patch and SharePoint Server 2016 MUI/language patch, and all servers have same CUs installed if you have multiple SharePoint servers.

    About SharePoint updates, you can refer to the article:

    https://learn.microsoft.com/en-us/officeupdates/sharepoint-updates

    If you changed password for your service accounts, please update the identify of related application pools and restart them in IIS Manager. Then re-run SharePoint Configuration Wizard again, compare the result.

    A blog about this similar issue for your reference

    https://nationalcom.com/wordpress/2009/05/05/an-exception-of-type-systemsecurityprincipalidentitynotmappedexception-was-thrown-sharepoint/

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.