Normally I’d return HttpNotFound() but my method returns a FileStreamResult and I get
Cannot implicitly convert type ‘System.Web.Mvc.HttpNotFoundResult’ to ‘System.Web.Mvc.FileStreamResult’
When I try to build. Is there an alternative version for file results?
Type your action method to return the base ActionResult rather than the specific FileStreamResult. Then you can return whatever you want.