SnapSection Won't Load

Discussions concerning general integration topics.

Moderator: Phil Barton

Post Reply
roteague
Posts: 292
Joined: Thu Sep 25, 2008 4:49 pm
Location: Honolulu, Hawaii

SnapSection Won't Load

Post by roteague »

Ok, I created a new package, with a new SnapSection. I added the snap section to the SoftPro.snapsection file, but keep getting the following error:

Code: Select all

Event Type:	Error
Event Source:	Select
Event Category:	None
Event ID:	0
Date:		5/29/2009
Time:		11:57:53 AM
User:		
Computer:	
Description:
Error: Could not create SnapSection called "Timeline"
Stack Trace: 
   at SoftPro.UI.Base.SnapSectionContainerBase.AddSnapSections(ScreenNode[] children, IBusinessObject context)
   at SoftPro.UI.Base.ScreenContainer.OpenScreenEx(String screenName, IBusinessObject context, ScreenDefinition screenDef)
   at SoftPro.UI.Base.ScreenContainer.OpenScreen(ExplorerBarItem screenEBItem, IBusinessObject context)
   at SoftPro.OrderTracking.Controls.OrderEditor.OpenScreenEx(ExplorerBarItem screenEBItem, IBusinessObject iContext, Boolean openInNewTab, OpenScreenType type)
XML Log: 
<ILExceptionData>
  <Point module="SoftPro.UI.Base.dll" classFull="SoftPro.UI.Base.SnapSectionContainerBase" methodName="AddSnapSections" methodSignature="SoftPro.UI.Base.ISnapSection[] AddSnapSections(SoftPro.UI.Base.ScreenNode[], SoftPro.BusinessObjects.Base.IBusinessObject)" methodToken="0x60000ed" ILOffset="99" />
  <Point module="SoftPro.UI.Base.dll" classFull="SoftPro.UI.Base.ScreenContainer" methodName="OpenScreenEx" methodSignature="SoftPro.UI.Base.ISnapSectionScreen OpenScreenEx(System.String, SoftPro.BusinessObjects.Base.IBusinessObject, SoftPro.UI.Base.ScreenDefinition)" methodToken="0x60001a9" ILOffset="56" />
  <Point module="SoftPro.UI.Base.dll" classFull="SoftPro.UI.Base.ScreenContainer" methodName="OpenScreen" methodSignature="SoftPro.UI.Base.ISnapSectionScreen OpenScreen(Janus.Windows.ExplorerBar.ExplorerBarItem, SoftPro.BusinessObjects.Base.IBusinessObject)" methodToken="0x60001aa" ILOffset="0" />
  <Point module="SoftPro.OrderTracking.Controls.dll" classFull="SoftPro.OrderTracking.Controls.OrderEditor" methodName="OpenScreenEx" methodSignature="SoftPro.UI.Base.ISnapSectionScreen OpenScreenEx(Janus.Windows.ExplorerBar.ExplorerBarItem, SoftPro.BusinessObjects.Base.IBusinessObject, Boolean, OpenScreenType)" methodToken="0x60000e8" ILOffset="377" />
</ILExceptionData>


Call Stack: 
   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 System.Diagnostics.Trace.TraceError(String message)
   at SoftPro.Select.Managers.ShellManager.SoftPro.Select.Shell.IShell.HandleError(String message, Boolean log, Exception ex)
   at SoftPro.OrderTracking.Controls.OrderEditor.OpenScreenEx(ExplorerBarItem screenEBItem, IBusinessObject iContext, Boolean openInNewTab, OpenScreenType type)
   at SoftPro.OrderTracking.Controls.OrderEditor.OpenCustomScreen(ExplorerBarItem ebItem, Boolean openInNewTab)
   at SoftPro.OrderTracking.Controls.OrderEditor.OpenScreen(ExplorerBarItem b, Boolean openInNewTab)
   at SoftPro.OrderTracking.Controls.OrderEditor.NavigateScreens_Impl(ExplorerBarItem explorerBarItem, Boolean closeCurrentScreen)
   at SoftPro.OrderTracking.Controls.OrderEditor._explorerBar_ItemClick(Object sender, ItemEventArgs e)
   at Janus.Windows.ExplorerBar.ExplorerBar.OnItemClick(ItemEventArgs e)
   at Janus.Windows.ExplorerBar.ExplorerBar.i(ExplorerBarItem )
   at Janus.Windows.ExplorerBar.ExplorerBarItem.InvokeOnClick()
   at Janus.Windows.ExplorerBar.ExplorerBar.OnMouseUp(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at SoftPro.Common.Controls.CommonExplorerBar.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(Int32 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 System.Windows.Forms.Application.Run(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, Boolean fExecuteInContext)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
   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.Threading.Thread.InternalCrossContextCallback(Context ctx, 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, Dictionary`2 args, String freeArg)
   at SoftPro.Select.Program.Main(String[] args)

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
We need something much better than "Failed to open screen", we also need better documentation on the process.
Robert
roteague
Posts: 292
Joined: Thu Sep 25, 2008 4:49 pm
Location: Honolulu, Hawaii

Re: SnapSection Won't Load

Post by roteague »

Ok, I got it. I forgot to add [assembly: SnapSectionAssembly()] to AssemblyInfo.cs. The documentation on this is so sparse (hint, hint!!) in the SDK help file, that I keep having to search through the SoftPro Developer Forum for answers.
Robert
Post Reply