I have created a QuickBooks Online integration with nopCommerce 2. On my 2.8 site, my plugin works fine. On a 2.65 site, however, I receive this error:
The controller for path '/Admin/Plugin/QBO/Admin/Configure' was not found or does not implement IController.
Here is my route code:
using System.Web.Mvc;
using System.Web.Routing;
using Nop.Web.Framework.Mvc.Routes;
namespace Nop.Plugin.Accounting.QBO
{
public partial class RouteProvider : IRouteProvider
{
//https://www.nopcommerce.com/boards/t/12699/admin-plugin-route.aspx?p=2
public void RegisterRoutes(RouteCollection routes)
{
routes.MapRoute("Admin.Plugin.QBO.Configure",
"Admin/Plugin/QBO/Admin/Configure",
new { controller = "QBO", action = "Configure" },
new[] { "Nop.Plugin.Accounting.QBO.Controllers" }
).DataTokens.Add("area", "admin");
}
public int Priority
{
get
{
return 0;
}
}
}
}