-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
Description
Description:
- When we try to get the Satellite Assembly from the instance of the assembly. It throws the exception. Kindly refer the code snippet to replicate it.
Assembly lookupAssembly = Assembly.GetEntryAssembly(); lookupAssembly = lookupAssembly.GetSatelliteAssembly(CultureInfo.CurrentUICulture);
Stack Trace:
mscorlib.dll!System.Reflection.RuntimeAssembly.InternalGetSatelliteAssembly(string name, System.Globalization.CultureInfo culture, System.Version version, bool throwOnFileNotFound, ref System.Threading.StackCrawlMark stackMark) Unknown
mscorlib.dll!System.Reflection.RuntimeAssembly.InternalGetSatelliteAssembly(System.Globalization.CultureInfo culture, System.Version version, ref System.Threading.StackCrawlMark stackMark) Unknown
mscorlib.dll!System.Reflection.RuntimeAssembly.GetSatelliteAssembly(System.Globalization.CultureInfo culture) Unknown
WpfCustomCtrl.dll!WpfCustomCtrl.LocalizationResourceAccessor.GetLocalizedResourceManager(System.Reflection.Assembly lookupassembly, string nameSpace) Line 126 C#
WpfCustomCtrl.dll!WpfCustomCtrl.LocalizationResourceAccessor.LocalizationResourceAccessor() Line 40 C#
WpfCustomCtrl.dll!WpfCustomCtrl.SharedLocalizationResourceAccessor.SharedLocalizationResourceAccessor() Unknown
WpfCustomCtrl.dll!WpfCustomCtrl.SharedLocalizationResourceAccessor.SharedLocalizationResourceAccessor() Line 15 C#
[Native to Managed Transition]
[Managed to Native Transition]
[Native to Managed Transition]
ExceptionCustom.exe!ExceptionCustom.App.Main() Unknown
Sample:
WpfCustomCtrl.zip
ExceptionCustom.zip
Reproduction Steps
Just run the sample with the code snippet
Expected behavior
Actual behavior
Need to run properly
Regression?
It works properly in .NetCore.
Known Workarounds
No response
Impact
No response
Configuration
- .Net Framework 4.8
- Windows 10 21H2
- AnyCPU
Other information
No response
