Error message during startup of client

The error message "An error occured when initializing the Switch King client. Switch King will be closed." can sometimes occur when the client is started. This article contains information about how to resolve the issue.

The reason initialization fails is most of the times that the file ClientSettings.xml has been corrupted. The problem has been reported when the power management function has been used. It is unclear why this error occurs and it does not occur consistently.

Resolution

Locate the files ClientSettings.xml and ClientSettings.xml.bak.

For Windows 7 you will typically find them here:

C:\ProgramData\SwitchKing

(this folder may be hidden in Windows 7 and you may have to change to show hidden folders to find it)

For Windows XP you will typically find them here:

C:\Documents and Settings\All Users\Application Data\SwitchKing

Rename the files (or delete them) and then start the client.

The client will create the files again. You will have to configure settings that you have done for the client (like path to the server, language, etc) again. Note that most of the settings (like schedules) are saved in the server and are not affected by removing the mentioned files.