The aminolysis of esters is a basic organic reaction considered as a model for the interaction of carbonyl group with nucleophiles. In the present computational study the different possible mechanistic pathways of the reaction are reinvestigated by applying higher level electronic structure theory, examining the general base catalysis by the nucleophile, and a more comprehensive study the solvent effect. Both the ab initio QCISD/6-31(d,p) method and density functional theory at the B3LYP/6-31G(d) level were employed to calculate the reaction pathways for the simplest model aminolysis reaction between methylformate and ammonia. Solvent effects were assessed by the PCM method. The results show that in the case of noncatalyzed aminolysis the addition/elimination stepwise mechanism involving two transition states and the concerted mechanism have very similar activation energies. However, in the case of catalyzed aminolysis by a second ammonia molecule the stepwise mechanism has a distinctly lower activation energy. All transition states in the catalyzed aminolysis are 10-17 kcal/mol lower than those for the uncatalyzed process.