SoftwareCentral · Updating SoftwareCentral

Common problems after an update

Some problems show up in the Log after an update, mostly errors about the Windows registry. Restart the servers first; if the problem keeps coming back, turn on one Group Policy setting.

Registry errors in the Log Restart the servers Group Policy setting

1 Errors in the log

After an update, the Log in SoftwareCentral can fill up with errors such as Unknown error and Illegal operation attempted on a registry key that has been marked for deletion.

Log entries in SoftwareCentral with failed Active Directory and LDAP lookups. The messages include Unknown error (0x80005000) and Illegal operation attempted on a registry key that has been marked for deletion.
Entries of this kind in the Log. This picture is from an earlier version of SoftwareCentral, and the account name in it is masked. It shows the messages to look for; the layout of the Log may differ now.

2 Step 1: Restart the servers

If it is the first time you experience this problem, restart the servers first.

Restart the server hosting the SoftwareCentral web site and the server where the SMS Provider is located. This can resolve the problem the first time it happens.

When SoftwareCentral writes the registry message to the Log, it adds the sentence This issue can be resolved by restarting the server. so the advice is shown next to the error.

3 Step 2: Turn on the Group Policy setting

If the problem keeps coming back after the restart, enable a Group Policy setting on the server where SoftwareCentral is installed.

Enable Do not forcefully unload the user registry at user logoff from the Local Group Policy Editor on the server where SoftwareCentral is installed.

Local Group Policy Editor with the User Profiles folder open. The policy Do not forcefully unload the user registry at user logoff is selected in the list.
The Local Group Policy Editor (Windows, an external screen). Select Do not forcefully unload the user registry at user logoff in the User Profiles folder. The picture shows the policy and Microsoft's description of it.
WherePath in the Local Group Policy Editor
PolicyComputer Configuration › Administrative Templates › System › User Profiles › Do not forcefully unload the user registry at user logoff
Turn it on only if you need it Microsoft's description of this policy, shown in the picture, says it should only be used where application compatibility problems are caused by this Windows behaviour. It is not recommended to enable it by default, because users may then not get an updated version of their roaming user profile.

4 Best practice

  • Restart first, change the policy second. The restart is the first thing to try. Only enable the Group Policy setting if the errors come back.
  • Change the policy on the server, not on every computer. The setting belongs on the server where SoftwareCentral is installed.
  • Check the Log after each update. If the registry message appears again, start again with the restart.
  • Turn the policy off again when it is not needed. Microsoft advises against leaving it on by default, because it can stop users from getting an updated roaming profile.

5 Troubleshooting

SymptomCauseWhat to do
“Illegal operation attempted on a registry key that has been marked for deletion” in the Log Windows unloaded a user's registry while SoftwareCentral still had it open. The Group Policy setting above controls this Windows behaviour. Restart the server hosting the SoftwareCentral web site and the SMS Provider server. If it comes back, turn on the policy in step 2.
“Unknown error” in the Log Usually logged together with the registry message above. Follow steps 1 and 2 above.
“This issue can be resolved by restarting the server hosting SoftwareCentral.” on the page that says you have no access SoftwareCentral found the registry or “Unknown error” message in the last 10 entries of the Log when you tried to sign in, and no role was available to you. Restart the server hosting SoftwareCentral, then open SoftwareCentral again.