private static string GeneratePathURL(string filepath) { string ret = Uri.EscapeUriString(filepath); ret = ret.Replace(":", "%3a"); ret = ret.Replace("%5C", "/"); ret = "file://localhost/" + ret; return ret; }