I have developed ASP.net(C#) application with MVC3 but I'm force to run it in IIS6 server which is not support url rewriting.And I don't have default.aspx file too.I don't think I can change IIS server configurations too.following shows my Global.asax.
public class MvcApplication : System.Web.HttpApplication
{
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
{
filters.Add(new HandleErrorAttribute());
}
public static void RegisterRoutes(RouteCollection routes)
{
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
);
}
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
RegisterGlobalFilters(GlobalFilters.Filters);
RegisterRoutes(RouteTable.Routes);
}
}
any idea how to solve this?
@LittleOne : Dude 1st things first . Dont get deflected from the issue, the issue is how to deploy MVC 3 on IIS 6. Use this to deploy it. It has worked for us . Best of Luck.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.