Muzaffer
Muzaffer

Reputation: 133

mvc3 on iis6 , only home page works , routes gives 404

I've deployed a MVC3 application to a win2003 server with .Net4.0 installed . I've configured wildcard mapping for application as described here . Also i did it before for other mvc3 applications on the same server before . I'm sure that the IIS configurations of both mvc3 applications are same.

When i hit the default home page of the default route, it works, but other controllers and actions gives 404. I can't figure out a way for 2 days . Any help will be great.

routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); 
routes.MapRoute(
    "Default", // Route name 
    "{controller}/{action}/{id}", // URL with parameters 
    new {controller = "Home", action = "Index", id = UrlParameter.Optional} // Parameter defaults );

Upvotes: 1

Views: 1178

Answers (2)

Shashikanth Jogi
Shashikanth Jogi

Reputation: 1

Verify below items in IIS Home Directory tab -> Configuration. Under Wildcard application maps, 1.the entry aspnet_isapi.dll has been added 2."verify file exists" checkbox should be in unchecked state

Upvotes: 0

Darin Dimitrov
Darin Dimitrov

Reputation: 1038830

Make sure that ASP.NET 4.0 is properly registered with IIS 6.0

c:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i

and that it is enabled:

enter image description here

Upvotes: 1

Related Questions