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 181:				// sb.Append("<div class='col-md-3 col-xs-12'>");
Line 182:				sb.Append("<div class='news-item'>");
Line 183:				sb.Append("<a href='" + (entity.IsNoClick.ToString() == "True" ? "#" : (entity.Link.ToString() != "" ? entity.Link.ToString() : ("/" + LangCode + "/" + yol(CommonHelper.IsInt(entity.PageID.ToString())) + "/" + entity.Path))) + "' class='news-img-link'>");
Line 184:				sb.Append("<div class='news-item-img'>");
Line 185:				sb.Append("<img class='img-responsive' src='" + (!string.IsNullOrEmpty(entity.Picture1.ToString()) ? "/thumbnail2.ashx?Type=Services&folder=" + entity.ServiceCateory + "&width=300&height=300&url=" + entity.Picture1 : "/assets/upload/noImageUser2.png") + "' alt='blog image'>");

Source File: c:\inetpub\vhosts\besiktasyereltarih.com\httpdocs\UserControls\General\DetailTema.ascx.cs    Line: 183

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   UserControls_General_DetailTema.BindRelatedServices(Int32 langID, String relatedServices) in c:\inetpub\vhosts\besiktasyereltarih.com\httpdocs\UserControls\General\DetailTema.ascx.cs:183
   UserControls_General_DetailTema.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\besiktasyereltarih.com\httpdocs\UserControls\General\DetailTema.ascx.cs:159
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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