Hi Team,
Doing hard reboot of the machine (power off by holding the power button and then pwer on again) where our App is running.
Launching the app again after hard reboot is failing with following exception:
Initialization of 'Telerik.Windows.Controls.RadProgressBar' threw an exception.
Exception Source: PresentationFramework
Exception Message: Initialization of 'Telerik.Windows.Controls.RadProgressBar' threw an exception.
Exception StackTrace:
at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
at DomainManagerGUI.DomainGUI..ctor()
at DomainManagerGUI.App.DoLogin(Boolean bIsRedundancyRelogin, Boolean bEvent)
Inner Exception:
----->>>>>
Exception Source: System.Configuration
Exception Message: Configuration system failed to initialize
Exception StackTrace:
at System.Configuration.ConfigurationManager.PrepareConfigSystem()
at System.Configuration.ConfigurationManager.get_AppSettings()
at Telerik.Windows.Controls.ThemeResourceKey.get_ApplicationTheme()
at Telerik.Windows.Controls.StyleManager.SetDefaultStyleKey(Control control, Type controlType)
at MS.Internal.Xaml.Runtime.ClrObjectRuntime.InitializationGuard(XamlType xamlType, Object obj, Boolean begin)
Inner Exception:
----->>>>>
Exception Source: System.Configuration
Exception Message: Root element is missing (C:\Users\Administrator\AppData\Local\Harmonic,_Inc.\Harmonic.GUI.DomainManage_StrongName_ixapsog5lcwreuscruvj3lgrgpth3ywq\1.0.0.0\user.config)
Exception StackTrace:
at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)
at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)
at System.Configuration.ClientConfigurationSystem.OnConfigRemoved(Object sender, InternalConfigEventArgs e)
Inner Exception:
----->>>>>
Exception Source: System.Xml
Exception Message: Root element is missing.
Exception StackTrace:
at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Configuration.XmlUtil..ctor(Stream stream, String name, Boolean readToFirstElement, ConfigurationSchemaErrors schemaErrors)
at System.Configuration.BaseConfigurationRecord.InitConfigFromFile()
We replaced the config file and it worked.
But,
Could you please let us know, what could cause this issue, and how can we prevent this.
Thanks,
Piyush