How did this happen: In a project in 2021.9 with a 3152 I did a change of controller to a 2152. That went ok. But after going to the HMI naviagition PLCnext engineer crached and reported this: PLCnext Engineer, Version 2021.9 (Build 4.12.200.0) Unexpected Exception ====================================================================== Exception has been thrown by the target of an invocation. Exception chain: ---------------------------------------------------------------------- TargetInvocationException TargetInvocationException ArgumentException ====================================================================== Details ---------------------------------------------------------------------- TargetInvocationException ============================== Message: ------------------------------ Exception has been thrown by the target of an invocation. Stack trace: ------------------------------ at System.RuntimeMethodHandle.InvokeMethod(Object target, Object arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object parameters, Object arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture) at Ade.Graphic.Builder.GraphicBuilder.moibn() at Ade.Graphic.Builder.GraphicBuilder.FinalizeBuild() at Ade.Graphic.Builder.GraphicBuilder.set_Finished(Boolean value) at Ade.Graphic.Builder.GraphicEditorInformationServiceBuilder.Build() at Ade.Hmi.Navigation.NavigationEditorComponent.CreateInformationService(IAdeServiceProvider localServiceProvider, Object view, IDocument document, IGraphicDataAccess graphicModel) at Ade.Graphic.GraphicEditorComponent.jtfjc(IEditorFrame t, Object t, Object t) at Ade.Graphic.GraphicEditorComponent.FinalizeEditorCreation(IEditorFrame editorFrame, Object view, Object model) at Ade.UIFramework.WpfUIFramework.jbppr(EditorFrameDescription afx, lenzp afx, lenyz afx) at _b18eb3d8e453473aaf5ea65263a74033.lenzp.OpenEditorSet(EditorFrameSetDescription editorFrameSetDescription, EditorFrameGroupOpenResults& editorFrameGroupOpenEditorFrameDescription) at Ade.Internal.UIFramework.EditorFrameSetDescriptionViewModel.ExecuteToggleExpansion(Object obj) at Ade.WpfCommon.DelegateCommandBase.udlid.wcjuu(Object mb) at Ade.WpfCommon.DelegateCommandBase.udlif.MoveNext() -– End of stack trace from previous location where exception was thrown — at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Ade.WpfCommon.DelegateCommandBase.udlie.MoveNext() -– End of stack trace from previous location where exception was thrown — at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.DispatcherOperation.InvokeImpl() at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj) 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 MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext 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 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, 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 MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) at System.Windows.Application.RunDispatcher(Object ignore) at System.Windows.Application.RunInternal(Window window) at Ade.Application.ApplicationStarter.Run() at (String ) at PCWorxNext.Startup.Main(String args) ---------------------------------------------------------------------- TargetInvocationException ============================== Message: ------------------------------ Exception has been thrown by the target of an invocation. Stack trace: ------------------------------ at System.RuntimeMethodHandle.InvokeMethod(Object target, Object arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object parameters, Object arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture) at Ade.Graphic.Builder.GraphicBuilder.qfejf1.ncaut(MethodInfo is) at System.Linq.Enumerable.WhereSelectListIterator2.MoveNext() at System.Linq.Buffer1..ctor(IEnumerable1 source) at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source) at Ade.Graphic.Builder.GraphicBuilder.qfejf1.ncaut() at Ade.Graphic.Builder.GraphicBuilder.moibn[c](Boolean ii, Boolean ii, Boolean ii) at Ade.Graphic.Builder.GraphicEditorInformationServiceBuilder.rhree() at Ade.Graphic.Builder.GraphicBuilder.moibn[c](Boolean ii, Boolean ii, Boolean ii) at Ade.Graphic.Builder.GraphicEditorInformationServiceBuilder.rhree() at Ade.Graphic.Builder.GraphicBuilder.moibn[c](Boolean ii, Boolean ii, Boolean ii) at Ade.Graphic.Builder.GraphicBuilder.moibm[c](Boolean ih, Boolean ih, Boolean ih) at Ade.Graphic.Builder.GraphicBuilder.GetT ---------------------------------------------------------------------- ArgumentException ============================== Message: ------------------------------ No creator found for type:Ade.Documents.IDocument Stack trace: ------------------------------ at Ade.Graphic.Builder.GraphicBuilder.moibn[c](Boolean ii, Boolean ii, Boolean ii) at Ade.Graphic.Builder.GraphicBuilder.moibm[c](Boolean ih, Boolean ih, Boolean ih) at Ade.Graphic.Builder.GraphicBuilder.GetT
I have branched this issue from the thread where it was posted: https://www.plcnext-community.net/en/discussions-2-offcanvas/plcnext-engineer-2021-9-missing-tap-navigation-under-hmi-web-server-application.html … since this may be a different question.
Additional information from Wilco: The controller replacement goes OK, but PLCnext Engineer crashes when navigating to the HMI page.
I have reproduced this crash and I have sent the project to the developers for investigation. (ref: #223157)