# System.MissingMethodException: Method not found: 'X Y.Z(...)'

**Code:** `MissingMethodException` · **Category:** .NET · **Seen on:** .NET

Code compiled against one version of a library runs against another that lacks that method.

## 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

1. Clean and rebuild
2. Align package versions across projects
3. Check the loaded assembly with `dotnet list package --include-transitive`

## Detailed fix by platform

### CLI

1. `dotnet clean && rm -rf bin obj && dotnet build`

## How to diagnose

1. **Version** — Compile vs runtime?
2. **Output** — Stale DLLs?
3. **Packages** — Conflicts?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/dotnet/missingmethodexception)
