The name 'View' does not exist in the current context

The controller is not inheriting from the controller class. MVC does many things by convention, but naming your class with "Controller" on the end is not enough.

Change it to public class FilePageController : Controller.

By the way, Controller class inherits from ControllerBase class. Hence, members of ControllerBase class are accessible from class inherited from Controller class.