Repository navigation
Web.Config changes
Note
Only needed when you upgrade a YAF.NET v2 forum to v3. The migration tool makes these changes for you; this page lists them for manual changes. See Upgrade an existing installation.
Remove the node:
<roleManager ....>
<providers>
...
</providers>
</roleManager>Remove the node:
<profile ...>
<providers>
...
</providers>
</profile>
Add the node:
</system.web>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="bin" />
<dependentAssembly>
<assemblyIdentity name="System.Diagnostics.DiagnosticSource" publicKeyToken="CC7B13FFCD2DDD51" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" />
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Bcl.AsyncInterfaces" publicKeyToken="cc7b13ffcd2ddd51"/>
<bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-4.2.3.0" newVersion="4.2.3.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Owin.Security" publicKeyToken="31bf3856ad364e35" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-4.2.3.0" newVersion="4.2.3.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Extensions.Primitives" publicKeyToken="ADB9793829DDAE60" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-6.0.3.0" newVersion="6.0.3.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51"/>
<bindingRedirect oldVersion="0.0.0.0-4.2.4.0" newVersion="4.2.4.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Memory" culture="neutral" publicKeyToken="cc7b13ffcd2ddd51" />
<bindingRedirect oldVersion="0.0.0.0-4.0.5.0" newVersion="4.0.5.0" />
</dependentAssembly>
<dependentAssembly xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity name="System.Buffers" culture="neutral" publicKeyToken="CC7B13FFCD2DDD51" />
<bindingRedirect oldVersion="0.0.0.0-4.0.5.0" newVersion="4.0.5.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<system.webServer>Remove the line:
<add name="TaskModule" type="YAF.Core.TaskModule, YAF.Core" />Remove the line:
<remove name="TaskModule" />Remove the line:
<add name="TaskModule" type="YAF.Core.TaskModule, YAF.Core" preCondition="managedHandler" />Remove the line:
<add namespace="YAF.Utils" />Remove:
<authentication mode="Forms">
<forms name=".YAFNET_Authentication" protection="All" timeout="43200" cookieless="UseCookies" />
</authentication>The membership settings must be moved to the appSettings section in the app.config. Without them, users can't log in with their old passwords.
The line:
<membership defaultProvider="YafMembershipProvider" hashAlgorithmType="SHA1">becomes in the app.config:
<add key="YAF.LegacyMembershipHashAlgorithmType" value="SHA1" />and
<add connectionStringName="yafnet" applicationName="YAF.NET" name="YafMembershipProvider"
requiresUniqueEmail="true" hashCase="Upper" hashHex="true" type="YAF.Providers.Membership.YafMembershipProvider"
enablePasswordReset="true" useSalt="true" requiresQuestionAndAnswer="false"
/>becomes in the app.config:
<add key="YAF.LegacyMembershipPasswordFormat" value="Hashed" />
<add key="YAF.LegacyMembershipHashCase" value="Upper" />
<add key="YAF.LegacyMembershipHashHex" value="true" />After that, remove the entire <membership> node.
When you later upgrade to v4, these keys move to the BoardConfiguration section of the appsettings.json, see Upgrade to YAF.NET v4.
YetAnotherForum.NET (YAF) the Open Source Discussion Forum for ASP.NET - https://YetAnotherForum.NET - Support me on Ko-fi
Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
Getting started
- About YAF.NET
- Features
- Docker
- Installation (IIS)
- Hosting on Linux with nginx
- Integration (ASP.NET Core)
- Upgrade to v4
Configuration
Administration
Help
Development
Legacy (v3 and older)