Server Error in '/' Application.

Object reference not set to an instance of an object.

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: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 1:  <%@ control language="C#" autoeventwireup="true" inherits="controls_ucUrunler, App_Web_ffxrqb2d" %><div class="container"><div class="row"><div class="col-12"><div id="banner"><div class="sublink text-capitalize font"><a href="<%=Links.Home() %>"><%=Bilgi.Ayar.FirmaAdi %></a><i class="fas fa-long-arrow-alt-right"></i><span>Ürünler</span><i class="fas fa-long-arrow-alt-right"></i><span class="text-capitalize"><%=GrpDetay.Adi %></span></div></div></div></div></div><div id="page_urunler" class="container mb-5"><div class="row"><div class=" col-md-3 "><div id="sabitalan" class="hidden-sm"><%foreach (var g in Gruplar.Listesi) { %><a href="<%=Links.Urunler(g.Id) %>" class="<%=g.Id==GrpDetay.Id?"active":"" %>"><%=g.Adi %></a><%} %></div><div class="dropdown mb-3 d-md-none"><button class="btn btn-secondary dropdown-toggle w-100 text-capitalize" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Ürünler </button><div class="dropdown-menu text-capitalize" aria-labelledby="dropdownMenuButton"><%foreach (var k in Gruplar.Listesi) { %><a class="dropdown-item" href="<%=Links.Urunler(k.Id) %>"><%=k.Adi %></a><% } %></div></div></div><div class="col-md-9"><h1 class="text-center"><%=GrpDetay.Adi %></h1><div class="row"><%foreach (var g in Products.OrderBy(b=>b.FirmaNo)) { %><div class="col-md-4 mb-5 col-6"><a href="<%=g.Link%>" class="urun w-100 bg_resim lazy" data-src="<%=g.Foto.Normal %>"><label><%=g.Baslik %></label><span class="ml-2"><%=g.FirmaNo %></span><div class="logo"><img alt="<%=GrpDetay.Adi %>" class="img-fluid lazy" src="/images/lazy.png" height="1" data-src="/images/logo-white.png" width="1" /></div></a></div><% } %></div><img alt="<%=GrpDetay.Adi %>" class="img-fluid lazy rounded mb-2" src="/images/lazy.png" height="1" data-src="<%=GrpDetay.Foto.Orjinal %>" width="1" /><div class="font aciklama"><%=GrpDetay.Aciklama %></div></div></div></div>

Source File: d:\hostingspaces\seckinl1\seckinli.com.tr\wwwroot\controls\ucUrunler.ascx    Line: 1

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.controls_ucurunler_ascx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in d:\hostingspaces\seckinl1\seckinli.com.tr\wwwroot\controls\ucUrunler.ascx:1
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +270
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +14
   System.Web.UI.Control.Render(HtmlTextWriter writer) +12
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +67
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +101
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +27
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +129
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +14
   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +67
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +101
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +27
   ASP.default_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in d:\hostingspaces\seckinl1\seckinli.com.tr\wwwroot\Default.aspx:1
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +270
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +14
   System.Web.UI.Page.Render(HtmlTextWriter writer) +30
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +67
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +101
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +27
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1342


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