I'm trying to write a plugin. I started by testing whether I could display something on the Index page. Here's my code:
//My main plugin class
public IList<string> GetWidgetZones()
{
return new List<string>{ "home_page_before_news" };
}
//My action
[ChildActionOnly]
public ActionResult DisplayLink(string widgetZone, object additionalData = null)
{
_cacheService.Clear();
return View("~/Plugins/Widgets.PartnershipManager/Views/DisplayLink.cshtml");
}
//My view
@{
Layout = "";
}
<a href="#">My first link</a>
I'm getting the following error: Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper'.
With no further information. Yet, I tried to match the code for NivoSlider as much as I can. Am I missing something?
Thanks for helping