0
Answer

Error while another subforum

Antti

Antti

18y
2.4k
1

After i noticed the problem while viewing the forum, i tried to open the bug report subforum. Again, an exception was thrown:

Fill: SelectCommand.Connection property has not been initialized.

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.InvalidOperationException: Fill: SelectCommand.Connection property has not been initialized.

Source Error:

 

Line 89: 																	<asp:Label ID ="Label2" Runat =server text= '<%# DataBinder.Eval(Container.DataItem, "Post_RecentThreadDate") %>' CssClass ="ForumSmallText">
Line 90: 																	</asp:Label><br> by 
Line 91: 																	<asp:LinkButton ID ="Linkbutton1" CssClass="GridAuthorName" Runat =server Text = '<%#getRecentAuthorName(Container.DataItem)%>' CommandArgument ='<%# DataBinder.Eval(Container.DataItem, "Post_RecentThreadUser")%>' OnCommand ="LinkButtonAuthor_Command" >
Line 92: 																	</asp:LinkButton>
Line 93: 																</ItemTemplate>


Source File: E:\web\users\Forums\Default.aspx    Line: 91

Stack Trace:

 

[InvalidOperationException: Fill: SelectCommand.Connection property has not been initialized.]
   System.Data.Common.DbDataAdapter.GetConnection(IDbCommand command, String method) +40
   System.Data.Common.DbDataAdapter.FillFromCommand(Object data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +45
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +77
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) +38
   DatabaseLayer.Data.clsDatabase.RunProcedure(String sProcName, SqlParameter[] objaPrams, DataSet& objDataSet)
   Forums.Forums.Forums_Functions.GetRecentPosts(Int32 PostID)
   UI.Forum.DefaultForum.getRecentAuthorName(Object objDRView)
   ASP.Default_aspx.__DataBind__control32(Object sender, EventArgs e) in E:\web\users\Forums\Default.aspx:91
   System.Web.UI.Control.OnDataBinding(EventArgs e) +66
   System.Web.UI.Control.DataBind() +26
   System.Web.UI.Control.DataBind() +86
   System.Web.UI.Control.DataBind() +86
   System.Web.UI.WebControls.DataGrid.CreateItem(Int32 itemIndex, Int32 dataSourceIndex, ListItemType itemType, Boolean dataBind, Object dataItem, DataGridColumn[] columns, TableRowCollection rows, PagedDataSource pagedDataSource) +169
   System.Web.UI.WebControls.DataGrid.CreateControlHierarchy(Boolean useDataSource) +1408
   System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) +48
   System.Web.UI.WebControls.BaseDataList.DataBind() +23
   System.Web.UI.Control.DataBind() +86
   System.Web.UI.Control.DataBind() +86
   System.Web.UI.WebControls.DataGrid.CreateItem(Int32 itemIndex, Int32 dataSourceIndex, ListItemType itemType, Boolean dataBind, Object dataItem, DataGridColumn[] columns, TableRowCollection rows, PagedDataSource pagedDataSource) +169
   System.Web.UI.WebControls.DataGrid.CreateControlHierarchy(Boolean useDataSource) +1408
   System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) +48
   System.Web.UI.WebControls.BaseDataList.DataBind() +23
   UI.Forum.DefaultForum.bindData()
   UI.Forum.DefaultForum.Page_Load(Object sender, EventArgs e)
   System.Web.UI.Control.OnLoad(EventArgs e) +67
   System.Web.UI.Control.LoadRecursive() +35
   System.Web.UI.Page.ProcessRequestMain() +750

Also lots of out of memory exceptions... Is someone trying to crash your server, or what?