Server Error in '/' Application.

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

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 'VID'.

Source Error:


Line 515:	if (dtItems.Rows.Count > 0) {
Line 516:		DataListName.DataSource = dtItems;
Line 517:		DataListName.DataBind();
Line 518:	}
Line 519:	return dtItems;

Source File: e:\hostingspaces\vithya\en.nac.org.kh\wwwroot\App_Code\StartUp.cs    Line: 517

Stack Trace:


[HttpException (0x80004005): DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'VID'.]
   System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName) +2963169
   System.Web.UI.WebControls.DataList.CreateControlHierarchy(Boolean useDataSource) +582
   System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) +65
   System.Web.UI.WebControls.BaseDataList.DataBind() +84
   StartUp.BindToDataList(String SQLString, DataList DataListName) in e:\hostingspaces\vithya\en.nac.org.kh\wwwroot\App_Code\StartUp.cs:517
   SiteMaster.Video() in e:\hostingspaces\vithya\en.nac.org.kh\wwwroot\SiteMaster.master.cs:113
   SiteMaster.Page_Load(Object sender, EventArgs e) in e:\hostingspaces\vithya\en.nac.org.kh\wwwroot\SiteMaster.master.cs:37
   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.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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