We’ve had a number of support requests regarding issues getting MVC applications working whereby the browser is throwing up a 404 file not found error or a 403 denied message.
These are generally the result of the “runAllManagedModulesForAllRequests” setting or rather lack of in your web.config file.
Previously “runAllManagedModulesForAllRequests” was set to ‘true’ by default but was changed in a Microsoft update to be ‘false’.
If like so many others, this is the issue you can quickly resolve it by enabling it in your web.config with:
<system.webServer> <modules runAllManagedModulesForAllRequests="true" /> </system.webServer>
Hopefully that was quick any easy, all you’ve really done is allow all managed modules to process all requests.
Last modified: 14/08/2019