Skip to content

FileNotFoundException occurs #9155

@sudharsan-narayanan

Description

@sudharsan-narayanan

Description

Description:

  1. 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

image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    InvestigateRequires further investigation by the WPF team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions