Designer fails to load

Posted by: juan.comas on 28 January 2020, 7:18 pm EST

  • Posted 28 January 2020, 7:18 pm EST

    Designer fails to load when a new FpSpread is created on a form with:

    ---------------------------
    Microsoft Visual Studio
    ---------------------------
    Failed to create component 'FpSpread'. The error message follows:

    'System.NullReferenceException: Object reference not set to an instance of an object.

    at FarPoint.Win.Spread.Design.SpreadDesigner.ShowSpreadDesigner()

    at FarPoint.Win.Spread.Design.SpreadDesigner.InitializeNewComponent(IDictionary defaultValues)

    at System.Drawing.Design.ToolboxItem.CreateComponentsCore(IDesignerHost host, IDictionary defaultValues)

    at System.Drawing.Design.ToolboxItem.CreateComponents(IDesignerHost host, IDictionary defaultValues)

    at System.Windows.Forms.Design.OleDragDropHandler.CreateTool(ToolboxItem tool, Control parent, Int32 x, Int32 y, Int32 width, Int32 height, Boolean hasLocation, Boolean hasSize, ToolboxSnapDragDropEventArgs e)'
    ---------------------------
    OK
    ---------------------------
    I am using VS Community 2019 (16.4.3)
    Could you help ?
  • Marked as Answer

    Replied 29 January 2020, 5:29 pm EST

    Hi,

    Can you try to re-install Spread and then try? Re-installation might resolve the exception.
    If the issue persists, please share the Spread version you are using along with OS version.

    Thanks,
    Ruchir
  • Replied 4 February 2020, 7:36 pm EST

    Finally I found the problem.

    I was trying to add a FpSpread in a x64 project, what seems not being currently supported.

    In a x86 project there is no problem.

    Just a comment to say that maybe you can try to create a version that will support both, x64 and x86 projects. If I am right, most current machines are x64 architecture.

    BR
    Juan
  • Replied 5 February 2020, 4:31 pm EST

    Hi Juan,

    FpSpread does support x64 architecture. I verified this at my end using VS19 and dropping the control onto a form of a Windows Forms project targeted for x64 solution platform and it works properly.

    Thanks,
    Ruchir
  • Replied 27 April 2022, 11:58 pm EST

    I installed visual studio 2022 x64. I am creating a win form .NET framework project. I get the same error and adding the spread to a form. Does this mean that I need to use the x32 version of visual studio 2022?

    -Pete
  • Replied 28 April 2022, 3:12 pm EST

    Hi Peter,

    Could you please let us know what version of Spread you are using and what version of .NET Framework you are targeting?

    Regards
    Avnish
  • Replied 28 April 2022, 10:27 pm EST

    I am using Spread version 15.1.20221 targeting a WinForms .NET Framework 4.8 App.

    I just created a brand new forms project using the start screen and tried adding the control as the very first action.

    -Pete

  • Replied 29 April 2022, 4:05 am EST

    Hi Pete,

    We do not face any such issues at our end.
    Please try uninstalling any spread installations and then try re-installing Spread 15.1 using the latest installer from https://www.grapecity.com/spreadnet/download.
    If you still face the issue, please share a GIF replicating the issue.

    Regards
    Avnish
  • Replied 2 May 2022, 5:52 am EST

    I get the same error. I am using a new Windows 11 Pro VM with 12G RAM, 4 Cores and VS2022 PRO 17.1.6 installed - with only the desktop workload feature.

    Let me know - Thanks
    -Pete
  • Replied 3 May 2022, 2:39 am EST

    OK, I have more information for you. If I launch the spread designer on its own. I can turn off auto launch spread designer on new instance of spread. If I do that I can put the spread on the winform in VS2022. However launching the designer from within visual studio results in this
  • Replied 3 May 2022, 5:54 pm EST

    Hi Peter,

    We were able to see the issue and have reported it to the development team. We will let you know as soon as we have an update.

    [Internal Tracking ID : SPNET-23851]

    Regards
    Avnish
  • Replied 9 May 2022, 4:58 am EST

    Hi,

    I get the same error:
    I'm testing spread.NET 15.0.20221.0 on Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.1.6. Microsoft .NET Framework 4.8.04161.

    The operating system is Windows 11 Pro Version 21H2 22000.613.

    After inserting a new instance of FpSpread, I try to open the respective designer...but it gives the error.

    I've tried reinstalling the software but it doesn't fix. it.
  • Replied 9 May 2022, 5:53 pm EST

    Hi,

    We have reported this issue to the team as it seems like a bug. The ETA for the fix is hotfix release Spread 15.1.1. We will let you know as soon as it is released.

    Regards
    Avnish
  • Replied 25 May 2022, 1:13 am EST

    Hi Ruchir,
    Hope you are doing well !!!!


    I'm getting the same object reference error. And I'm using the below versions
    OS : Windows10
    GrapeCity Version :15.1
  • Replied 11 July 2022, 8:35 pm EST

    Hi,

    What time will the new version be released ?
    Or how to fix the situation ?
    Everyone needs the design mode. Thanks.
  • Replied 11 July 2022, 9:04 pm EST

    Hi,

    We apologize for the inconvenience.
    We have asked the development team if they can provide a hotfix that we can provide for use in the meantime.
    We will let you know as soon as we have an update.

    Regards
    Avnish
  • Replied 18 July 2022, 3:24 pm EST

    Hi,

    The fix will be included in the next hotfix release. In the meantime, the development team has provided a pre-release build that you can use. You can use the offline installer from the following link to install it.

    Download link : https://cdn.grapecity.com/SpreadNET/installer/15.1.20221.1/offlineDownload_ComponentsOnly.zip

    Regards
    Avnish
  • Replied 18 July 2022, 7:59 pm EST

    Hi, Avnish

    Thanks for your updated information.
    I have tried the new version, but still not working.
    Could you help me confirm the component status ? Thanks.

    FarPoint.Win.Spread.FpSpread, FarPoint.Win.Spread, Version=15.0.20221.0, Culture=neutral, PublicKeyToken=327c3516b1b18457
  • Replied 19 July 2022, 2:25 pm EST

    Hi,

    First, please uninstall the older version of Spread 15, if you have it already installed. Then make sure you follow the steps given in the readme file.
    You need to copy the files to C:\Users\[username]\AppData\Local\GcInstaller\Offline. Then when you run the Installer you need to change the mode to offline, the installer will show version 15.1.20221.1 as shown in the screenshot attached.
    We followed the process at our end and the spread worked fine with its designer.

    Regards
    Avnish

  • Replied 19 July 2022, 5:02 pm EST

    It's working, must be uninstalled the old version first.

    Thanks.
  • Replied 26 July 2022, 12:27 am EST

    Hi,

    I installed visual studio 2022 x64. I am creating a winform .NET framework project.
    I get the same error and adding the spread to a form.
    I'm using the trial version so that we can analyze the possibility of deploying the product in our company

    - Rafael F.
  • Replied 26 July 2022, 8:01 pm EST

    Hi Rafael,

    Please follow the steps given below to install the Spread 15:

    - Uninstall any previous Spread 15 installation.
    - Download the installer from https://cdn.grapecity.com/SpreadNET/installer/15.1.20221.1/offlineDownload_ComponentsOnly.zip
    - Extract the files and follow the instructions given in the readme file.

    After installation, you should be able to use Spread 15 without issue.
    If you are referring to Spread via NuGet then you will need to also refer to the GrapeCity.Spread.WinForms.Design NuGet package to use the Spread Designer.

    Regards
    Avnish
  • Replied 1 August 2022, 7:07 am EST

    @avnish.kumar,

    Thank you very much for your help, everything went well with the installation!

    - Rafael F.
Need extra support?

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

Learn More

Forum Channels