You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
System.TypeInitializationException after #3460 #3480
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:
Click 'Controls'
Click 'AlignmentGrid' (or any other sample)
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: )
I added var a = ResourceLoader.GetForViewIndependentUse();
at Microsoft.Toolkit.Uwp.UI.Controls.dll!Microsoft.Toolkit.Uwp.UI.Controls.GridSplitter.GridSplitter() Line 171
and got the exception
System.Exception
HResult=0x80073B1F
Message=ResourceMap Not Found.
ResourceMap Not Found.
Source=<Cannot evaluate the exception source>
StackTrace:
<Cannot evaluate the exception stack trace>
Activity
Rosuavio commentedon Sep 17, 2020
I added
var a = ResourceLoader.GetForViewIndependentUse();at
Microsoft.Toolkit.Uwp.UI.Controls.dll!Microsoft.Toolkit.Uwp.UI.Controls.GridSplitter.GridSplitter() Line 171and got the exception
michael-hawker commentedon Sep 18, 2020
Nice catch @RosarioPulella, sorry for the troubles!