Check your architecture (32 vs 64 bit). Check your version mismatch (SSMS vs SQL Server engine). Check your registry paths. And if all else fails, remember: sometimes the most professional fix is to uninstall all SQL Server client tools and start from a clean slate.
Open PowerShell as Administrator. Run:
Deconstructing the Ghost: A Deep Dive into the replres.rll Loading Failure cannot load resource dll replres.rll