Object of type 'Syncfusion.Drawing.BrushInfo' cannot be converted to type 'Syncfusion.Drawing.BrushInfo'

Hello,

I was trying to change the color of chartSeries interior using:

chartSeries3.Style.Interior = new Syncfusion.Drawing.BrushInfo(Color.Navy);

But when the designer reloaded it showed the following error which seems really strange to me:

Object of type 'Syncfusion.Drawing.BrushInfo' cannot be converted to type 'Syncfusion.Drawing.BrushInfo'

I've tried Reinstalling Assemblies using Assembly manager but with no success. Updated nuget packges to the latest version without any luck again..

My rough guess is that its happening due to some dependency mismatch still can't get it solved by Syncfusion Troubleshooter.

Any Help?

5 Replies 1 reply marked as answer

SG shankul gupta February 19, 2021 05:24 AM UTC

Got it fixed.. found that the Nuget packages were causing this issues. Like I said there was a version mismatch. The installed version of Nuget Packages was greater than the Assemblies in GAC. I simply downgraded the Nuget packages to the version of assemblies in GAC and it worked with no design time error..

Marked as answer

YP Yuvaraj Palanisamy Syncfusion Team February 19, 2021 05:43 AM UTC

 
Thank you for your update. We are glad to know that the solution works at your end.  
 
Regards, 
Yuvaraj 



SG shankul gupta February 19, 2021 05:52 AM UTC

Now There is another error I'm facing. I cannot compile the application because of the following error:

System.IO.FileLoadException
  HResult=0x80131040
  Message=Could not load file or assembly 'Syncfusion.Shared.Base, Version=18.4460.0.43, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Inner Exception 1:
FileLoadException: Could not load file or assembly 'Syncfusion.Shared.Base, Version=18.4460.0.39, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Help Please.. This is an Urgent Requirement..

Thanks.



SG shankul gupta February 19, 2021 06:15 AM UTC

Again got it fixed myself, The issue was in the App.Config. It was referencing to the version (18.4460.0.43) newer than the installed Assemblies of version (18.4460.0.39). I just replaced the version string and the project is now compiling again.


SM Saravanan Madheswaran Syncfusion Team February 20, 2021 04:07 PM UTC

 
Thanks for the update, we are happy to hear that the issue is resolved. 
 
Regards, 
Saravanan.  


Loader.
Up arrow icon