Cannot use Server.MapPath in code for a recurrring job

HostingEnvirement.MapPath should work just fine, as long as the code is running InProc with the website application