Ken1972
  •  Ken1972
  • 80.6% (Honored)
  • YAF Lover Topic Starter
2010-07-09T14:02:59Z
Gang,

its beyond me why my forum is not loading. I was adding banners ads to my forum last night....about 16 rotating and then this morning I added one more then all of a sudden I recieve this error:
"There has been a serious error loading the forum. No further information is available.
Please contact the administrator if this message persists."

I then undo the change, upload the original file and still see the same error. Mind boggling😕

So, to hopefully fix this problem is it possible to start from scratch and just upload the original default.aspx file?....
Sponsor
Ken1972
  •  Ken1972
  • 80.6% (Honored)
  • YAF Lover Topic Starter
2010-07-09T14:36:29Z
Below is the code for the Default.aspx file. At least I believe this is the code. Could some please confirm this is the original code that makes up the default.aspx file? Thank You.


<%@ Control Language="c#" CodeFile="forum.ascx.cs" AutoEventWireup="True" Inherits="YAF.Pages.forum" %>
<%@ Register TagPrefix="YAF" TagName="ForumList" Src="../controls/ForumList.ascx" %>
<%@ Register TagPrefix="YAF" TagName="ForumWelcome" Src="../controls/ForumWelcome.ascx" %>
<%@ Register TagPrefix="YAF" TagName="ForumIconLegend" Src="../controls/ForumIconLegend.ascx" %>
<%@ Register TagPrefix="YAF" TagName="ForumStatistics" Src="../controls/ForumStatistics.ascx" %>
<%@ Register TagPrefix="YAF" TagName="ForumActiveDiscussion" Src="../controls/ForumActiveDiscussion.ascx" %>
<YAF:PageLinks runat="server" ID="PageLinks" />
<YAF:ForumWelcome runat="server" ID="Welcome" />


<div class="DivTopSeparator"></div>
<asp:UpdatePanel ID="UpdatePanelCategory" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
        <asp:Repeater ID="CategoryList" runat="server">
            <HeaderTemplate>

                <table class="content" cellspacing="1" cellpadding="0" width="100%">
                    <tr>
                        <td class="header1" width="1%">
                            &nbsp;</td>
                        <td class="header1" align="left">
                            <YAF:LocalizedLabel ID="ForumHeaderLabel" runat="server" LocalizedTag="FORUM" />
                        </td>
                        <td class="header1" align="center" width="15%" runat="server" visible="<%# PageContext.BoardSettings.ShowModeratorList %>">
                            <YAF:LocalizedLabel ID="ModeratorsHeaderLabel" runat="server" LocalizedTag="MODERATORS" />
                        </td>
                        <td class="header1" align="center" width="4%">
                            <YAF:LocalizedLabel ID="TopicsHeaderLabel" runat="server" LocalizedTag="TOPICS" />
                            
                        </td>
                        <td class="header1" align="center" width="4%">
                            <YAF:LocalizedLabel ID="PostsHeaderLabel" runat="server" LocalizedTag="POSTS" />
                        </td>
                        <td class="header1" align="center" width="25%">
                            <YAF:LocalizedLabel ID="LastPostHeaderLabel" runat="server" LocalizedTag="LASTPOST" />
                        </td>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td class="header2" colspan="<%# (PageContext.BoardSettings.ShowModeratorList ? "6" : "5" ) %>">
                        <YAF:CollapsibleImage ID="CollapsibleImage" runat="server" BorderWidth="0" ImageAlign="Bottom"
                            PanelID='<%# "categoryPanel" + DataBinder.Eval(Container.DataItem, "CategoryID").ToString() %>' AttachedControlID="forumList" OnClick="CollapsibleImage_OnClick"/>
                        </asp:ImageButton>

                        &nbsp;&nbsp; <a href='<%# YAF.Classes.Utils.YafBuildLink.GetLink(YAF.Classes.Utils.ForumPages.forum,"c={0}",DataBinder.Eval(Container.DataItem, "CategoryID")) %>'>
                            <%# DataBinder.Eval(Container.DataItem, "Name") %>
                        </a>
                    </td>


   
            </tr>

                <YAF:ForumList runat="server" Visible="true" ID="forumList" DataSource='<%# ((System.Data.DataRowView)Container.DataItem).Row.GetChildRows("FK_Forum_Category") %>' />


            </ItemTemplate>
            <FooterTemplate>
                <tr>

                    <td colspan="<%# (PageContext.BoardSettings.ShowModeratorList ? "6" : "5" ) %>" align="right" class="footer1">
                        <asp:LinkButton runat="server" OnClick="MarkAll_Click" ID="MarkAll" Text='<%# GetText("MARKALL") %>' />

                        <span id="RSSLinkSpacer" runat="server" visible='<%# PageContext.BoardSettings.ShowRSSLink %>'>
                            |</span>
                        <asp:HyperLink ID="RssFeed" runat="server" NavigateUrl='<%# YafBuildLink.GetLinkNotEscaped( ForumPages.rsstopic, "pg=forum" ) %>'
                            Visible='<%# PageContext.BoardSettings.ShowRSSLink %>'><%# GetText( "RSSFEED" ) %></asp:HyperLink>
                    </td>
                </tr>
                </table>
            </FooterTemplate>
        </asp:Repeater>
    </ContentTemplate>
</asp:UpdatePanel>
<br />
<YAF:ForumActiveDiscussion ID="ActiveDiscussions" runat="server" OnNeedDataBind="OnNeedDataBind" />
<br />
<YAF:ForumStatistics ID="ForumStats" runat="Server" OnNeedDataBind="OnNeedDataBind" />
<YAF:ForumIconLegend ID="IconLegend" runat="server" />
<div id="DivSmartScroller">
    <YAF:SmartScroller ID="SmartScroller1" runat="server" />
</div>



Ken1972
  •  Ken1972
  • 80.6% (Honored)
  • YAF Lover Topic Starter
2010-07-09T15:41:32Z
Gang,

I think I saved the forum.aspx code in the default.aspx file by accident. This is what i think may of happened.

I have no back default.aspx file. Is it possible to get the original default.aspx that came with the forum?
tha_watcha
2010-07-09T16:16:16Z
Download the bin package or source package from sourceforge and extract the default.aspx

http://sourceforge.net/projects/yafdotnet/files/ 
UserPostedImage
Ken1972
  •  Ken1972
  • 80.6% (Honored)
  • YAF Lover Topic Starter
2010-07-09T16:25:50Z
YES !!!

That did it. Thank You for the quick reply.
Im a happy man again:)

Sincerely,

Ken

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved