views:

661

answers:

2

I've been trying to figure out why my views are returning 404 in my staging environment, but not my development environment.

  • Windows Server 2008 R2
  • IIS 7.5
  • MVC 2 Beta definitely installed.

The first Route entry in my Global.asax is as follows:

        routes.MapRoute(
            "FindStore",
            "FindStore",
            new { controller = "FindStore", action = "Index" });

All views are definitely present and in the proper directories.

Basically if I go to http://StagingServer/FindStore I get a 404 error. Every other answer I've seen has to do with IIS 6. which I'm not running.

+1  A: 

I am not sure if this will help but there was an issue reported on Stack Overflow that uses both technologies and involves a similar problem: http://stackoverflow.com/questions/1852251/getting-an-asp-mvc2-vs2010-application-to-work-in-iis-7-5

I would check it out and see if it helps.

Alos
This tutorial may also helpUsing ASP.NET MVC with Different Versions of IIS (C#)http://www.asp.net/learn/mvc/tutorial-08-cs.aspx
Alos
That's not a bad idea. unfortunately both "HTTP Redirection" and "HTTP Errors" are installed. ... although I had JUST installed them for other reasons earlier today, perhaps a reboot is in order? ... I'll have to check.Also I've been going through that microsoft tutorial already, it's actually linked at the top of the Global.asax.cs file put out by an MVC project.
blesh
A: 

It ended up being because my App Pool was running in Classic mode.

blesh