System.MissingMethodException: Method not found: 'X Y.Z(...)'
Code compiled against one version of a library runs against another that lacks that method.
Exact message you may see
Method not found
Seen on:
.NET
Meaning
It is a runtime version mismatch: a newer or older DLL ended up in the output folder, often via binding redirects, a stale bin folder or conflicting package versions.
Common causes
- Different library version at runtime than at compile time
- Stale DLLs in
bin - Transitive dependency conflict
- Plugin or deployment mixing versions
⚡ Quick fix
- Clean and rebuild
- Align package versions across projects
- Check the loaded assembly with
dotnet list package --include-transitive
Detailed fix by platform
CLI
dotnet clean && rm -rf bin obj && dotnet build
How to diagnose
- Version — Compile vs runtime?
- Output — Stale DLLs?
- Packages — Conflicts?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Most viewed in .NET
- FileNotFoundException assembly Could not load file or assembly 'X, Version=…' or one of its dependencies
- Unable to cast object of type System.InvalidCastException: Unable to cast object of type 'X' to type 'Y'
- NullReferenceException System.NullReferenceException: Object reference not set to an instance of an object
Other ways to find it
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Did this fix work for you?
Report a correction or suggest an improvement
Last updated 2 Dec 2026