Server Error in '/' Application.

DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'PhotoName'.

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.Web.HttpException: DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'PhotoName'.

Source Error:


Line 33:                     </li>
Line 34:                     <div class="PhotoName">
Line 35:                         <strong><%# Server.HtmlEncode(Eval("PhotoName").ToString())%></strong>
Line 36:                     </div>
Line 37:                     <div class="PhotoDate">

Source File: c:\inetpub\vhosts\sikkimhrdd.org\httpdocs\GeneralSection\PhotoGallery.aspx    Line: 35

Stack Trace:


[HttpException (0x80004005): DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'PhotoName'.]
   System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName) +2963169
   System.Web.UI.DataBinder.Eval(Object container, String[] expressionParts) +89
   System.Web.UI.DataBinder.Eval(Object container, String expression) +99
   System.Web.UI.TemplateControl.Eval(String expression) +46
   ASP.generalsection_photogallery_aspx.__DataBind__control5(Object sender, EventArgs e) in c:\inetpub\vhosts\sikkimhrdd.org\httpdocs\GeneralSection\PhotoGallery.aspx:35
   System.Web.UI.Control.OnDataBinding(EventArgs e) +86
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +154
   System.Web.UI.Control.DataBind() +17
   System.Web.UI.Control.DataBindChildren() +187
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +164
   System.Web.UI.Control.DataBind() +17
   System.Web.UI.WebControls.DataList.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +138
   System.Web.UI.WebControls.DataList.CreateControlHierarchy(Boolean useDataSource) +659
   System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) +65
   System.Web.UI.WebControls.BaseDataList.DataBind() +84
   System.Web.UI.WebControls.BaseDataList.EnsureDataBound() +62
   System.Web.UI.WebControls.BaseDataList.CreateChildControls() +71
   System.Web.UI.Control.EnsureChildControls() +97
   System.Web.UI.Control.PreRenderRecursiveInternal() +42
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +906


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