Overwrite routing not works on production

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 anos atrás
Hi!
I have a plugin wich works pretty fine on local solution.
It overwrite route like:

public int Priority
        {
            get
            {
                return 10;
            }
        }

        public void RegisterRoutes(RouteCollection routes)
        {
            routes.MapLocalizedRoute("Plugin.Shipment.ShipmentRestrictions.OpcSaveBilling",
                "checkout/OpcSaveBilling/",
                new { controller = "CheckoutShipmentRestrictions", action = "OpcSaveBilling" },
                new[] { "Nop.Plugin.Shipment.ShipmentRestrictions.Controllers" });

        }



But on production its not work. Could u please tell me how can i retrieve full list of route on productions?
How can i debug this problem?
7 anos atrás
art_MOO wrote:
Hi!
I have a plugin wich works pretty fine on local solution.
It overwrite route like:

public int Priority
        {
            get
            {
                return 10;
            }
        }

        public void RegisterRoutes(RouteCollection routes)
        {
            routes.MapLocalizedRoute("Plugin.Shipment.ShipmentRestrictions.OpcSaveBilling",
                "checkout/OpcSaveBilling/",
                new { controller = "CheckoutShipmentRestrictions", action = "OpcSaveBilling" },
                new[] { "Nop.Plugin.Shipment.ShipmentRestrictions.Controllers" });

        }



But on production its not work. Could u please tell me how can i retrieve full list of route on productions?
How can i debug this problem?


You have to ensure that your plugin route added in the route collection ==> you can upload Nop.Core.dll and Nop.Web.dll with this plugin dll it will force restart or edit a bit(i.e press space) Global.asax ..that will restart app.

And also could ensure is there no other plugin that overrides same route?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.