Server Error in '/' Application.

Cannot perform runtime binding on a null reference

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot perform runtime binding on a null reference

Source Error:


Line 28:         <input type="hidden" name="FormID" value="@id" />
Line 29:         <input type="hidden" name="FormEventID" value="@Eid" />
Line 30:         <h4>Rating for Referee: @Referee.Name @Referee.Surname for the Event at @EventG.Venue on the @EventG.Date.</h4>
Line 31:         <p>Good Comments: <textarea name="FormGood" cols="50" rows="3" placeholder="Please enter any Compliments here."></textarea></p>
Line 32:         <p>Bad Comments: <textarea name="FormBad" cols="50" rows="3" placeholder="Please enter any Critic here."></textarea></p>

Source File: E:\www\leopathn\leopardrefereeadmin.co.za\wwwroot\Members\InstitutionRateRef.cshtml    Line: 30

Stack Trace:


[RuntimeBinderException: Cannot perform runtime binding on a null reference]
   CallSite.Target(Closure , CallSite , Object ) +148
   ASP._Page_Members_InstitutionRateRef_cshtml.Execute() in E:\www\leopathn\leopardrefereeadmin.co.za\wwwroot\Members\InstitutionRateRef.cshtml:30
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +252
   System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) +99
   System.Web.WebPages.WebPage.ExecutePageHierarchy() +185
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +107
   System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContextBase httpContext) +142


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4494.0