Html.RenderAction - the controller for path '/' was not found
- by billyonemate
Using ASP.NET MVC 2 and and Html.RenderAction in my masterpage implemented as below throws an error with "the controller for path '/' was not found":
I'm a bit of a newbie, do i have to do something in RegisterRoutes to make this work?
<% Html.RenderAction("TeaserList", "SportEventController"); %>
public class SportEventController : Controller
{
public string TeaserList()
{
return "hi from teaserlist";
}
}