You appear to be calling the MapPath method of a Page. I've never used that method so I'm not sure if it's different or not but most people tend to use Server.MapPath. Perhaps give that a try and see whether you get different results.