﻿using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;

namespace Portal.CMS.Web
{
    public class MvcApplication : System.Web.HttpApplication
    {
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
        }

        protected void Application_Error()
        {
            //Response.Redirect("~/Home/Error");
        }
    }
}
﻿using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;

namespace Portal.CMS.Web
{
    public class MvcApplication : System.Web.HttpApplication
    {
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
        }

        protected void Application_Error()
        {
            Response.Redirect("~/Home/Error");
        }
    }
}
Add Custom Error Page and Routing
Add Custom Error Page and Routing
