Tag Archives: C#

Alternative for Server.MapPath()

by DorivalMarch 30, 2012

What to do when HttpContext.Server is null and you can not access anything inside it? In addition to this problem, the MapPath function throws an error: System.Web.HttpException (0x80004005): Request is not available in this context. Your problematic code might looks … Continue reading