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 235:    protected void lvBulletins_DataBound(object sender, EventArgs e)
Line 236:    {
Line 237:        if (Constants.DBGetResults(sdsBulletins.SelectCommand).Rows.Count <= dpBulletins.PageSize)
Line 238:            divPager.Visible = false;
Line 239:        else

Source File: c:\inetpub\vhosts\persianpetco.com\httpdocs\Bulletins.aspx.cs    Line: 237

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   _BulletinsDefault.lvBulletins_DataBound(Object sender, EventArgs e) in c:\inetpub\vhosts\persianpetco.com\httpdocs\Bulletins.aspx.cs:237
   System.Web.UI.WebControls.BaseDataBoundControl.OnDataBound(EventArgs e) +103
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +260
   System.Web.UI.WebControls.ListView.PerformSelect() +73
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +81
   System.Web.UI.WebControls.ListView.CreateChildControls() +73
   System.Web.UI.Control.EnsureChildControls() +145
   System.Web.UI.Control.PreRenderRecursiveInternal() +60
   System.Web.UI.Control.PreRenderRecursiveInternal() +223
   System.Web.UI.Control.PreRenderRecursiveInternal() +223
   System.Web.UI.Control.PreRenderRecursiveInternal() +223
   System.Web.UI.Control.PreRenderRecursiveInternal() +223
   System.Web.UI.Control.PreRenderRecursiveInternal() +223
   System.Web.UI.Control.PreRenderRecursiveInternal() +223
   System.Web.UI.Control.PreRenderRecursiveInternal() +223
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3393


Version Information: Microsoft .NET Framework Version:2.0.50727.9174; ASP.NET Version:2.0.50727.9175