I know what you are thinking, "Who uses IIS 5.1 or IIS 6 these days?" Believe it or not, some environments still use these and I had been pulling my hair out trying to deploy an MVC application to an IIS 5.1 server. The application works in production and wasn't working locally. Nothing had changed aside from some minor View refactoring. A couple of hours later I thought back to an Ektron project that required URL-rerouting and then it dawned on me: "IIS is checking to make sure that the file exists".
I opened up IIS, drilled down to my application, and followed these steps:
- Right-click application (or virtual directory)
- Click 'Properties'
- Click 'Home Directory' if application ('Virtual Directory' if virtual directory)
- Click 'Configuration' button
- Click 'Add' button
- Executable: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll
- Extension: .*
- Check 'All Verbs' if it isn't already (it should be)
- Uncheck 'Check file exists'
- Click 'OK'
- Click 'Apply'
- Click 'OK'
Dear Diary. Jackpot.
Tags:
MVC