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 11: 
Line 12:     var vURL = "";
Line 13:     var vdeta = db.QuerySingle("select * from rz_Contents_Video where AddonName=@0 AND AddonId=@1 order by videoOrderId Asc", "rzShop", item.Id);
Line 14:     if (vdeta != null)
Line 15:     {

Source File: C:\inetpub\Host\kamalian\razeney.ir\www\rcAddons\Shop\_products-detail.cshtml    Line: 13

Stack Trace:


[RuntimeBinderException: Cannot perform runtime binding on a null reference]
   CallSite.Target(Closure , CallSite , Object ) +148
   System.Dynamic.UpdateDelegates.UpdateAndExecute1(CallSite site, T0 arg0) +664
   CallSite.Target(Closure , CallSite , Object ) +264
   ASP._Page_rcAddons_Shop__products_detail_cshtml.Execute() in C:\inetpub\Host\kamalian\razeney.ir\www\rcAddons\Shop\_products-detail.cshtml:13
   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) +122
   System.Web.WebPages.<>c__DisplayClass3.<RenderPageCore>b__2(TextWriter writer) +332
   System.Web.WebPages.WebPageBase.Write(HelperResult result) +123
   ASP._Page_Product_cshtml.Execute() in C:\inetpub\Host\kamalian\razeney.ir\www\Product.cshtml:10
   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.4210.0