[Fixes #1201] Handle virtual paths in FilePathResult

use `GetService<T>`