cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

Exception happened when open PLC Engineering

Exception happened when open PLC Engineering

Brant
Established Member

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:

Brant_0-1693362569045.png

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)

 

 

2 REPLIES 2

FooFighter
Long-established Member

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

Brant
Established Member

Hi,

It do works and thanks for your help~

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist