Hi,
Need help on this error - System.Web.HttpException: 'Error executing child request for handler ‘System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper’.
Inner Exception - HttpCompileException: ~\Views\Partials\Home\Welcome.cshtml(23): error CS1503: Argument 1: cannot convert from ‘method group’ to ‘HelperResult’
Below is my controller that call welcome.cshtml
@{Html.RenderAction("RenderWelcome", "Home");}
Below is my welcome.cshtml code
@inherits Umbraco.Web.Mvc.UmbracoViewPage<ContentModels.Home2>
@using ContentModels = Umbraco.Web.PublishedModels;
@inherits Umbraco.Web.Mvc.UmbracoViewPage
@{
//var welcome = Model.Root();
//var selection = site.Children.Where(x => x.IsVisible());
var welcome = Model.Value<IPublishedContent>("welcome");
}
<!-- ** Welcome Area Start ** -->
<div class="welcome-area" id="welcome">
<!-- ** Header Text Start ** -->
<div class="header-text">
<div class="container">
<div class="row">
<div class="offset-xl-3 col-xl-6 offset-lg-2 col-lg-8 col-md-12 col-sm-12">
<h1>@welcome.Value</h1>
This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/101099-systemwebhttpexception-error-executing-child-request-for-handler