public virtual string PhysicalToVirtual(string physicalPath) { string virtualPath = physicalPath; if (StateAccess.IsInitialized) { virtualPath = virtualPath .Replace(StateAccess.State.PhysicalApplicationPath, "") .Replace("\\", "/"); } virtualPath = ApplicationPath.TrimEnd(Path.DirectorySeparatorChar) + "/" + virtualPath; return(virtualPath); }