During configuring replication on one of the server, I received following error. This is very common error and the solution of the same is even simpler.
MSDTC on server is unavailable. Changed database context to publisherdatabase. (Microsoft SQL Server, Error: 8501)
Enable “Distributed Transaction Coordinator” in SQL Server.
Reference : Pinal Dave (http://blog.SQLAuthority.com)