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 }}
Repository navigation
[Proposal] Provide a "logical stacktrace" when assemblies fail to load. #9185
We've all had it happen. We go to load a program, or load an assembly into our program, and it fails with an "assembly not found" error on some assembly we didn't ask for, that doesn't look at first glance like it has anything to do with what we're trying to load. Generally it's a dependency of a dependency of a dependency of a dependency of what we actually care about, and the actual problem to be fixed could lie at any point along that dependency chain.
Knowing what this chain is is the information that we need to resolve the issue, but it's not provided, which makes fixing these problems like pulling teeth sometimes.
It would be great if we could get a "stacktrace" of the dependency chain, so that instead of simply saying:
Could not load file or assembly 'Foo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
it would then continue on and say:
while loading assembly Bar, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
while loading assembly Baz, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
while loading assembly Qux, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
Activity
jkotas commentedon Oct 25, 2017
Related to https://github.com/dotnet/coreclr/issues/8302
MagicAndre1981 commentedon Nov 4, 2021
you can already use ETW to capture fusion loading events and view them in Perfview
Include requesting assembly info in assembly load failure exceptions
dotnet-policy-service commentedon Apr 15, 2026
Tagging subscribers to this area: @agocke, @elinor-fung
See info in area-owners.md if you want to be subscribed.
MagicAndre1981 commentedon May 4, 2026
#125795 was merged into main. Will this go into 11 P5?
elinor-fung commentedon May 13, 2026
Yes, it should make .NET 11 preview 5.