YAFLogo

CliffAgius
  • CliffAgius
  • 55.4% (Neutral)
  • YAF Forumling Topic Starter
5 years ago
Hi All,

I have just installed on an Azure WebApp and completed the set-up as per the instructions including running the wizard etc and all seemed well but after this I am getting the following error.

Any Help please.

Server Error in '/' Application.
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 25:     </asp:HyperLink>
Line 26:     <form id="form1" runat="server" enctype="multipart/form-data">
Line 27:     <YAF:Forum runat="server" ID="forum" Popup="true">
Line 28:     </YAF:Forum>
Line 29:     </form>

Source File: /Default.aspx    Line: 27 
Sponsor
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.1 BETA
5 years ago
Are you using the included recommended web.configs?
CliffAgius
  • CliffAgius
  • 55.4% (Neutral)
  • YAF Forumling Topic Starter
5 years ago
Yes as per the instructions I renamed the Recommended-Azure.web.config and put in the Machine key and SMTP settings.

The install part works perfect it's just clicking the Finish button at the end gives this error.

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.1 BETA
5 years ago
Which version are you using? can you post the default.aspx you are using?
CliffAgius
  • CliffAgius
  • 55.4% (Neutral)
  • YAF Forumling Topic Starter
5 years ago
Hi and thanks for the help.

I am using the files as downloaded from the website with no changes but here is the default.aspx file you request.

<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" Inherits="YAF.ForumPageBase" MaintainScrollPositionOnPostback="true" %>

<script runat="server">
</script>
<!doctype html>
<html lang="en">
<head id="YafHead" runat="server">
     <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <meta id="YafMetaScriptingLanguage" http-equiv="Content-Script-Type" runat="server"
        name="scriptlanguage" content="text/javascript" />
    <meta id="YafMetaStyles" http-equiv="Content-Style-Type" runat="server" name="styles"
        content="text/css" />
    <meta id="YafMetaDescription" runat="server" name="description" content="Yet Another Forum.NET -- A bulletin board system written in ASP.NET" />
    <meta id="YafMetaKeywords" runat="server" name="keywords" content="Yet Another Forum.net, Forum, ASP.NET, BB, Bulletin Board, opensource" />
    <link rel="apple-touch-icon" sizes="180x180" href="~/Content/apple-touch-icon.png" runat="server" />
    <link rel="icon" type="image/png" sizes="32x32" href="~/Content/favicon-32x32.png" runat="server" />
    <link rel="icon" type="image/png" sizes="16x16" href="~/Content/favicon-16x16.png" runat="server" />
    <link rel="manifest" href="~/Content/site.webmanifest" runat="server" />
    <title></title>
</head>
<body id="YafBody" runat="server">
    <asp:HyperLink runat="server" id="BannerLink" CssClass="forum-logo my-4" >
    </asp:HyperLink>
    <form id="form1" runat="server" enctype="multipart/form-data">
    <YAF:Forum runat="server" ID="forum" Popup="true">
    </YAF:Forum>
    </form>

</body>
</html>

Thanks

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.1 BETA
5 years ago
I assume you downloaded YAF 2.3.0 BETA1? You maybe should upgrade to BETA 2.

or try to add this line to the default.aspx

<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" 
Inherits="YAF.ForumPageBase" MaintainScrollPositionOnPostback="true" %>

<%@ Register TagPrefix="YAF" Assembly="YAF.Web" Namespace="YAF.Web.Controls" %>

<script runat="server">
</script>
<!doctype html>
<html lang="en">
<head id="YafHead" runat="server">
	 <meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta http-equiv="x-ua-compatible" content="ie=edge">
	<meta id="YafMetaScriptingLanguage" http-equiv="Content-Script-Type" 
runat="server"
		name="scriptlanguage" content="text/javascript" />
	<meta id="YafMetaStyles" http-equiv="Content-Style-Type" runat="server" 
name="styles"
		content="text/css" />
	<meta id="YafMetaDescription" runat="server" name="description" content="Yet
 Another Forum.NET -- A bulletin board system written in ASP.NET" />
	<meta id="YafMetaKeywords" runat="server" name="keywords" content="Yet 
Another Forum.net, Forum, ASP.NET, BB, Bulletin Board, opensource" />
	<link rel="apple-touch-icon" sizes="180x180" 
href="~/Content/apple-touch-icon.png" runat="server" />
	<link rel="icon" type="image/png" sizes="32x32" 
href="~/Content/favicon-32x32.png" runat="server" />
	<link rel="icon" type="image/png" sizes="16x16" 
href="~/Content/favicon-16x16.png" runat="server" />
	<link rel="manifest" href="~/Content/site.webmanifest" runat="server" />
	<title></title>
</head>
<body id="YafBody" runat="server">
	<asp:HyperLink runat="server" id="BannerLink" CssClass="forum-logo my-4" >
	</asp:HyperLink>
	<form id="form1" runat="server" enctype="multipart/form-data">
	<YAF:Forum runat="server" ID="forum" Popup="true">
	</YAF:Forum>
	</form>

</body>
</html>
CliffAgius
  • CliffAgius
  • 55.4% (Neutral)
  • YAF Forumling Topic Starter
5 years ago
@tha_watcha

Tried that and it still dosn't work now get:

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: Could not load file or assembly 'YAF.Web' or one of its dependencies. The system cannot find the file specified.

Source Error: 

Line 1:  <%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" Inherits="YAF.ForumPageBase" MaintainScrollPositionOnPostback="true" %>
Line 2:  
Line 3:  <%@ Register TagPrefix="YAF" Assembly="YAF.Web" Namespace="YAF.Web.Controls" %>
Line 4:  
Line 5:  <script runat="server">

Source File: /Default.aspx    Line: 3 
CliffAgius
  • CliffAgius
  • 55.4% (Neutral)
  • YAF Forumling Topic Starter
5 years ago
So I started from scratch with everything but this time used the download for the "YAF.NET v2.2.4.15 Sample Web Application" and this time went thru the Install screens and got to the end of adding adding a Board and got this error.

Server Error in '/' Application.
No candidates for a guest were found for the board 1.
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.Data.SqlClient.SqlException: No candidates for a guest were found for the board 1.
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.1 BETA
CliffAgius
  • CliffAgius
  • 55.4% (Neutral)
  • YAF Forumling Topic Starter
5 years ago
Hi.

I am still struggling with this, using the latest GitHub build works and runs but login always fails with password failed so got a new password via the recovery email and that failed as well.

So as I need a forum PDQ I downloaded and installed the Stable version and that had all sorts of nasty errors so binned that.

3rd time lucky I downloaded and used the Sample Web application version from the downloads section, all seemed to work the DB was built and then get the same error of

No candidates for a guest were found for the board 1.

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.Data.SqlClient.SqlException: No candidates for a guest were found for the board 1.

SO my question is that the forum I am writing this on clearly works and there are no issues so I must be doing something wrong here, I am just trying to run it locally for now with the DB in Azure.

Any ideas?

Thanks Cliff.

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.1 BETA
5 years ago
Well i can't really help anymore since i don't have an option to test this on azure. But did you select as recommended on github. Standard DB on Azure or Basic DB?
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.1 BETA
5 years ago
Atleast the install issue is fixed in BETA 4