Html.RenderAction - the controller for path '/' was not found

Posted by billyonemate on Stack Overflow See other posts from Stack Overflow or by billyonemate
Published on 2010-06-10T16:38:06Z Indexed on 2010/06/10 16:53 UTC
Read the original article Hit count: 181

Filed under:

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";
    }
}

© Stack Overflow or respective owner

Related posts about asp.net-mvc-2