I've got an error that is driving me crazy, specially because it is something VERY small that I am missing.
I have a plugin which has views and controllers. I've added the route and the controller is being called perfectly
I have this folder tree:
root
-Controller
-Views
-MyController
-Index.cshtml
In my controller, the index action (which is correctly called):
public ActionResult Index()
{
return View("Nop.Plugin.MyPluginViews.MyController.Index");
}
But I am getting the following error:
The view 'Nop.Plugin.MyPluginViews.MyController.Index' or its master was not found or no view engine supports the searched locations. The following locations were searched:
~/Themes/MyTheme/Views/MyController/Nop.Plugin.MyPluginViews.MyController.Index
....... (many other locations)
Any idea why this could be happening?
thanks,
Oscar
Never mind: setting the views as embedded resource solved it :)