When i run two forums in one application i found the foliwing error.
The situation:
*) One App
*) Forum at /Forum/
*) Forum at /Projects/
*) Every three directory has in own web.config - one in / directory with connection string etc, and two in folders with app settings like BoardId and BaseUrl.
Parameter BaseUrl from config was cached incorrectly: it was mined on forum what first started and remembered for all instances. If i first start /Projects/ for example, all links in /Forum/ have /projects/ in path also, but this wrong.
i fix it by editing UrlBuilder.cs, change property get to
Code: static public string BaseUrl
{
get
{
return WebConfigurationManager.AppSettings["BaseUrl"];
}
}
It works, but i think this wrong way becouse we lost cache and architecture when go away from YAF.Classes.Config.
After this change instances works fine.