-
Notifications
You must be signed in to change notification settings - Fork 217
Upgrade to YAF v4
Ingo edited this page Jan 10, 2026
·
8 revisions
Warning
If you want to Run the YAF ASP.NET Core application under IIS the ASP.NET Core Module/Hosting Bundle needs to be installed.
- BACKUP YOUR DATABASE
- Backup all your existing installation YAF files
- Remove the following directories from your forum root directory:
- _\App_Browsers:
- \Bin
- \Content
- \Controls
- \Dialogs
- \Install
- \languages
- \Pages
- \Resources
- \default.aspx
- \error.aspx
- \Global.aspx
- \UrlRewriter.aspx
- Unzip the file structure YAF-vX.X.X-Install ZIP archive to the folder you want to run YAF to run inside.
- Copy the
Imagesanduploadsfolder to thewwwrootfolder
The connection string, mail configuration and membership provider settings need to be migrated from the web.config to the appsettings.json file
- So the connection string from the web.config
<add name="yafnet" connectionString="data source=localhost;initial catalog=yafnet;Integrated Security=True" providerName="System.Data.SqlClient" />will be
{
"ConnectionStrings": {
"DefaultConnection": "data source=localhost;initial catalog=yafnet;Integrated Security=True;TrustServerCertificate=True;"
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"MailConfiguration": {
"Mail": "",
"Password": "",
"Host": "localhost",
"Port": 25
},
"BoardConfiguration": {
"GDPRControllerAddress": "",
"BoardID": 1,
"CategoryID": 0,
"ConnectionProviderName": "Microsoft.Data.SqlClient",
"DatabaseObjectQualifier": "yaf_",
"DatabaseOwner": "dbo",
"MultiBoardFolders": false,
"AllowLoginAndLogoff": true,
"SqlCommandTimeout": 99999,
"URLRewritingMode": "Unicode",
"UseHttpsRedirection": true
},
"AllowedHosts": "*"
}
- the Settings from the
mailSettings/Smtpare now underMailConfigurationin the appsettings.json - And the
appSettingsare now underBoardConfiguration
- When the Application runs after the files are copied to the server, then the Database will be updated automatically.
YetAnotherForum.NET (YAF) the Open Source Discussion Forum for ASP.NET - https://YetAnotherForum.NET
Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved