SmartStoreNET icon indicating copy to clipboard operation
SmartStoreNET copied to clipboard

Adding new report almost same with OrderAverageReport, code debug in VS with iisexpress works fine, but update IIS site always had exception "public action method 'OrderCustomerCategoryReport' was not found on controller 'SmartStore.Admin.Controllers.OrderController'."

Open kevin271759395 opened this issue 6 years ago • 2 comments

It's there any deploy special steps or notice? pls advise below issue:

Adding new report almost same with OrderAverageReport, code debug in VS with iisexpress works fine, but update IIS site always had exception "2020-07-17 05:25:32,133 [30] SmartStore.Admin.Controllers.HomeController - 执行处理程序“System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper”的子请求时出错。 [[email protected] GET http://192.168.169.100:1111/admin] System.Web.HttpException (0x80004005): 执行处理程序“System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper”的子请求时出错。 ---> System.Web.HttpException (0x80004005): Execution of the child request failed. Please examine the InnerException for more information. ---> System.Web.HttpException (0x80004005): A public action method 'OrderCustomerCategoryReport' was not found on controller 'SmartStore.Admin.Controllers.OrderController'. 在 System.Web.Mvc.Controller.HandleUnknownAction(String actionName)"

Index.cshtml @{ Html.RenderAction("OrderAverageReport", "Order"); } @{ Html.RenderAction("OrderCustomerCategoryReport", "Order"); } //add new report

SmartStore.Admin.Controllers.OrderController [NonAction] protected virtual IList GetOrderCustomerCategoryReportModel() { //... similar to existing method "GetOrderAverageReportModel"

        return model;
    }

    [ChildActionOnly]
    public ActionResult OrderCustomerCategoryReport()
    {
        var model = GetOrderCustomerCategoryReportModel();
        return PartialView(model);
    }

    [GridAction(EnableCustomBinding = true)]
    public ActionResult OrderCustomerCategoryReportList(GridCommand command) {...}

kevin271759395 avatar Jul 17 '20 08:07 kevin271759395

Version 3.2.2

kevin271759395 avatar Jul 17 '20 08:07 kevin271759395

Probably the application loads an outdated assembly without the new child method. Please try out following web.config change.

mgesing avatar Jul 17 '20 09:07 mgesing