Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • darzren 4 posts 83 karma points
    Feb 13, 2020 @ 08:59
    darzren
    0

    System.Web.HttpException: 'Error executing child request for handler

    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>
    
Please Sign in or register to post replies

Write your reply to:

Draft