Skip to content

System.TypeInitializationException after #3460 #3480

@Rosuavio

Description

@Rosuavio

Describe the bug

After #3460 as merged, when I select any of the samples I get this exception. (In this case AlignmentGrid)

Exception

System.TypeInitializationException
  HResult=0x80131534
  Message=The type initializer for 'Microsoft.Toolkit.Uwp.Extensions.StringExtensions' threw an exception.

Inner Exception 1:
Exception: ResourceMap Not Found.

ResourceMap Not Found.

Call Stack

Microsoft.Toolkit.Uwp.dll!Microsoft.Toolkit.Uwp.Extensions.StringExtensions.GetLocalized(string resourceKey, string resourcePath) Line 68	C#
Microsoft.Toolkit.Uwp.UI.Controls.dll!Microsoft.Toolkit.Uwp.UI.Controls.GridSplitter.GridSplitter() Line 171	C#
[External Code]	
Microsoft.Toolkit.Uwp.SampleApp.exe!Microsoft.Toolkit.Uwp.SampleApp.SampleController.SampleController() Line 39	C#
[External Code]	
Microsoft.Toolkit.Uwp.SampleApp.exe!Microsoft.Toolkit.Uwp.SampleApp.Shell.NavigateToSample(Microsoft.Toolkit.Uwp.SampleApp.Sample sample) Line 54	C#
Microsoft.Toolkit.Uwp.SampleApp.exe!Microsoft.Toolkit.Uwp.SampleApp.Shell.SamplePickerGridView_ItemClick(object sender, Windows.UI.Xaml.Controls.ItemClickEventArgs e) Line 122	C#
  • Is this bug a regression in the toolkit? If so, what toolkit version did you last see it work: 0e2d49f

Steps to Reproduce

Steps to reproduce the behavior:

  1. Click 'Controls'
  2. Click 'AlignmentGrid' (or any other sample)
  3. See error

Expected behavior

Sample to be displayed.

Environment

NuGet Package(s): 

Package Version(s): 

Windows 10 Build Number:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [ ] October 2018 Update (17763)
- [ ] May 2019 Update (18362)
- [x] May 2020 Update (19041)
- [ ] Insider Build (build number: )

App min and target version:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [ ] October 2018 Update (17763)
- [ ] May 2019 Update (18362)
- [x] May 2020 Update (19041)
- [ ] Insider Build (xxxxx)

Device form factor:
- [x] Desktop
- [ ] Xbox
- [ ] Surface Hub
- [ ] IoT

Visual Studio 
- [ ] 2017 (version: )
- [x] 2019 (version: 16.7.3) 
- [ ] 2019 Preview (version: )

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Completed 🔥bug 🐛An unexpected issue that highlights incorrect behavior

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions