FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important
information on the platform change.
08-30-2023 04:32 AM
A customer is using our ctrlX Core X2 is used as PLC for this project. It worked fine before but after a system fatal error(blue screen), the PLC Engineerring software cannot be started. He tried to repair/Reboot/Re-install the engineering software. Nothing worked so far. No matter connect to device or not, the PLC Engineering all can't working correctly, press "Continue" does not work.
PLC Exception ERROR:
Error Message in text:
************** Exception Text **************
_3S.CoDeSys.Core.Options.OptionStorageLoadException: The option file 'C:\ProgramData\ctrlX PLC Engineering\Options\LiveOptions\LIVE_UserRoot_{156D8342-98FE-44A1-B091-FC25C45EAADE}.opt' could not be loaded. (Reason: Root element is missing.
Stacktrace:
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at _3S.CoDeSys.XmlArchive.ObjectReader.Read(XmlReader xmlReader, IArchivable targetInstance, Byte[] targetInstanceNesting, Boolean bThrowIfTypeIsMissing, String& stName, Boolean& bEnd)
at _3S.CoDeSys.XmlArchive.AbstractXmlArchiveReader.Load()
at _3S.CoDeSys.OptionStorage.OptionStorage.Load(Stream stream, IOptionKey parentForShared, Boolean isLiveKey))
at _3S.CoDeSys.OptionStorage.OptionStorage.Load(Stream stream, IOptionKey parentForShared, Boolean isLiveKey)
at _3S.CoDeSys.OptionStorage.OptionStorage.TryOpenLiveSubKey(IOptionKey parentKey, String stSubKey, Int32 numRetry)
at _3S.CoDeSys.OptionStorage.OptionKey.OpenSubKey(String stSubKey)
at Rexroth.Studio.Common.Commands.plugin.PickList..ctor(String optionSubKey, String liveOptionSubKey)
at Rexroth.Studio.Common.Commands.plugin.OptionsHelper.get_PickList()
at Rexroth.Studio.Common.Commands.plugin.StartPageView.UpdatePickListItems(Boolean sizeChanged)
at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height)
at System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
at System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.SetBounds(Rectangle bounds, BoundsSpecified specified)
at System.Windows.Forms.Layout.DefaultLayout.ApplyCachedBounds(IArrangedElement container)
at System.Windows.Forms.Layout.DefaultLayout.xLayout(IArrangedElement container, Boolean measureOnly, Size& preferredSize)
at System.Windows.Forms.Layout.DefaultLayout.LayoutCore(IArrangedElement container, LayoutEventArgs args)
at System.Windows.Forms.Layout.LayoutEngine.Layout(Object container, LayoutEventArgs layoutEventArgs)
at System.Windows.Forms.Control.OnLayout(LayoutEventArgs levent)
at System.Windows.Forms.Control.PerformLayout(LayoutEventArgs args)
at System.Windows.Forms.Control.OnResize(EventArgs e)
at System.Windows.Forms.UserControl.OnResize(EventArgs e)
at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height)
at System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
at System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.SetBounds(Rectangle bounds, BoundsSpecified specified)
at System.Windows.Forms.Layout.DefaultLayout.xLayoutDockedControl(IArrangedElement element, Rectangle newElementBounds, Boolean measureOnly, Size& preferredSize, Rectangle& remainingBounds)
at System.Windows.Forms.Layout.DefaultLayout.LayoutDockedControls(IArrangedElement container, Boolean measureOnly)
at System.Windows.Forms.Layout.DefaultLayout.xLayout(IArrangedElement container, Boolean measureOnly, Size& preferredSize)
at System.Windows.Forms.Layout.DefaultLayout.LayoutCore(IArrangedElement container, LayoutEventArgs args)
at System.Windows.Forms.Layout.LayoutEngine.Layout(Object container, LayoutEventArgs layoutEventArgs)
at System.Windows.Forms.Control.OnLayout(LayoutEventArgs levent)
at System.Windows.Forms.Control.PerformLayout(LayoutEventArgs args)
at System.Windows.Forms.Control.PerformLayout()
at System.Windows.Forms.Control.ResumeLayout(Boolean performLayout)
at TD.SandDock.DockControl..ctor(SandDockManager manager, Control control, String text)
at TD.SandDock.DockableWindow..ctor(SandDockManager manager, Control control, String text)
at _3S.CoDeSys.Frame.TabbedViewManager.OpenView(Guid factoryGuid, String stInstanceData, Boolean expandTemporarily)
at _3S.CoDeSys.Frame.MainForm.OpenView(Guid factoryGuid, String stInstanceData)
at Rexroth.Studio.Common.Commands.plugin.ViewStartPageCommand.ExecuteBatch(String[] arguments, ICommand originalCommand)
at Rexroth.Studio.Common.Commands.plugin.ViewStartPageCommand.OnNewEngineUIReady()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at _3S.CoDeSys.Utilities.WeakMulticastDelegate.Invoke(Object[] args)
at _3S.CoDeSys.Engine.Engine.ReportUIReady()
at _3S.CoDeSys.Frame.MainForm.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at _3S.CoDeSys.Frame.MainForm.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Solved! Go to Solution.
08-30-2023 09:36 AM
Hello Brant,
there is an error in an option file. Please try to delete the folder 'C:\ProgramData\ctrlX PLC Engineering\Options\LiveOptions' and start PLC Engineering again.
If this does not fix the problem delete the complete 'C:\ProgramData\ctrlX PLC Engineering\Options' folder and try again.
Sorry for the inconvenience.
Regards,
Oliver
09-11-2023 08:10 AM
Hi,
It do works and thanks for your help~