Exception when calling the spread constructor

Posted by: silk on 8 September 2017, 12:30 pm EST

  • Posted 8 September 2017, 12:30 pm EST

    I've been trying to figure this error out but I guess I need some help... The following error occur some times when a user load a windows form with a spread in it. This form is used on a daily basis by many users but the error only occur at very rare occasions.

    System.TypeLoadException: Could not load type FarPoint.Win.Spread.Model.ISheetStyleModel from assembly FarPoint.Win.Spread, Version=2.5.1009.2002, Culture=neutral, PublicKeyToken=327c3516b1b18457.
    at FarPoint.Win.Spread.SpreadView..ctor(FpSpread owner)
    at FarPoint.Win.Spread.FpSpread..ctor()
    at ListigII.frmPlanningManager.InitializeComponent() in C:\Code\VBNET\ListigII\SchemaBemanning\Forms\frmPlanningManager.vb:line 152
    at ListigII.frmPlanningManager..ctor() in C:\Code\VBNET\ListigII\SchemaBemanning\Forms\frmPlanningManager.vb:line 14
    at ListigII.frmPlanningManagerOpen.openManager() in C:\Code\VBNET\ListigII\SchemaBemanning\Forms\frmPlanningManagerOpen.vb:line 434
    at ListigII.frmPlanningManagerOpen.btnOpen_Click(Object sender, EventArgs e) in C:\Code\VBNET\ListigII\SchemaBemanning\Forms\frmPlanningManagerOpen.vb:line 467
    at System.EventHandler.Invoke(Object sender, EventArgs e)
    at System.Windows.Forms.Control.OnClick(EventArgs e)
    at Infragistics.Win.Misc.UltraButtonBase.OnClick(EventArgs e)
    at Infragistics.Win.Misc.UltraButton.OnMouseUp(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.ControlNativeWindow.OnMessage(Message& m)
    at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    As you can see from the error message the error trigger in the InitializeComponent at the following line:

    Me.spDay = New FarPoint.Win.Spread.FpSpread

    I have absolutely no clue of what's going on and I need your help! :)



  • Replied 8 September 2017, 12:30 pm EST


    I have not seen this problem before. Is this something where it will work one time on one computer and then not the next? Or is this something that works all the time on one computer and none of the times on another computer? Do you see anything that is done differently when this exception happens?

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels