Quantcast
Channel: ActiveTopics
Viewing all articles
Browse latest Browse all 72689

"Cannot perform runtime binding on a null reference" error from partial views

$
0
0

Hi Community 

I am getting following error while using Partial view with @Html.Partial()

Code:

 

@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@using PBDesk.Website.Extension.UmbHelpers
@using PBDesk.DataContract.UDocs
@{
eBook ebod = ContentHelper.GetEBOD();
}
<div class="span3">
    <h2>eBook Of The Day</h2>
    <div>@ebod.NiceUrl</div>
    <div>@CurrentPage.Id</div>
    <div class="image-wrapper custom-image-wrapper">
        <i class="icon-book"></i>
    </div>
    <p>@ebod.Title <a href="@ebod.NiceUrl"><img alt="@ebod.Title"  src="@ebod.ThumbnailUrl" /><br/><br/><button type="button" class="btn btn-danger">Get the eBooks »</button></a></p>
</div>

 

Error:


Viewing all articles
Browse latest Browse all 72689


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>