I need to to change global.asax's 'Application_Start' method in MonoX for MVC integration , could it be possible?
I would like to have sometihng like given below;
public class Global : System.Web.HttpApplication
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.IgnoreRoute("{resource}.aspx/{*pathInfo}");
routes.MapRoute(
"Default",
// Route name
"{controller}/{action}/{id}",
// URL with parameters
new { controller = "Home", action = "Index", id = "" }
// Parameter defaults
);
}
protected void Application_Start()
{
RegisterRoutes(RouteTable.Routes);
}
}
I've already deleted precompiled.config. Actually there were no file in my zipped install package..
Can someone help me a little bit please? Thanks