Viewing second YAF board on same webhost as a member giving exception "user isn't registered"
If you use Yet Another Forum.NET 1.9.1.8 (YAF) and set multiple boards on the same host, members have to logout from one board in order to login into another board. Otherwise exception "user isn't registered" is raised.
Here is the stack:
Line 232: {
Line 233: if(User.IsAuthenticated)
Line 234: throw new ApplicationException(string.Format("User '{0}' isn't registered.",User.Name));
Line 235: else
Line 236: throw new ApplicationException("Failed to find guest user.";
Stack Trace:
[ApplicationException: User 'test' isn't registered.]
yaf.pages.ForumPage.ForumPage_Load(Object sender, EventArgs e) in c:\YAFForum\pages\ForumPage.cs:234
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Page.ProcessRequestMain() +750
It seems that Board 1 sets an authenticated cookie and Board 2 reads that cookie, finds the member's name, but then can't resolve it since there is no such a member in that database. First you need to check whether the <forms> authentication tags are the same (same cookie name) in the web.config files. If same, try different authentication form names. See the following example:
Code:application ./web.config
<!--must include authentication-->
<authentication mode="Forms">
<!--<forms name=".YAFNET_Authentication" timeout="525600" />-->
</authentication>
forum 1, default.config
<authentication mode="Forms">
<forms name=".YAFNET_Authentication1" timeout="525600" />
</authentication>
forum 2, default.config
<authentication mode="Forms">
<forms name=".YAFNET_Authentication2" timeout="525600" />
</authentication>
forum 3, default.config
<authentication mode="Forms">
<forms name=".YAFNET_Authentication3" timeout="525600" />
</authentication>