internal static void CheckVirtualFileExists(VirtualPath virtualPath)
 {
     if (!virtualPath.FileExists())
     {
         throw new HttpException(0x194, System.Web.SR.GetString("FileName_does_not_exist", new object[] { virtualPath.VirtualPathString }));
     }
 }
 internal static bool VirtualFileExistsWithAssert(VirtualPath virtualPath)
 {
     string path = virtualPath.MapPathInternal();
     if (path != null)
     {
         InternalSecurityPermissions.PathDiscovery(path).Assert();
     }
     return virtualPath.FileExists();
 }