Could not find the resource "Syncfusion.Maui.ListView.Resources.SfListView.resources" among the resources

I have a Maui application running on windows (23.1.41), and I am getting first chance exceptions like this:


Could not find the resource "Syncfusion.Maui.ListView.Resources.SfListView.resources" among the resources "" embedded in the assembly "Syncfusion.Maui.ListView", nor among the resources in any satellite assemblies for the specified culture. Perhaps the resources were embedded with an incorrect name.

Exception:

System.Resources.MissingManifestResourceException: Could not find the resource "Syncfusion.Maui.ListView.Resources.SfListView.resources" among the resources "" embedded in the assembly "Syncfusion.Maui.ListView", nor among the resources in any satellite assemblies for the specified culture. Perhaps the resources were embedded with an incorrect name.

   at System.Resources.ManifestBasedResourceGroveler.HandleResourceStreamMissing(String fileName)

Stack Trace:

   at System.Resources.ManifestBasedResourceGroveler.HandleResourceStreamMissing(String fileName)


What is super strange is I while I am using other SF controls, I was NOT using sfListView.  I added it to my project to see if it was some cross dependency, but that didn't fix it.  We are using Buttons, DataGrid, Expander, Inputs, Picker, ProgrssBar, TabView controls.

Since it is a first chance exception, we get no stack trace, so I don't even know where to look.  I'm hoping someone as seen this before.


5 Replies

RM RiyasHameed MohamedAbdulKhader Syncfusion Team November 23, 2023 03:06 PM UTC

Hi Mark Richards,

We have reviewed your reported query, and unfortunately, we were unable to reproduce the problem on our end. We suspect that it might be a NuGet cache issue. To address this, we recommend following the steps below:

  1. Clear the NuGet cache.
  2. Close the application and delete the 'bin,' 'obj,' and '.vs' folders from the application.
  3. Open the application and restore NuGet packages.
  4. Rebuild the application.

Additionally, we suggest verifying that all packages are in the same version. If these steps do not resolve your issue, could you please provide us with a reproducible sample? This would be helpful for us to further investigate and validate the issue.

Regards,
Riyas Hameed M




JT John Taylor January 15, 2024 03:48 PM UTC

I'm getting the same error, and it seems linked to a sfComboBox in my contentview. I have a button that shows a popup... and when I display the popup, the firstchance exception fires with: 

Could not find the resource "Syncfusion.Maui.ListView.Resources.SfListView.resources" among the resources


If I comment out the ComboBox, you don't get the exception.... so looks like it's the listview used in the combobox that is throwing the error.



AJ AhamedAliNishad JahirHussain Syncfusion Team January 16, 2024 02:03 PM UTC

Hi John,


We have reviewed your query, and based on the provided information, we have created a sample that includes the SfComboBox loaded with data. However, we were not able to reproduce the reported issue.


To better replicate and investigate the issue, could you please share how the SfComboBox is used in your project? Providing a replication sample will assist us in a more thorough investigation, enabling us to offer a prompt solution at the earliest.


Kindly review the attached example and apply any required modifications to reproduce the problem. Afterward, kindly forward the sample to us, as it would enable us to conduct a more thorough investigation of the issue.


Moreover, could you specify the platforms on which you are encountering this issue?


Regards,

Ahamed Ali Nishad.



Attachment: ComboBoxIssue_e62e5d7e.zip


JT John Taylor March 12, 2024 10:03 PM UTC

I'm getting the following first chance error in the constructor of an sfPopup dialog.



System.Resources.MissingManifestResourceException

  HResult=0x80131532

  Message=Could not find the resource "Syncfusion.Maui.ListView.Resources.SfListView.resources" among the resources "" embedded in the assembly "Syncfusion.Maui.ListView", nor among the resources in any satellite assemblies for the specified culture. Perhaps the resources were embedded with an incorrect name.

  Source=System.Private.CoreLib

  StackTrace:

   at System.Resources.ManifestBasedResourceGroveler.HandleResourceStreamMissing(String fileName)

   at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(CultureInfo culture, Dictionary`2 localResourceSets, Boolean tryParents, Boolean createIfNotExists)

   at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)

   at System.Resources.ResourceManager.GetString(String name, CultureInfo culture)

   at Syncfusion.Maui.Core.Localization.LocalizationResourceAccessor.GetString(String text) in Syncfusion.Maui.Core.Localization\LocalizationResourceAccessor.cs:line 33



The value of the text vsariable is "Title"



KP Kamalesh Periyasamy Syncfusion Team March 13, 2024 03:16 PM UTC

Hi John,

 

We have reviewed your query, and based on the provided information, we have created a sample that SfPopup includes the SfComboBox loaded with data. However, we were not able to reproduce the reported issue.

 

To better replicate and investigate the issue, could you please share how the SfComboBox is used in your project? Providing a replication sample will assist us in a more thorough investigation, enabling us to offer a prompt solution at the earliest.

 

Kindly review the attached example and apply any required modifications to reproduce the problem. Afterward, kindly forward the sample to us, as it would enable us to conduct a more thorough investigation of the issue.

 

Regards,

Kamalesh P



Attachment: MauiApp1_fd8bfe3d.zip

Loader.
Up arrow icon