Configuration system failed to initialize

Have one user that had this pop up today. No one else is affected. Any ideas what is causing this for this one user? I checked the user account and it is good to go.

Application Error

Exception caught in: System.Configuration

Error Detail

Message: Configuration system failed to initialize
Inner Exception Message: Root element is missing. (C:\Users\aowens\AppData\Local\Epicor\Epicor.exe_StrongName_kcicbw2ezbsx1kjcvvn1lpqzo5tzwlqi\3.1.400.0\user.config)
Program: System.Configuration.dll
Method: OnConfigRemoved

Client Stack Trace

at System.Configuration.ClientConfigurationSystem.OnConfigRemoved(Object sender, InternalConfigEventArgs e)
at System.Configuration.Internal.InternalConfigRoot.OnConfigRemoved(InternalConfigEventArgs e)
at System.Configuration.Internal.InternalConfigRoot.RemoveConfigImpl(String configPath, BaseConfigurationRecord configRecord)
at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionName)
at System.Configuration.ConfigurationManager.GetSection(String sectionName)
at System.Configuration.ClientSettingsStore.ReadSettings(String sectionName, Boolean isUserScoped)
at System.Configuration.LocalFileSettingsProvider.GetPropertyValues(SettingsContext context, SettingsPropertyCollection properties)
at System.Configuration.SettingsBase.GetPropertiesFromProvider(SettingsProvider provider)
at System.Configuration.SettingsBase.GetPropertyValueByName(String propertyName)
at System.Configuration.SettingsBase.get_Item(String propertyName)
at System.Configuration.ApplicationSettingsBase.GetPropertyValue(String propertyName)
at System.Configuration.ApplicationSettingsBase.get_Item(String propertyName)
at IceShell.Properties.Settings.get_Color1()
at IceShell.SessionManager.get_LastColorPalette()
at IceShell.Shell.ResetColors()
at IceShell.Shell.UserControl_Loaded(Object sender, RoutedEventArgs e)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
at MS.Internal.LoadedOrUnloadedOperation.DoWork()
at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at Ice.Lib.UI.ApplicationWatcher.StartApplication(ApplicationContext context)
at Ice.Lib.UI.App.IceShellLaunch.<>c__DisplayClass2.b__1()
at Ice.Lib.UI.App.IceShellLaunch.ShowMenuForm()
at Ice.Lib.UI.App.LaunchBase.ShowDialog(String[] args)

Inner Exception

Root element is missing. (C:\Users\aowens\AppData\Local\Epicor\Epicor.exe_StrongName_kcicbw2ezbsx1kjcvvn1lpqzo5tzwlqi\3.1.400.0\user.config)

Inner Stack Trace

at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)
at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)
at System.Configuration.BaseConfigurationRecord.ThrowIfInitErrors()
at System.Configuration.ClientConfigurationSystem.OnConfigRemoved(Object sender, InternalConfigEventArgs e)

Inner Exception

Root element is missing.

Inner Stack Trace

at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlTextReader.Read()
at System.Configuration.XmlUtil…ctor(Stream stream, String name, Boolean readToFirstElement, ConfigurationSchemaErrors schemaErrors)
at System.Configuration.BaseConfigurationRecord.InitConfigFromFile()

Deleted the folder in appdata/local/epicor and got this new error:

Application Error

Exception caught in: System.Xml

Error Detail

Message: Root element is missing.
Program: System.Xml.dll
Method: Throw

Client Stack Trace

at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
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 Ice.Lib.SecRights.BOSecMRUList.LoadFromDiskAndCacheSecSettings()
at Ice.Lib.SecRights.SecRightsHandler.CacheBOSecSettings(Session Session)
at IceShell.SessionManager.addSessionToCollection(Session session)
at IceShell.SessionManager.InitializeInitialSession(Session initialSession)
at IceShell.SessionManager.<.ctor>b__1(Object _, SessionChangedEventArgs e)
at Ice.Lib.UI.SessionCache.OnInitialSessionChangedEvent(SessionChangedEventArgs e)
at Ice.Lib.UI.SessionCache.SetInitialSession(Session session)
at Ice.Lib.UI.SessionCache.set_CurrentSession(Session value)
at IceShell.SplashScreenApp.logon_LogonEnded(Object sender, EventArgs e)
at IceShell.Apps.LogonDialog.StopLogon()
at IceShell.Apps.LogonDialog.handleLogon()
at IceShell.SplashScreenApp.<sbBlurAll_Completed>b__1()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()


reinstall Epicor. This resets everything and it worked fine.

3 Likes

Yes - client refresh. It may well be worth using the clear cache option in settings off of the home page, might not be such an extreme solution but might well work! :slight_smile:

Problem was I couldn’t even get to that point. That was what I was wanting to do, but when he logged in it gave me the error and wouldn’t go any father. So, I just went nuclear! LOL!! But glad I was on the same page.

1 Like

Hi All,

Got the same thing and the answer was to also delete this folder:

C:\Users[user]\AppData\Local\Epicor

Mark W.

7 Likes

I ran into this issue this morning. You have to do what @Mark_Wonsil said:

Hi All,

Got the same thing and the answer was to also delete this folder:

C:\Users[user]\AppData\Local\Epicor

Mark W

1 Like

Same thing this morning as well. The inner exception was a little different

Message: Configuration system failed to initialize
Inner Exception Message: ‘.’, hexadecimal value 0x00, is an invalid character

Turns out the local user.config file gets corrupt somehow. As said before clearing appdata fixes it.

Screenshot of the corrupted file for the record.

2 Likes

One of my colleagues got this same issue yesterday on his Epicor SI image laptop. This happened on the Administrator account.

Reinstalling the client did not help, so I went to look at the user.config on the path mentioned on the error message, and the file content was empty. The file got corrupted somehow…

My solution was to copy the text content from a valid user.config file (different user) into the one corrupted. That worked for us.

Carlos Quintanilla
PSE

2 Likes

One of my users just suddenly started running into an error similar to the one in the original post on this thread


and turns out they too had a corrupt C:\Users\username\AppData\Local\Epicor\Epicor.exe_…_…\3.1.600.0\user.config file that looked similar to the image you posted with all of the NULs and missing data.

I renamed the corrupt user.config file and re-opened Epicor and it recreated the file. I can’t believe I never knew until now that this file even existed! It doesn’t look like this file contains much except things like background colors, last menu folder opened, I guess there is a Public Key Token…but how can, what seems to be, a little settings file cause such a problem?

It wouldn’t let the user open Epicor at all. I tried deleting the cache folder under C:\ProgramData\Epicor and uninstalling and reinstalling the Epicor client and a few other things to get it working but nothing worked. The user could log into another computer with their user account but not their own. It was a mystery to me until I found this post. Thank you guys for your help in figuring out how to fix this!

I’m just wondering, can’t this file be a part of the C:\ProgramData\Epicor\server-808 cached files that can be removed with a Clear Client Cache? It just seems to me that this little hidden file, that I never knew existed, caused a lot of headache that could have been avoided if it was placed in a different location. Not sure the logistics of why it is placed in that particular location but just my thoughts…thanks again for this post and everyone’s contribution! It really helped to solve a mystery for me. :mag: :female_detective:

1 Like

We are running Epicor 10.2.600. Renaming that config file didn’t work but there is another user config file here: C:\ProgramData\Epicor[servername]\3.2.600.0\UserConfig\user[username].config. Deleting this one and restarting Epicor resolved the problem.

3 Likes