On Application Launch : Initialization of 'Telerik.Windows.Controls.RadProgressBar' threw an exception

2 posts, 0 answers
  1. Piyush
    Piyush avatar
    4 posts
    Member since:
    Nov 2012

    Posted 02 Jun Link to this post

    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\\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.


    Could you please let us know, what could cause this issue, and how can we prevent this.




  2. Milena
    Milena avatar
    193 posts

    Posted 06 Jun Link to this post

    Hi Piyush,

    I am sorry to hear about the issues you are experiencing. 

    I suppose that the issue was caused not by RadProgresBar control, but by the reboot of the machine (based on the information from the StackTrace). You can try to clean and rebuild the project or delete manually the bin and obj folders then rebuild the project  - this will ensure that all unnecessary files will be deleted. It is also possible that your latest changes before reboot are not saved (e.g. in config file). Therefore, you can check for unsaved changes, edit files if necessary and rebuild the project. 

    I hope this information is helpful.

    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. DevCraft R3 2016 release webinar banner
Back to Top