Server.MapPath resolves paths relative to the current page instead of the application base. If you want something relative to the application base, use something like Server.MapPath("~/somedir").
GetType() doesn't work for ASPX classes. Instead of returning the type of your class, it returns the type of some funky ASP.NET wrapper class in a system namespace.