In my case this error arise after the deletion of shared services database i.e. HSS . After the deletion what I did was cleaning of registry. So the error could not be solved by the running of registry cleanup.bat script.
Can you provide some different solution
Thanks in advance