Invalid Assembly marked for discovery error
Posted: Wed Jun 13, 2018 2:57 pm
We get the following error the first time we try to open an order in the UI through the API using the Shell's OpenStandardEditor method, passing in an order Uri. After that, opening an order in this way doesn't generate the error. If you restart Select, the same scenario happens -- errors the first time you open the order, but never again.
Any ideas what this is? It looks like a custom message, not a MS one.
Any ideas what this is? It looks like a custom message, not a MS one.
Invalid Assembly marked for discovery:
[[12:46:06.002]] [0x00000001] MessageBox: Instruction=Log Call Stack, Content= at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at System.Diagnostics.TraceEventCache.get_Callstack()
at SoftPro.Select.LogTraceListener.OnLog(TraceEventCache eventCache, String message, TraceEventType eventType)
at SoftPro.Select.LogTraceListener.TraceEvent(TraceEventCache eventCache, String source, TraceEventType eventType, Int32 id, String message)
at System.Diagnostics.TraceInternal.TraceEvent(TraceEventType eventType, Int32 id, String format, Object[] args)
at SoftPro.OrderTracking.Controls.SnapSectionFactory.SnapSectionAssemblyLoader.Discover(String path, String searchPattern)
at SoftPro.OrderTracking.Controls.SnapSectionFactory.SnapSectionAssemblyLoader.LoadSnapSectionsFromAssemblies()
at SoftPro.OrderTracking.Controls.SnapSectionFactory.SnapSectionAssemblyLoader..ctor()
at SoftPro.OrderTracking.Controls.SnapSectionFactory.SnapSectionAssemblyLoader.get_Instance()
at SoftPro.OrderTracking.Controls.SnapSectionFactory.GetTypeForSnapSection(String controlName)
at SoftPro.OrderTracking.Controls.SnapSectionFactory.CreateSnapSection(String controlName)
at SoftPro.OrderTracking.Controls.SnapSectionContainer.MakeSnapSection(ScreenNode child, ISnapSection& section)
at SoftPro.OrderTracking.Controls.SnapSectionContainer.AddSections(IEnumerable`1 nodes)
at SoftPro.OrderTracking.Controls.Screen.OnCreateRoot(ScreenDefinition definition)
at SoftPro.OrderTracking.Controls.Screen..ctor(IServiceProvider site, ScreenDefinition definition, BindingSource dataSource)
at SoftPro.OrderTracking.Controls.Renderer.CreateScreen(IScreenLayout screenLayout, String screenName, BindingSource dataSource, Dictionary`2 args)
at SoftPro.OrderTracking.Controls.OrderCanvas.ChangeScreen(String screenName, BindingSource dataSource, Dictionary`2 args)
at SoftPro.OrderTracking.Controls.OrderCanvas.InvokeScreenChanged(String screenName, BindingSource dataSource, Dictionary`2 args, String parentExpandoText)
at SoftPro.OrderTracking.Controls.OrderCanvas.InvokeScreenChanged(String screenName, BindingSource dataSource, String parentExpandoText)
at SoftPro.Select.OrderTracking.Orders.OrderEditorPane.SoftPro.Select.Shell.ISupportBookmark.Navigate(String bookmark)
at SoftPro.Select.Controls.DocumentWindow.SoftPro.Select.Shell.ISupportBookmark.Navigate(String bookmark)
at SoftPro.Select.Managers.ShellManager.SoftPro.Select.Shell.IShell.OpenDocumentWindow(Uri moniker, String view, Object existingData, Boolean openAsNew, Boolean shellExecute)
at SoftPro.Select.Managers.ShellManager.SoftPro.Select.Shell.IShell.OpenStandardEditor(Uri moniker)
at WorkBenchLibrary.Utilities.SoftProCommands.OpenOrder(OrderIdentifier orderId, Boolean checkIfCanceled) in C:\TFS\PGPTitle\SoftPro Shell Packages\EditorFactory\WorkBench\Utilities\SoftProCommands.cs:line 55
at WorkBenchLibrary.WorkBench.orders_radGridView_CellDoubleClick(Object sender, GridViewCellEventArgs e) in C:\TFS\PGPTitle\SoftPro Shell Packages\EditorFactory\WorkBench\WorkBench.cs:line 750
at Telerik.WinControls.UI.RadGridView.OnCellDoubleClick(Object sender, GridViewCellEventArgs e)
at Telerik.WinControls.UI.RadGridView.OnMouseDoubleClick(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at Telerik.WinControls.RadControl.WndProc(Message& m)
at Telerik.WinControls.UI.RadGridView.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(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 SoftPro.Select.Runtime.OnRun()
at SoftPro.Select.Runtime.Start()
at SoftPro.Select.Automation.EnvICE.Start()
at System.Runtime.Remoting.Messaging.Message.Dispatch(Object target)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
at System.Runtime.Remoting.Messaging.ServerObjectTerminatorSink.SyncProcessMessage(IMessage reqMsg)
at SoftPro.Select.Shell.SynchronizationContextAspect.SyncProcessMessage(IMessage msg)
at System.Runtime.Remoting.Lifetime.LeaseSink.SyncProcessMessage(IMessage msg)
at System.Runtime.Remoting.Messaging.ServerContextTerminatorSink.SyncProcessMessage(IMessage reqMsg)
at System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessageCallback(Object[] args)
at System.Threading.Thread.CompleteCrossContextCallback(InternalCrossContextDelegate ftnToCall, Object[] args)
at System.Threading.Thread.InternalCrossContextCallback(Context ctx, IntPtr ctxID, Int32 appDomainID, InternalCrossContextDelegate ftnToCall, Object[] args)
at System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessage(IMessage reqMsg)
at System.Runtime.Remoting.Proxies.RemotingProxy.CallProcessMessage(IMessageSink ms, IMessage reqMsg, ArrayWithSize proxySinks, Thread currentThread, Context currentContext, Boolean bSkippingContextChain)
at System.Runtime.Remoting.Proxies.RemotingProxy.InternalInvoke(IMethodCallMessage reqMcmMsg, Boolean useDispatchMessage, Int32 callType)
at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(IMessage reqMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at SoftPro.Select.Automation.EnvICE.Start()
at SoftPro.Select.Automation.EnvICE.Run(String rootSuffix, Boolean noSplash, Boolean setupMode, Boolean log, Boolean embedding, Boolean allowMultipleInstances, Boolean detectLeaks, Dictionary`2 args, String freeArg)
at SoftPro.Select.Program.Main(String[] args), Result=OK