Using Sitecore 8.2
I have multiple MVC projects in a VS Solution. For each project, I remove the RouteConfig.cs, but for one, I forgot and clicked on publish. (I'm not sure if thats the reason for the error).
Now the page thows this error -
The controller for path '/en/home' was not found or does not implement IController.
I removed the RouteConfig.cs and published again but no luck. Also, none of the MVC projects have Global.asax included.
I also tried giving the full path in controller rendering.
Controller: Sitecore.Feature.Teasers.Controllers.TeasersController, Sitecore.Feature.Teasers
Controller Action: RenderTeaser
TeasersController.cs
namespace Sitecore.Feature.Teasers.Controllers
{
public class TeasersController : SitecoreController
{
// GET: Teasers
public ActionResult RenderTeaser()
{
IEnumerable<Item> teasers = GetTeasers();
return View("~/Views/Teasers/Teasers.cshtml", teasers);
}
}
}
How can I fix this. Thank you.
MapRoute(
is used anywhere. When you find it, remove it, then do a full rebuild of your solution and redeploy it.