dotnet runtime_error ai_generated true

FileNotFoundException: Could not load file or assembly

ID: dotnet/assembly-load-failed

Also available as: JSON · Markdown
82%Fix Rate
86%Confidence
3Evidence
2023-01-01First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
8 active

Root Cause

Referenced assembly not found at runtime.

generic

Workarounds

  1. 90% success Check deps.json and ensure NuGet packages are restored
  2. 88% success Use dotnet publish to create self-contained deployment

Dead Ends

Common approaches that don't work:

  1. Copy all DLLs to bin manually 75% fail

    Version conflicts, maintenance nightmare

  2. Use Assembly.LoadFrom with hardcoded path 78% fail

    Breaks on deployment