I'm trying to get an ASP.NET WebPages (Not MVC) site up and running with IIS 6, but I can't get it to serve .cshtml pages - It just spits back a 404 error every time. I've confirmed that it can serve .html and .aspx pages with no problem. So far, I've done the following:
- Install ASP.NET 4.0 (aspnet_regiis -i)
- Configure site to use ASP.NET 4.0 (aspnet_regiis -s ...)
- Allow ASP.NET v4.0 Web Service Extension
- Map aspnet_isapi.dll as handler for .cshtml files in Application Configuration (And as a wildcard mapping, no dice)
- Add .cshtml to MIME types in Application Configuration
- Ensure only ASP.NET 4.0 applications are in the app pool
- Add
<modules runAllManagedModulesForAllRequests="true" />
to web.config - Ensure that necessary .dll's are in the site's bin folder
- Give "Everyone" group full control of the site folder and subfolders
I have a working site on the same framework that I set up a while back (And failed to document my process, lesson learned), so I tried exporting that site's config, creating a new site from file, and pointing it at the proper directory for the new site, but I'm still getting a 404.
I know that there are a whole lot of IIS/ASP.NET questions out there already, but every one I've seen is either not applicable to my situation (A lot of the MVC ones), or was solved by one or more of the things I've already tried.
Anyone have a clue as to what could be causing this?