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 4:          var deger=db.QuerySingle("select * from IletisimModulu where IletisimModuluID=@0","2");
Line 5:          var deger2=db.QuerySingle("select * from HizmetAltMenu where Link=@0",sayfa);
Line 6:          var deger22=db.QuerySingle("select * from HizmetModulu where HizmetModuluID=@0",deger2.HizmetModuluID);
Line 7:          var deger3=db.QuerySingle("select * from GoogleAyarlari where GoogleAyarlariID=@0","1");
Line 8:           

Source File: c:\inetpub\vhosts\kartalamerikankultur.com\httpdocs\Egitimler.cshtml    Line: 6

Stack Trace:


[RuntimeBinderException: Cannot perform runtime binding on a null reference]
   CallSite.Target(Closure , CallSite , Object ) +115
   System.Dynamic.UpdateDelegates.UpdateAndExecute1(CallSite site, T0 arg0) +629
   ASP._Page_Egitimler_cshtml.Execute() in c:\inetpub\vhosts\kartalamerikankultur.com\httpdocs\Egitimler.cshtml:6
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +198
   System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) +69
   System.Web.WebPages.WebPage.ExecutePageHierarchy() +131
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +78
   System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContextBase httpContext) +116


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