ASP.NET 404 Errors on the Default.aspx Page

On a new server install, you can copy over the files for your web app and mysteriously get 404 errors. It’s a simple configuration in IIS. By default the server is configured not to allow ASP.NET. You simply need to enable this in the IIS management console: