Asp.net mvc 3 MVC3路由,IIS6

Asp.net mvc 3 MVC3路由,IIS6,asp.net-mvc-3,routing,iis-6,membership,Asp.net Mvc 3,Routing,Iis 6,Membership,我已将MVC3应用程序部署到IIS6服务器,并已将global.asax.cs更改为以下内容 routes.MapRoute( "Default", // Route name "{controller}.aspx/{action}/{id}", // URL with parameters new { controller = "Home", action = "Index", id = UrlP

我已将MVC3应用程序部署到IIS6服务器,并已将global.asax.cs更改为以下内容

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

一切正常,/home/index重定向到home.aspx/index,其他页面也是如此。唯一的问题是需要授权的页面。它不是重定向到Account.aspx/LogOn,而是重定向到Account/LogOn。有没有办法解决这个问题

在web.config文件的“身份验证”部分中,您会发现如下内容

<forms loginUrl="~/Account/index" slidingExpiration="true" timeout="2880" protection="All" />
换成

<forms loginUrl="~/Account.aspx/index" slidingExpiration="true" timeout="2880" protection="All" />