This is for users of Visual Studio .NET 2005.
For users of Microsoft Visual Studio .NET 2005, to avoid exceptions when loading a form from a previously created project, please follow these instructions for setting a binding redirect for each of the assemblies of Spread for WinForms.
If you have made changes to a Spread control on a form at design time that required writing objects to the RESX file for the form, then you will not be able to load the form at design time unless you set a binding redirect in the machine.config file for each of these assemblies used by Spread:
assembly name |
latest previous version |
new version |
---|---|---|
FarPoint.Win | 2.0.0.0 | 2.0.1.0 |
FarPoint.Win.Spread | 1.0.1.0 - 1.0.2.0 | 1.0.3.0 |
2.0.0.0 | 2.0.1.0 | |
Note that your version numbers may vary depending on whether you had a beta or release candidate version. This table shows a general example. See the current release notes for version details.
Without these binding redirects, if the previous version of an assembly is present in the Global Assembly Cache (GAC), then loading the form will throw invalid cast exceptions. Follow the procedure below for each of these assemblies.
To add the binding redirect:
Repeat this procedure for each of the assemblies listed in the table at the top of this page.
All references to the previous version of the assembly (FarPoint.Win.Spread.dll, version 1.0.1.0 in the above example) are then redirected to the new version of the assembly (FarPoint.Win.Spread.dll, version 1.0.3.0 in the above example), including references in the RESX file for a form at design time.
If you subsequently uninstall the new version of Spread for WinForms from your machine, then you need to remove the binding redirects. Refer to the procedure below for instructions.
To remove the binding redirect (if you have uninstalled the new version of Spread for WinForms from your machine or you are finished upgrading all your projects and you do not need the binding redirect anymore):
Repeat this procedure for each of the assemblies used in Spread for WinForms listed in the table at the top of this page.