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
- Civilization VII Errors — Crash at Startup, Not Launching, Vulkan/DX12 & Fixes
- Dune: Awakening Error Codes — P34, H74, 873, P64, Q62, FG3 & M52 Fixes (2026)
- Assassin's Creed Shadows Error Codes — DX12 0x887a0006, 0x80070057, ANIMUS & Fixes
- Kingdom Come: Deliverance II Errors — Crash at Startup, DX11/DX12, Nvidia 572.16 & Fixes
- Split Fiction Errors — 'UE-Split Game Has Crashed' Fatal Error, DX11/DX12 Crash & Fixes
- S.T.A.L.K.E.R. 2 Error Codes — 887A0006 (D3D12 Device Removed), LowLevelFatalError, Shader Crash & Fixes
- Black Myth: Wukong Error Codes — Denuvo 'Something Went Wrong', Error 577, D3D12 Device Crash & Fixes
- Cyberpunk 2077 Error Codes — Access Violation, 0xC000001D, Flatlined, CE-34878-0 & Fixes