If you ever ran into deploying asp.net mvc app onto IIS 7.5 running on pristine new dev boxes and encounter http errors as indicated in the title, follow this checklist to troubleshoot.
- First and foremost, check if right version of ASP.Net is installed and registered with IIS. To verify that,
aspnet_iis.exetool is your friend.
- Check your App pools and their settings. (
Enable 32bitand other permissions)
- If you have set your mvc app to be precompiled when published, please ensure precompiled App.config is in root directory. Or simply try republishing with out precompiled setting in your publish profile.
Hope this helps!!