I am receiving a weird error message when i try and use @Html.Action() in my view?
here is the view code:
@Html.Action("Index", "Clients")
And here is the controller:
public class ClientsController : Controller
{
private ROUTING_DBV6Entities db = new ROUTING_DBV6Entities();
// GET: Clients
public async Task<ActionResult> Index()
{
return View(await db.Clients.ToListAsync());
}
}
And here is the error message which I have recieved:
{Cannot evaluate expression because the current thread is in a stack overflow state.}