CliffAgius
  • Posts: 9
  • Joined: 01/09/2019
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
  • Posts: 4133
  • Joined: 06/03/2010
Are you using the included recommended web.configs?
UserPostedImage
CliffAgius
  • Posts: 9
  • Joined: 01/09/2019
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
  • Posts: 4133
  • Joined: 06/03/2010
Which version are you using? can you post the default.aspx you are using?
UserPostedImage
CliffAgius
  • Posts: 9
  • Joined: 01/09/2019
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
  • Posts: 4133
  • Joined: 06/03/2010
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>

UserPostedImage
CliffAgius
  • Posts: 9
  • Joined: 01/09/2019
@  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
  • Posts: 9
  • Joined: 01/09/2019
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
  • Posts: 4133
  • Joined: 06/03/2010
CliffAgius
  • Posts: 9
  • Joined: 01/09/2019
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

Quote:

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
  • Posts: 4133
  • Joined: 06/03/2010
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?
UserPostedImage
tha_watcha
  • Posts: 4133
  • Joined: 06/03/2010
Atleast the install issue is fixed in BETA 4
UserPostedImage
Users browsing this topic
    Forum Jump  
    • You cannot post new topics in this forum.
    • You cannot reply to topics in this forum.
    • You cannot delete your posts in this forum.
    • You cannot edit your posts in this forum.
    • You cannot create polls in this forum.
    • You cannot vote in polls in this forum.

    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