Error Failed to register SharePoint services in MSD Axapta

Source: SharePOint
Event ID:104
Description:

Failed to register SharePoint services.
An exception of type System.ArgumentException was thrown.  Additional exception information: Error during encryption or decryption. System error code 997.
System.ArgumentException: Error during encryption or decryption. System error code 997.
   at Microsoft.SharePoint.Administration.SPCredentialManager.DecryptWithMasterKey(Byte[] rgbEncryptedPassphrase)
   at Microsoft.SharePoint.Administration.SPEncryptedString.GetSecureStringValue()
   at Microsoft.SharePoint.Administration.SPEncryptedString.get_SecureStringValue()
   at Microsoft.SharePoint.Administration.SPProcessIdentity.get_SecurePassword()
   at Microsoft.SharePoint.Administration.SPProcessIdentity.Provision()
   at Microsoft.SharePoint.Administration.SPWindowsServiceInstance.ProvisionCredentials()
   at Microsoft.SharePoint.Administration.SPWindowsServiceInstance.Provision(Boolean start)
   at Microsoft.SharePoint.Administration.SPWindowsServiceInstance.Provision()
   at Microsoft.SharePoint.Search.Administration.SPSearchServiceInstance.Provision()
   at Microsoft.SharePoint.PostSetupConfiguration.ServicesTask.InstallServiceInstanceInConfigDB(Boolean provisionTheServiceInstanceToo, String serviceInstanceRegistryKeyName, Object sharepointServiceObject)
   at Microsoft.SharePoint.PostSetupConfiguration.ServicesTask.InstallServiceInstances(Boolean provisionTheServiceInstancesToo, String serviceRegistryKeyName, Object sharepointServiceObject)
   at Microsoft.SharePoint.PostSetupConfiguration.ServicesTask.InstallServices(Boolean provisionTheServicesToo)
   at Microsoft.SharePoint.PostSetupConfiguration.ServicesTask.Run()
   at Microsoft.SharePoint.PostSetupConfiguration.TaskThread.ExecuteTask()

For more information, see Help and Support Center at

Solution:

On the Start menu, click Run. In the Open box, type regedit and then click OK.

2. In the Registry Editor, navigate to the following subkey, and then delete it:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\12.\WSS\Services\Microsoft.SharePoint. Search.Administration.SPSearchService

3. Run the SharePoint Products and Technologies Configuration Wizard again.