.Net Core 2.2 "System.Resources.MissingManifestResourceException" when getting resource

0

I am using Telerik reporting in .Net Core 2.2. While trying to retrieve a .bmp image for the report, which is an embedded resource, I get the following error during Unit Testing:

System.Resources.MissingManifestResourceException
  HResult=0x80131532
  Message=Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "MyAssembly.TestReportGenerator.rptTestReportDocument.resources" was correctly embedded or linked into assembly "MyAssembly.TestReportGenerator" at compile time, or that all the satellite assemblies required are loadable and fully signed.
  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, StackCrawlMark& stackMark)
   at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo requestedCulture, Boolean createIfNotExists, Boolean tryParents, StackCrawlMark& stackMark)
   at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)
   at System.Resources.ResourceManager.GetObject(String name, CultureInfo culture, Boolean wrapUnmanagedMemStream)
   at System.Resources.ResourceManager.GetObject(String name)
   at MyAssembly.TestReportGenerator.rptTestReportDocument.InitializeComponent() in C:\!!TFS\POC\MyAssembly.TestReportGenerator\MyAssembly.TestReportGenerator\Reports\rptTestReportDocument.Designer.cs:line 141
   at MyAssembly.TestReportGenerator.rptTestReportDocument..ctor() in C:\!!TFS\POC\MyAssembly.TestReportGenerator\MyAssembly.TestReportGenerator\Reports\rptTestReportDocument.cs:line 19
   at MyAssembly.TestReportGenerator.rptAnserUST..ctor() in C:\!!TFS\POC\MyAssembly.TestReportGenerator\MyAssembly.TestReportGenerator\Reports\rptAnserUST.cs:line 10
   at GenerateJsonReportUnitTests.GenerateSimpleReportTests.GenerateTelerikAnserUSTTestReport() in C:\!!TFS\POC\MyAssembly.TestReportGenerator\Tests\MyAssembly.TestReportGenerator.UnitTests\GenerateSimpleReportTests.cs:line 135
c#
.net
resources
.net-core-2.2
asked on Stack Overflow Jan 3, 2020 by LenFeld • edited Jan 3, 2020 by canton7

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0