string str = Context.Request.FilePath; str = Context.Server.MapPath(str); str = Path.GetDirectoryName(str);