IIS is giving me a 404 error for my MonoRails app
I was recently working on a MonoRails application. It was more a less a basic CRUD website for the admins to massage their data. We wanted to use the built in scaffolding for the application, but we choose just to create the custom pages using the helpers that MonoRails provides.
We push to production and begin to test the site out. The way the site works is we use Forms Authentication tied to the company's Activie Directory server. Upon a succesful login, the user is redirected to the MonoRail application. The login part worked fine but when the site was redirected, we would get a 404 error. The url was showing the correct controller and action the site acted as if the page did not exist.
Well I was left scratching my head because as far as I knew I had done everything right. I went back to the installing Monorails webpage and went over all the steps. Everything looked good to me. I had created the .rails extension and routed it through the aspnet_isapi.dll, so I wasn't sure what else could be wrong. It was late so I stopped for the night figuring I'd tackle it fresh in the morning.
The next day I spent less than 30 minutes on the problem before I figured it out. All that I had to do was Uncheck the Check file exists check box as it so clearly states in the instructions.
Makes me wonder how I got through college. So this is just a reminder to myself and other as to how important it is to read instructions and read them slowly.
- e r i c