SharePoint 2010: Failed to register SharePoint services

After I was installing a new SharePoint farm, I got this message while running the "Configuration Wizard" (step 5):

Failed to register SharePoint services

I tried to restart the system, stopp and start the services again, but nothing worked. In the end I had to delete some entries in the registry.

1. So, click on "Start", "run" and type in "regedit". 

2. Now follow this path:

HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Shared Tools/Web ServerExtensions/14.0/WSS/Services

3. There I started to delete every failed service that poped up. 

SharePoint 2010: An exception of type System.Security.Cryptography.CryptographicException was thrown

Infopath 2010: Get groups from user