Get location outside of website folder

webRootPath = Server.MapPath(“~”);

docPath = Path.GetFullPath(Path.Combine(webRootPath, “..\Documents\MyDocument.xml”));

Anuncios