View Edwin Vriethoff's profile on LinkedIn

Microsoft.SharePoint.Upgrade.SPUpgradeException: Action 12.0.1.0 of Microsoft.Office.Server. Search.Upgrade.SearchServiceInstanceSequence failed

February 1, 2008   14:14


Migrating your SharePoint environment inside a virtual machine might cause some unexpected behaviour. It can be possible that you bump into this error:

Microsoft.Office.Server.Search.Upgrade.SearchServiceInstanceSequence failed

And for Google indexing the detailed error report:

Exception: Microsoft.SharePoint.Upgrade.SPUpgradeException: Action 12.0.1.0 of Microsoft.Office.Server.Search.Upgrade.SearchServiceInstanceSequence failed. —> System.InvalidOperationException: This access control list is not in canonical form and therefore cannot be modified.
at System.Security.AccessControl.CommonAcl.RemoveQualifiedAces(SecurityIdentifier sid, AceQualifier qualifier, Int32 accessMask, AceFlags flags, Boolean saclSemantics, ObjectAceFlags objectFlags, Guid objectType, Guid inheritedObjectType)
at System.Security.AccessControl.DiscretionaryAcl.RemoveAccess(AccessControlType accessType, SecurityIdentifier sid, Int32 accessMask, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags)
at System.Security.AccessControl.CommonObjectSecurity.ModifyAccess (AccessControlModification modification, AccessRule rule, Boolean& modified)
at System.Security.AccessControl.ObjectSecurity.ModifyAccessRule (AccessControlModification modification, AccessRule rule, Boolean& modified)
at Microsoft.Search.Administration.Security.Registry.ConfigureCommonACL(RegistryKey key, String username)
at Microsoft.Search.Administration.Security.Registry.ConfigureCommonACL(RegistryKey baseKey, String keyPath, String username)
at Microsoft.Search.Administration.Security.ServiceRegistry.EnsureACL(String username)
at Microsoft.Office.Server.Search.Administration. SearchServiceInstance.Provision()
at Microsoft.Office.Server.Search.Upgrade. ProvisionSearchServiceInstance.Upgrade()
at Microsoft.SharePoint.Upgrade.SPActionSequence.Upgrade()
— End of inner exception stack trace —
at Microsoft.SharePoint.Upgrade.SPActionSequence.Upgrade()
at Microsoft.SharePoint.Upgrade.SPManager.Upgrade(Object o, Boolean bRecurse)
at Microsoft.SharePoint.Administration. SPPersistedUpgradableObject.Upgrade(Boolean recursively)
at Microsoft.SharePoint.Upgrade.SPManager.Initialize()
at Microsoft.SharePoint.PostSetupConfiguration.UpgradeBootstrapTask.Run()
at Microsoft.SharePoint.PostSetupConfiguration.TaskThread.ExecuteTask()

The solution is hard to find, but easy to fix. The reason that the SharePoint Products and Technologies Configuration Wizard upgrade sequence fails is that it is not possible for the process to access certain registry keys on the computer. Checking out the permissions on the registry keys with regedit.exe learns that the permissions are incorrectly ordered:

Registry permission error message

It’s a bit unclear what caused this behaviour, but it seems that changing/updating the SID of a virtual machine is the problem.

Now the solution:

Browse with regedit.exe to the following 3 registry nodes:

  • HKLM\Software\Microsoft\Shared Tools\Web Server Extensions\12.0
  • HKEY_CLASSES_ROOT\AppID\{58F1D482-A132-4297-9B8A-F8E4E600CDF6}
  • HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Eventlog\Application\SharePoint Products and Technologies Configuration Wizard

Right click the registry keys and choose the Permissions option from the menu.

Right click the registry keys and choose the Permissions option from the menu

Regedit will show you a warning message about the incorrectly ordered permissions. Press OK and also close the permission dialog that is presented afterwards.

Once you fixed all 3 keys this way, you can start up the SharePoint Products and Technologies Configuration Wizard again and finish your migration.

Tags: , , , , , .





5 Comments »

  1. YOU ARE MY HERO !!!!!!

    Comment by Marco — May 7, 2008 @ 1:55 pm

  2. You are a God!

    Comment by Greg Siegert — May 27, 2008 @ 7:12 pm

  3. after lots of searches, i found the missing keys (what a joke…) to unlock the setup.
    thank you

    Comment by paolo — June 30, 2008 @ 11:41 am

  4. i didn’t find the following:

    -HKLM\Software\Microsoft\Shared Tools\Web Server Extensions\12.0
    -HKEY_CLASSES_ROOT\AppID\{58F1D482-A132-4297-9B8A-F8E4E600CDF6}

    i can only find: HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Eventlog\Application\SharePoint Products and Technologies Configuration Wizard

    Comment by jamil haddadin — July 2, 2008 @ 3:46 pm

  5. Hi Jamil. Those keys will only exist after you experience the error. SharePoint will first have to install the keys that belonging to version 2007

    Comment by Edwin Vriethoff — July 2, 2008 @ 3:52 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment





The content expressed in this blog are those of Edwin Vriethoff and do not represent his employer's view in anyway. The contents of this blog has been carefully put together, but Edwin Vriethoff is not responsible in any way for any direct or indirect harm caused by individuals or organizations using the content of this blog in any way.