We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Invalid cast exception was unhandled while upgrading projects

Platform: Miscellaneous |
Control: Install and Configuration

Resolve ‘Invalid cast exception’

To resolve the invalid cast exception:


  1. Ensure that the respective Syncfusion version assemblies exist in the GAC location. For 2.0 and 3.5 assemblies, check C:\Windows\assembly. For 4.0 assemblies, check C:\Windows\Microsoft.NET\assembly\GAC_MSIL\. Otherwise, run the Assembly Manager utility from the Syncfusion dashboard to install latest version assemblies into the GAC. The Assembly Manager can be opened from the Start menu by selecting Start > Programs > Syncfusion > Essential Studio x.x.x.x > Dashboard > Utilities > Assembly Management > Assembly Manager.       a. Set the assembly type as prebuilt version of assemblies.      b. Set the action as Install version x.x.x.x.      c. For the framework, select All.      d. Click Perform Action.
  2. Ensure that the assemblies referred to in the project all belong to the same Syncfusion version (e.g., all belong to v10.4.0.71).
  3. Set the Copy Local and Specific version properties as True for all the Syncfusion assemblies referred to in the project.
  4. Delete the bin and obj folders from the project location. Rebuild and run the project.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile