YAFLogo

guest
  • guest
  • Guest Topic Starter
11 years ago
Hello,

I would like to use YAF for a World of Warcraft Guild project written in ASP.Net. I am totally new to YAF and got some good basics in ASP.Net and C# language.

I get 1.9.5 RTW source code and opened Yaf source code solution, then renamed solution and added one more project inside that contain my asp.net website. Then changed startup project to my asp.net site and startup file to Default.aspx.

Cause it will be a World of Warcraft Guild, i will need to change some parameters for registering, adding character class, races and some specification, I am free to post the work I will do for the community after it will be done.

I have tried a standart installation in IIS7 to be familiar with binary files. I am looking now to use YAF sources in my solution, be able to compile it and use YAF as a control by using masterpage in my asp.Net project.

Because i didn't see any documentation on the wiki to install from source code and i saw somewhere that the wiki to install and integrate YAF as a service is obsolete, I got some questions.

Here's my questions :

1. How to compile ?

2. How to use YAF as a service while using masterpages to integrate inside the website ?

(i saw a post with code for master and default page, but that code seem to be old and return errors).

Thanks for informations.

Sponsor

squirrel
11 years ago
Originally Posted by: eKyNox 

Hello,

I would like to use YAF for a World of Warcraft Guild project written in ASP.Net. I am totally new to YAF and got some good basics in ASP.Net and C# language.

I get 1.9.5 RTW source code and opened Yaf source code solution, then renamed solution and added one more project inside that contain my asp.net website. Then changed startup project to my asp.net site and startup file to Default.aspx.

Cause it will be a World of Warcraft Guild, i will need to change some parameters for registering, adding character class, races and some specification, I am free to post the work I will do for the community after it will be done.

I have tried a standart installation in IIS7 to be familiar with binary files. I am looking now to use YAF sources in my solution, be able to compile it and use YAF as a control by using masterpage in my asp.Net project.

Because i didn't see any documentation on the wiki to install from source code and i saw somewhere that the wiki to install and integrate YAF as a service is obsolete, I got some questions.

Here's my questions :

1. How to compile ?

2. How to use YAF as a service while using masterpages to integrate inside the website ?

(i saw a post with code for master and default page, but that code seem to be old and return errors).

Thanks for informations.

You will need Visual Studio 2010 Express Edition to compile the solution. Since you are going from the source, I would recommend getting your code from the SVN instead of the source package (but this is a personal recommendation only) - mainly because there are a ton of bugfixes already into the SVN from 1.9.5 We are running an SVN build on our site as we speak.

To cover question number two is beyond my knowledge, but step one will take a little work to get past so I wanted to get you that information quickly :)


If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 
squirrel
11 years ago
AS A NOTE to my above post, Jaben has let me know that there are issues in the SVN trunk in the newer versions --we are currently at 4300 on our site. He noted that versions above that have problems that are still being addressed - so if you do go with source, you may want to work with the 1.9.5 source package from codeplex for the time being --
If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 
Reonekot
11 years ago
Originally Posted by: squirrel 

AS A NOTE to my above post, Jaben has let me know that there are issues in the SVN trunk in the newer versions --we are currently at 4300 on our site. He noted that versions above that have problems that are still being addressed - so if you do go with source, you may want to work with the 1.9.5 source package from codeplex for the time being --

I was looking to build from SVN as well (because of the fixes to mail notifications since 1.9.5) and from the looks of it rev. 4300 should be pretty safe to use? Or are you having problems with that rev.?

(Sorry for OT)

squirrel
11 years ago
Originally Posted by: Reonekot 

Originally Posted by: squirrel 

AS A NOTE to my above post, Jaben has let me know that there are issues in the SVN trunk in the newer versions --we are currently at 4300 on our site. He noted that versions above that have problems that are still being addressed - so if you do go with source, you may want to work with the 1.9.5 source package from codeplex for the time being --

I was looking to build from SVN as well (because of the fixes to mail notifications since 1.9.5) and from the looks of it rev. 4300 should be pretty safe to use? Or are you having problems with that rev.?

(Sorry for OT)

The only thing that we've found on our site so far at 4300 is thanks feature is broken again -- other than that - we see pretty stable on our site. Notifications are working (PMs and Topics), many UI features working, and so forth. But I am still exploring it to be honest. Our event logs are pretty calm (less than a page of events errors vs. pages a day with earlier revisions) -- we have a pretty active forum at this point and our members are pretty good at exploring and finding issues - so if I run into anything, we report it to the bug-tracker - but so far it seems to be pretty smooth - if thanks was working I would think it would be a candidate for 1.9.5.1 but I am not a developer and don't know the inside workings near as much as they do :)


If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 
Reonekot
11 years ago
Originally Posted by: squirrel 

Originally Posted by: Reonekot 

Originally Posted by: squirrel 

AS A NOTE to my above post, Jaben has let me know that there are issues in the SVN trunk in the newer versions --we are currently at 4300 on our site. He noted that versions above that have problems that are still being addressed - so if you do go with source, you may want to work with the 1.9.5 source package from codeplex for the time being --

I was looking to build from SVN as well (because of the fixes to mail notifications since 1.9.5) and from the looks of it rev. 4300 should be pretty safe to use? Or are you having problems with that rev.?

(Sorry for OT)

The only thing that we've found on our site so far at 4300 is thanks feature is broken again -- other than that - we see pretty stable on our site. Notifications are working (PMs and Topics), many UI features working, and so forth. But I am still exploring it to be honest. Our event logs are pretty calm (less than a page of events errors vs. pages a day with earlier revisions) -- we have a pretty active forum at this point and our members are pretty good at exploring and finding issues - so if I run into anything, we report it to the bug-tracker - but so far it seems to be pretty smooth - if thanks was working I would think it would be a candidate for 1.9.5.1 but I am not a developer and don't know the inside workings near as much as they do :)

Thanks. Think I will give rev. 4300 a go as well. (Not using Thanks feature anyway.)
guest
  • guest
  • Guest Topic Starter
11 years ago
Using already VS2010, just don't know how to compile project cause it says i have to use that with a startup project and that it can't be start directly. It says also that i have to add a project to the solution that reference dll project itself.

OkAy for svn, actually staying with codeplex source code.

Any example for using it with masterpages once compiled ?

Thanks anyway.

guest
  • guest
  • Guest Topic Starter
11 years ago
http://forum.yetanotherforum.net/yaf_postst4465_YAF-and-masterpages.aspx 

Generation is impossible and if I put directly the code inside IIS7, it returns :

Quote:

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0246: The type or namespace name 'yaf' could not be found (are you missing a using directive or an assembly reference?)

Source Error:

Line 1: <%@ Page Title="Accueil" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="DeathBlow.Default" %>

Line 2: <%@ Register TagPrefix="yaf" Namespace="yaf" Assembly="yaf" %>

Line 3: <%@ Register TagPrefix="yc" Namespace="yaf.controls" Assembly="yaf" %>

Line 4:

Source File: c:\inetpub\wwwroot\Default.aspx Line: 2

Here is the code for the masterpage :

Quote:

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="DeathBlow.Site" %>

And Default.aspx :

Quote:

<%@ Page Title="Accueil" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="DeathBlow.Default" %>

<%@ Register TagPrefix="yaf" Namespace="yaf" Assembly="yaf" %>

<%@ Register TagPrefix="yc" Namespace="yaf.controls" Assembly="yaf" %>

- Yaf installed on ~/Yaf

- Yaf original default.aspx web page inside ~/ root location works correctly and display forum

- Bin, App_Code, App_Browsers, *.config files moved from ~/Yaf to ~/

- The only problem appear with masterpages

Thanks for help please.

squirrel
11 years ago
I believe the "The type or namespace name 'yaf' could not be found " is an error relating to your web.config - there is another topic around here with exactly that title - don't have the link handy though.

When compiling YAF forum, you will usually only "publish" the YetAnotherForum.NET section, which would compile the YAF dlls and all the webfiles needed to run the forum - not sure if there are differences when setting up to do masterpages.


If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 
guest
  • guest
  • Guest Topic Starter
11 years ago
Ok, i suppose having Yaf forum installed at the root could help me in my pages getting YAF namespace, right ?

If yes, well, I will move Yaf files to root ~/

Trying it.

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
11 years ago
Did you merge the YAF web.config with your master page? If not your integration will never work.