Server Error in '/' Application.

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

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

Source Error:


Line 66:         ddl.DataTextField = "CompDesc";
Line 67:         ddl.DataValueField = "DescId";
Line 68:         ddl.DataBind();
Line 69:         ddl.Items.Insert(0, new ListItem("-Select Problem-", ""));
Line 70:     }

Source File: c:\inetpub\vhosts\aquagrandservices.com\httpdocs\App_Code\Helper.cs    Line: 68

Stack Trace:


[HttpException (0x80004005): DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'CompDesc'.]
   System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName) +3950422
   System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName, String format) +36
   System.Web.UI.HtmlControls.HtmlSelect.OnDataBinding(EventArgs e) +381
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +178
   Helper.FillAllProblems(HtmlSelect ddl) in c:\inetpub\vhosts\aquagrandservices.com\httpdocs\App_Code\Helper.cs:68
   services_in_area.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\aquagrandservices.com\httpdocs\services_in_area.aspx.cs:17
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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