it may not happen, but looks like this while loop will never end if VirtualPath starts with /