Upgrade Installation

STEP 1. BACKUP & REMOVE

  1. Backup all your existing installation YAF files remove the following directories from your forum root directory:
    • \bin
    • \classes
    • \controls
    • \defs
    • \editors
    • \install
    • \language
    • \pages
    • \template
    • \themes
    • \Web References
  2. Be careful not to delete the /images or /upload directory.
  3. BACKUP YOUR DATABASE

STEP 2. UNZIP

  1. Unzip the file structure YAF-BIN ZIP archive to the folder you want to run YAF to run inside. The YAF \Bin directory must be in your application root.

STEP 3. Upgrade - The WEB.CONFIG FILE

Please follow these important directions:

You need to MERGE the changes for the recommended-web.config or the v191-upgrade-web.config depending on the original web config you used.


IMPORTANT: Remove the Lines if you Upgrade to YAF Version >= 1.9.5.5

<add tagPrefix="DotNetAge" namespace="DNA.UI.JQuery" assembly="DNA.UI.JQuery"/>
<add tagPrefix="DotNetAge" namespace="DNA.UI" assembly="DNA"/>


<add tagPrefix="YAF" namespace="YAF.Classes.UI" assembly="YAF.Classes.UI"/>


<add tagPrefix="YAF" namespace="YAF.Classes.Utils" assembly="YAF.Classes.Utils"/>
<add tagPrefix="YAF" namespace="YAF.Classes.Core" assembly="YAF.Classes.Core"/>
<add tagPrefix="YAF" namespace="YAF.Classes.Data" assembly="YAF.Classes.Data"/>


<add namespace="YAF"/>
<add namespace="YAF.Classes.Utils"/>
<add namespace="YAF.Classes.Core"/>
<add namespace="YAF.Controls"/>
<add namespace="YAF.Classes.Data"/>


<add namespace="YAF.Classes.UI"/>

 

IMPORTANT: Update this following lines if you Upgrade to YAF Version >= 1.9.5.5

Change the Line from....

<add name="YafTaskModule" type="YAF.Classes.Core.YafTaskModule, YAF.Classes.Core"/>

to

<add name="YafTaskModule" type="YAF.Core.YafTaskModule, YAF.Core"/>

Change the Line from....

<add name="YafTaskModule" type="YAF.Classes.Core.YafTaskModule, YAF.Classes.Core" preCondition="managedHandler"/>

to

<add name="YafTaskModule" type="YAF.Core.YafTaskModule, YAF.Core" preCondition="managedHandler"/>

Change the Line from....

<profile enabled="true" defaultProvider="YafProfileProvider" inherits="YAF.Classes.Utils.YafUserProfile">

to

<profile enabled="true" defaultProvider="YafProfileProvider" inherits="YAF.Utils.YafUserProfile">

Change the Line from....

<add verb="POST,GET,HEAD" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro.2"/>

to

<add verb="GET" path="Resource.ashx" type="YAF.YafResourceHandler, YAF" />

Change the Line from....

<add name="AjaxPro" preCondition="integratedMode" verb="POST,GET,HEAD" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro.2" />

to

<add name="YafHandler" preCondition="integratedMode" verb="GET" path="Resource.ashx" type="YAF.YafResourceHandler, YAF" />


How to merging Web.Config Files:

  1. A tip to merge web.config files is to download both of them, then use a merge program to combine. WinMerge is a free and excellent merge program which you can download here: http://www.winmerge.org/

STEP 4. UPGRADE Wizard:

  1. Open the file <YAF.AppRoot>install/default.aspx on your web site. If you are testing on your local computer, under a directory called YetAnotherForum.Net, the address should be: http://localhost/yetanotherforum.net/install/
  2. The wizard will guide you through the upgrade process.

Last edited Jan 15, 2012 at 6:25 AM by tha_watcha, version 2