smartstore / SmartStoreNET

Open Source ASP.NET MVC Enterprise eCommerce Shopping Cart Solution
http://www.smartstore.com/en/net
GNU General Public License v3.0
2.64k stars 1.46k forks source link

New Action on CommonController 'Not Found' #2235

Open PixelDevelopers opened 2 years ago

PixelDevelopers commented 2 years ago

So I've created a new Action on the CommonController in the SmartStore.Web Project. I have tried to make a call to the action, only no matter how I try I just get a Not Found error.

"System.Web.HttpException: 'Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper'.' A public action method 'Reviews' was not found on controller 'SmartStore.Web.Controllers.CommonController'."

//Controller Code [ChildActionOnly] public ActionResult Reviews() { return PartialView(); }

//Home Page Index.cshtml Html.RenderAction("Reviews", "Common");

I have forced rebuild the solution - cleaning etc, I just can't get it to work. If I examine the DLL Output after build, the action exists. Anyone had this issue or can advise?

PixelDevelopers commented 2 years ago

Seems it builds correctly, but when run, the files copied to AppData\Local\Temp\Temporary ASP.NET Files seem to be outdated / not copied properly.