In Doctor Strange, the main antagonist Kaecilius and his following perform a ritual to essentially contact Dormammu and channel his power to destroy the seals protecting Earth.

We discover that the Ancient One was also channeling Dormammu's powers, keeping her young and healthy, essentially immortal.

My question is, it seemed that the Ancient One performed the same sort of ritual at some point, but wasn't affected the same way. Why?