Changed WebDirectoryRepository.RootDirectory to protected.