404 Error when trying to call a action which returns a file result

0

My site has an option to download a file. When a user clicks on the download button, it calls an action method which returns a file result. This method works in local but not in the server. In the server all other pages works except this. It returns 404 error (Error code 0x80070002).

  • Target Framework: 4.6.1
  • MVC Version: 5.2
  • IIS Version : 8

I tried by adding "runAllManagedModulesForAllRequests = true" and defining extensionless handlers in web.config. But didn't work. Does anyone got a solution?

asp.net-mvc-5
iis-8
asked on Stack Overflow Apr 23, 2019 by Chris • edited Apr 23, 2019 by MJN Belief

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0