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:					<option value=0>All Scrapbooks</option>
Line 182:					<% 
Line 183:					for (int i=0; i<dsData_Themes.Tables[0].Rows.Count; i++) 
Line 184:					{ 
Line 185:						dr = dsData_Themes.Tables[0].Rows[i]; 

Source File: c:\websites\WebSite_ScrapbookFlair\sf_prod_2010\gallery.aspx    Line: 183

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.gallery_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\websites\WebSite_ScrapbookFlair\sf_prod_2010\gallery.aspx:183
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +116
   ScrapbookFlairWeb.gallery.Render(HtmlTextWriter writer) +47
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +78
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8752


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