/// <summary> /// Resolves an Application-path relative location /// </summary> /// <param name="location">The location</param> /// <returns>The absolute location.</returns> public string ResolveLocation(string location) { if (location == null) { throw new ArgumentNullException("location"); } string appPath = ContextFacade.GetApplicationPath(); if (appPath.Length > 1) { appPath += "/"; } return(location.Replace("~/", appPath)); }