开发者

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

开发者 https://www.devze.com 2023-03-08 23:03 出处:网络
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 o开

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 o开发者_运维问答n 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 );


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:

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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消