search cancel

ITMS 7.5 Sp1 HF5 - Unexpected exception during ConfigureDatabaseAndProducts. Root element is missing.

book

Article ID: 162650

calendar_today

Updated On:

Products

IT Management Suite

Issue/Introduction

Error while trying to switch the Symantec Management Platform database from one instance to another.
Unexpected exception during ConfigureDatabaseAndProducts. Root element is missing.

"Unexpected exception during ConfigureDatabaseAndProducts.
Root element is missing.
   [System.Xml.XmlException @ System.Xml]
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
   at System.Xml.XmlDocument.Load(XmlReader reader)
   at System.Xml.XmlDocument.Load(String filename)
   at Altiris.NS.Installation.ProductConfigurationWorker.ConfigureDatabaseAndProducts()

Exception logged from:
   at Altiris.Diagnostics.Logging.EventLog.ReportException(Int32 severity, String strMessage, String category, Exception exception, String footer)
   at Altiris.NS.Logging.EventLog.ReportException(Int32 severity, String strMessage, String category, Exception exception)
   at Altiris.NS.Installation.ProductConfigurationWorker.ConfigureDatabaseAndProducts()
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
","Altiris.NS.Installation.ProductConfigurationWorker.ConfigureDatabaseAndProducts","AeXSVC.exe"

 

Cause

Corrupted product Config file.

Resolution

Run the attached C# script to find the corrupted Config file on the Symantec Management Platform server. Example:
"?:\Program Files\Altiris\Notification Server\Bin\NScript.exe" "?:\ConfigFileLoadTest.cs"
Change the path as needed.

Attachments

ConfigFileLoadTest.7z get_app