Hello,
Any now and then I get an error like this:
InnerException: DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'Id_FC'.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Web.UI.DataBinder.GetPropertyValue
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'Id_FC'. ---> System.Web.HttpException: DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'Id_FC'. at System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName) at System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName, String format) at System.Web.UI.WebControls.ListControl.PerformDataBinding(IEnumerable dataSource) at System.Web.UI.WebControls.ListControl.PerformSelect() at AGSIS.FCforma.Page_Load(Object sender, EventArgs e) in E:\Inetpub\dnn_2\DesktopModules\AGSIS\FCforma.ascx.cs:line 21 at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
This is very strange because my application works, let's say 95% of the time correctly, except these errors (let's say 5%).
In ascx.cs at line 21: ddFacultateCiclu.DataBind();
while the ddFacultate is like this:
<asp:DropDownList ID="ddFacultateCiclu" runat="server" AutoPostBack="True" DataSourceID="sqlDSFacultateCiclu" DataTextField="Denumire" DataValueField="Id_FC" OnSelectedIndexChanged="ddFacultateCiclu_SelectedIndexChanged" Width="100%">
</asp:DropDownList>
<asp:SqlDataSource ID="sqlDSFacultateCiclu" runat="server" ConnectionString="<%$ ConnectionStrings:AGSISSqlServer %>" SelectCommand="FacultateCiclu_GetByFacultate" SelectCommandType="StoredProcedure" OnSelecting="sqlDSFacultateCiclu_Selecting">
<SelectParameters>
<asp:Parameter Name="ID_Facultate" Type="Int64" />
<asp:Parameter Name="ID_AnUniv" Type="Int64" />
</SelectParameters>
</asp:SqlDataSource>
Please note that the SP mentioned in the source returns the correct columns... Also, very strange, the DNN aplication works fine while my module(s) throw(s) errors. My modules get data from a separate database in the same instance of SQL Server 2005.
Plese help tracking down the source of errors...
Thank you,
Catalin