invocation of the constructor of ColorPickerPallet failed

I'm using SFImageEditor in one of my project and give following error :

Revit encountered a System.Windows.Markup.XamlParseException: The invocation of the constructor on type 'Syncfusion.Windows.Tools.Controls.ColorPickerPalette' that matches the specified binding constraints threw an exception. ---> System.lO.FileNotFoundException: Could not find file 'Syncfusion.Shared.Wpf.resources'. at System.Reflection.RuntimeAssembly.InternalGetSatelliteAssembly(String name, Culturelnfo culture, Version version, Boolean throwOnFileNotFound, StackCrawlMark& stackMark) at System.Resources.ManifestBasedResourceGroveler.GetSatelliteAssembly(CultureInfo lookForCulture, StackCrawlMark& stackMark) at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(CultureInfo culture, Dictionary? localResourceSets, Boolean tryParents, Boolean createlfNotExists, StackCrawlMark& stackMark) at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo requestedCulture, Boolean createlfNotExists, Boolean tryParents, StackCrawlMark& stackMark) at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createlfNotExists, Boolean tryParents) at System.Resources.ResourceManager.GetObject(String name, Culturelnfo culture, Boolean wrapUnmanagedMemStream) at System.Resources.ResourceManager.GetStream(String name, Culturelnfo culture) at System.Windows.SystemResources.ResourceDictionariestoadDictionary(Assembly assembly, String assemblyName, String resourceName, Boolean isTraceEnabled, Uri& dictionarySourceUri) at System.Windows.SystemResources.ResourceDictionariestoadGenericDictionary(Boolean isTraceEnabled) at System.Windows.SystemResources.FindDictionaryResource(Object key, Type typeKey, ResourceKey resourceKey, Boolean isTraceEnabled, Boolean allowDeferredResourceReference, Boolean mustReturnDeferredResourceReference, Boolean& canCache) at System.Windows.SystemResources.FindResourcelnternal(Object key, Boolean allowDeferredResourceReference, Boolean mustReturnDeferredResourceReference) at System.Windows.StyleHelper.GetThemeStyle(FrameworkElement fe, FrameworkContentElement fce) at System.Windows.FrameworkElement.UpdateThemeStyleProperty() at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) at System.Windows.DependencyObject.UpdateEffectiveValue(Entrylndex entrylndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType) at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean islnternal) at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value) at Synclusion.Windows.Tools.Controls.ColorPickerPalette..ctor() --- End of inner exception stack trace ---at System.Windows.Markup.XamlReader.RewrapEcception(Exception e. IXamlLinelnfo linelnfo, Uri baseUri) at System.Windows.FrameworkTemplate.LoadTemplateXaml(XamlReader templateReader, XamlObjectWriter currentWriter) at System.Windows.FrameworkTemplate.LoadTemplateXaml(XamlObjectWriter objectWriter) at System.Windows.FrameworkTemplate.LoadOptimizedTemplateContent(DependencyObject container, IComponentConnector componentConnector, IStyleConnector styleConnector, affectedChildren, UncommonFielel templatedNonFeChildrenField) at System.Windows.FrameworkTemplate.LoadContent(DependencyObject container, List'1 affectedChildren) at System.Windows.StyleHelper.ApplyTemplateContent(UncommonFielel dataField, DependencyObject container, FrameworkElementFactorytemplateRoot, Int32 lastChildIndex, HybridDictionary childIndexFromChild10, FrameworkTemplate frameworkTemplate) at System.Windows.FrameworkTemplate.ApplyTemplateContent(UncommonFielel templateDataField, FrameworkElement container) at System.Windows.FrameworkElement.ApplyTemplate() at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UlElement.Measure(Size availableSize) at System.Windows.Controls.Grid.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UlElement.Measure(Size availableSize) at MS.Internal.Helper.MeasureElementWithSingleChild(UlElement element, Size constraint) at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UlElement.Measure(Size availableSize) at System.Windows.Documents.AdornerDecorator.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UlElement.Measure(Size availableSize) at System.Windows.Controls.Border.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UlElement.Measure(Size availableSize) at System.Windows.Window.MeasureOverrideHelper(Size constraint) at System.Windows.Window.MeasureOverride(Size availableSize) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at Svstem.Windows.UlElement.Measure(Size availableSize)


Attachment: error_b59e8330.rar

1 Reply 1 reply marked as answer

ET Eswaran Thirugnanasambandam Syncfusion Team February 12, 2021 01:25 PM UTC

Hi Nasirodin, 
 
We checked the reported query from our side, and we are unable to reproduce the issue from our side. We have suspected it may occur because of a cache problem. We have created a simple sample using latest NuGet version 18.4.0.42. 
 
Please try the below steps in your application and let us know whether the issue resolved or not. 
 
Steps:  
·         Uninstall all the Syncfusion nuget from your application and clean your project solution.  
·         Please follow below steps before install or update the NuGet.  
a. Please clear the NuGet cache, before using the latest one. 
b. Uninstall old NuGet in your application before install the latest version.  
·         Close the visual studio and delete Bin, Obj and Packages folder in your application location.  
·         Now open your application and install all the latest version of Syncfusion NuGet and rebuild.  
·         Now, deploy your application.  
   
Please download the simple sample from the below link. 
 
 
If you still face any problem, can you revert us by modifying the attached sample based on your application scenario, this will help us to provide you a better solution at the earliest. 
  
Regards, 
Eswaran

Marked as answer
Loader.
Up arrow icon