I am having trouble upgrading an old dot net framework Windows forms app from Spread.NET V16 to V19. My process is to: (1) close all tabs in Visual Studio, (2) open the project properties and remove all farpoint and grapecity references, (3) add a new form to the project and add a Spread.NET V19 to the form. This adds all the required V19 references to the project.

When I try to open one of the forms that has a Spread.NET it shows an error. When I ignore the error and continue, it shows me the form, and all of the Spread.NET controls appear as empty rectangles.

I have tried deleting all the spread.net controls on the form, and adding new spread.net controls in the same locations.

When I try to run the program in Visual Studio it crashed in the automatically generated InitializeComponent code on the GetSheets(0) command

Me.BookDetails2 = New FarPoint.Win.Spread.FpSpread(FarPoint.Win.Spread.LegacyBehaviors.None, CType(resources.GetObject("PanelDetailsBottom.Controls"), Object))

Me.BookDetails2_Sheet1 = Me.BookDetails2.GetSheet(0)

Here is the error:


System.Exception
  HResult=0x80131500
  Message=The index 0 is not between 0 and 0.
  Source=FarPoint.Win.Spread
  StackTrace:
   at FarPoint.Win.Spread.SheetViewCollection.get_Item(Int32 index)
   at FarPoint.Win.Spread.FpSpread.GetSheet(Int32 index)
   at FireTOSS_Main.fProjectMain.InitializeComponent() in C:\Users\david\Documents\Code2026\FireTOSS_Main\fProjectMain.designer.vb:line 123
   at FireTOSS_Main.fProjectMain..ctor() in C:\Users\david\Documents\Code2026\FireTOSS_Main\fProjectMain.vb:line 85
