Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Action on CommonController 'Not Found' #2235

Open
PixelDevelopers opened this issue Feb 18, 2022 · 1 comment
Open

New Action on CommonController 'Not Found' #2235

PixelDevelopers opened this issue Feb 18, 2022 · 1 comment

Comments

@PixelDevelopers
Copy link

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant