Error 14151:Replication Agent failed to start.

I got below error 14151 for one of my SQL Server Replication Agent. The SQL Server Replication Agent may not start and will throw error message: The replication agent is not registered properly. Rerun SQL Server setup. The step failed. [SQLSTATE...