I have joined a team developing an ASP.NET MVC version 1 application. I run this app on my local machine using IIS version 7.5. My operating system is Windows Server 2008 R2 Enterprise Edition. I use Visual Studio 2008 SP1 for development.
One of the controllers in this app is called ReportsController. The route table entries for this controller use 'Reports' as the controller name part. The problem I have is that, using IIS 7.5 on my local machine, I simply cannot access any of the Reports action methods. If I try to access, say, '/Reports/Index' from Chrome or Firefox, I get a 401 Unauthorized response (as seen using Fiddler) and the browser displays its username/password entry dialog.
Please note the following:
- All other non-Report pages in the application work correctly.
- If I add a breakpoint to Application_BeginRequest, it is not hit when requesting a Reports page.
- If I change the Reports routing entries in the route table registration code so that I have to access paths like '/Reportss/Index' (note the extra 's') then these Reports pages work correctly.
- I have tried deleting then recreating my Web application in IIS.
- The Reports pages work fine if I run the application using the Visual Studio 2008 development server (Cassini).
- There is no directory called Reports in the application directory.
- The Reports pages work correctly on our UAT environment, also under IIS 7.5.
- I have reviewed my IIS setting several times, including comparing them with those on UAT, and I can't see a problem.
While I can use Cassini to access the Reports pages, I would really like to understand what is causing this issue.