Greetings all,

i am running into the following error when calling YAF inside of Sitecore, 

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Unknown server tag 'YAF:Forum'.

Source Error:

Line 18: <img src="~/images/YAFLogo.jpg" runat="server" alt="YetAnotherForum" id="imgBanner" /><br/>
Line 19: <form id="form1" runat="server" enctype="multipart/form-data">
Line 20: <YAF:Forum runat="server" ID="forum"></YAF:Forum>
Line 21: </form>
Line 22: </body>

Source File: /yaf/default.aspx Line: 20

The .sln has the following:

<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" %>
<script runat="server">
public void Page_Error( object sender, System.EventArgs e )
Exception x = Server.GetLastError();
YAF.Classes.Data.DB.eventlog_create( YafContext.Current.PageUserID, this, x );
YAF.Classes.Utils.CreateMail.CreateLogEmail( x );
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<head id="YafHead" runat="server">
<meta name="Description" content="A bulletin board system written in ASP.NET" />
<meta name="Keywords" content="Yet Another, Forum, ASP.NET, BB, Bulletin Board, opensource" />
<title>This title is overwritten</title>
<img src="~/images/YAFLogo.jpg" runat="server" alt="YetAnotherForum" id="imgBanner" /><br/>
<form id="form1" runat="server" enctype="multipart/form-data">
<YAF:Forum runat="server" ID="forum"></YAF:Forum>

There is an error on YafContext ... it keeps saying "YafContext does not exist in current context ... also <YAF:Forum is underlined ... unrecognized tag

There is a folder that has the following objects in the solution:

App_Code >> YAF >> Modules >> Web References >> forum.cs, ForumEditor.cs, RssFeed.cs

if someone could help me modify the code, i will be very appreciative.
Thank you in advance

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