"Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException" error

From the 12 Hive’s BIN directory, run this command:

psconfig -cmd upgrade -inplace b2b -wait -force