StrataFrame Forum

Strataframe Samples - some giving errors

http://forum.strataframe.net/Topic16977.aspx

By Ger Cannoll - 6/10/2008

I am trying to run up some of the Samples that comw with Strataframe. One or two work ok but most of them throw up errors. e.g. the CRM application, when I click on the Order Entry tab, following error occurs

TargetInvocationException
  Exception has been thrown by the target of an invocation.
MissingMethodException
  Method not found: 'Void MicroFour.StrataFrame.UI.Windows.Forms.ChildFormDialog.set_ParentForm(MicroFour.StrataFrame.UI.Windows.Forms.BaseForm)'.

Source     : mscorlib

Stack Trace:
   at SampleCRMApplication.CustomerMaintenance.InitializeComponent()
   at SampleCRMApplication.CustomerMaintenance..ctor()
   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)
   at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at System.Activator.CreateInstance(Type type)
   at SampleCRMApplication.CRMMain.LaunchForm(Type FormType)
   at SampleCRMApplication.CRMMain.cmdCustomers_Click(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   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 System.Windows.Forms.ToolStrip.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.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Do I need to do anthing special to get the samples to work ?

By Trent L. Taylor - 6/10/2008

Well, you probably have the 1.6.6 beta loaded and are running the demo EXEs instead of bringing up the demo in source code and recompiling, this could cause this error.  Try that first and let me know if the problem persists.