migrating spread 6 to spread 12 on VS2012

Posted by: jbingenieriasoftware1921 on 18 January 2020, 6:20 am EST

  • Posted 18 January 2020, 6:20 am EST

    I received it when I copy to another computer the app (exe file and dll)

    An exception occurred in the type initializer of 'FarPoint.Win.Spread.FpSpread'

    On my computer (I am developer) it run without problems
  • Marked as Answer

    Replied 19 January 2020, 6:07 pm EST

    Hello,

    This exception is generally thrown when the FarPoint.Win.Spread assembly is not present is not deployed with the executable.
    However, since you mention that you have copied the dll along the application (*.exe), I can think of the following two possible scenarios:
    1. The dll is not placed in the same folder as the application (*.exe), due to which the application is unable to refer the assembly and hence, throwing the exception. In that case, please copy the assembly (*.dll) in the same.
    2. The application was built using Spread.Net version 6 but, the dll you are copying is of version 12, is it? In that case, you would need to open the project in VS, replace the old referred assemblies with their corresponding new assemblies of version 12, build the project and then re-deploy.

    To resolve the exception, please try to follow the above suggestions. If the issue persists, please share with us the files you are deploying along with the VS project.
    *If there is any concern regarding the confidentiality, you may upload the files over our one-to-one platform SupportOne: https://supportone.componentone.com/newcase

    Best regards,
    Ruchir
Need extra support?

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

Learn More

Forum Channels