Terraria Won't Launch? Here's the Fix
When Terraria won't launch — it crashes silently, or throws a Microsoft.Xna.Framework.dll error — the cause is almost always a missing XNA Framework 4.0 runtime or a corrupt config. Install XNA 4.0, and if it still fails, run TerrariaServer.exe to see the real error instead of guessing.
Exact details for Terraria
- Required runtime
Microsoft XNA Framework Redistributable 4.0- Read the real error
Run TerrariaServer.exe from the game folder (opens a console with the error)- Config to delete
Documents\My Games\Terraria\config.json- Common cause of silent crash
Missing XNA 4.0 / .NET 4.x runtime
Error codes
Microsoft.Xna.Framework.dll error / XNA Framework error
A required runtime is missing
Cause: XNA Framework 4.0 Redistributable not installed.
- Install the Microsoft XNA Framework Redistributable 4.0 and finish the wizard.
- Also install/repair .NET Framework 4.x (Terraria depends on it).
- Reboot after installing the runtimes.
- Verify integrity of game files in Steam.
Game closes with no error report
Terraria exits before the window appears
Cause: Corrupt config or a hidden startup error.
- Delete config.json in Documents\My Games\Terraria so it regenerates.
- Run TerrariaServer.exe from the game folder to see the actual error in a console.
- Run sfc /scannow from an Administrator prompt to repair Windows files.
- Disable overlays (Discord/Steam) and run as Administrator.
tModLoader won't start after update
The modded launcher fails where vanilla works
Cause: Broken mod or mismatched tModLoader build.
- Launch vanilla Terraria first to confirm the base game runs.
- Disable all mods, then re-enable them one at a time.
- Verify tModLoader files and match the expected Terraria version.
- Clear the tModLoader mod cache in %UserProfile%\Documents\My Games.
Fixes that work for most Terraria errors
- Install Microsoft XNA Framework Redistributable 4.0 — the #1 fix.
- Install/repair .NET Framework 4.x and reboot.
- Delete config.json in Documents\My Games\Terraria.
- Run TerrariaServer.exe to read the real error message.
- Run sfc /scannow to repair Windows files.
- Verify game files; for tModLoader, disable mods and match versions.
FAQ
How do I fix the Terraria XNA Framework error?
Install the Microsoft XNA Framework Redistributable 4.0 and complete the wizard, then reboot. Terraria will not start without it. Also make sure .NET Framework 4.x is installed.
Terraria won't launch and shows no error — what now?
Open the game folder and run TerrariaServer.exe directly; it opens a console that prints the actual startup error. Also delete config.json in Documents\My Games\Terraria so a fresh config regenerates.
Why does vanilla Terraria work but tModLoader won't launch?
A broken mod or a tModLoader build that doesn't match your Terraria version. Disable every mod, verify tModLoader files, then re-enable mods one by one to find the culprit.
Other games
- Dying Light 2 Co-op Not Working? Fix "Can't Join Session" (2026)
- Elden Ring Can't Summon or Connect? Fix Co-op Connection Errors (2026)
- It Takes Two Online Co-op Not Working? How to Fix It (2026)
- Left 4 Dead 2 Can't Connect to Server? How to Fix It (2026)
- Minecraft Can't Connect to Server? How to Fix It (2026)
- Monster Hunter World Can't Connect to Session? How to Fix It (2026)
- Remnant 2 Can't Join Friend's Game? How to Fix Co-op (2026)
- ARK: Survival Evolved Can't Join Session? Fix Connection Timeout (2026)