Getting dynamic properties in masterpage

Vote:
 

Hi!

I try in the masterpage get dynamic properties. This works fine most of the time, but we can see in the error logs that once or twice per day we se that the dynamic property is not returned. Has anybody been experiencing this before? The traffic to the site is quite large, so I would gues that this happens around once in 1000 or more times.

Below you'll find the code from MasterPage.Master.cs that we use

protected void Page_Load(object sender, EventArgs e) {    PageBase page = (PageBase)Page;    PageData startPage = DataFactory.Instance.GetPage(page.CurrentPage["StartPage"] as PageReference);
... etc.
}
#20534
Jun 04, 2008 12:53
Vote:
 

Hi,

Why dynamic property? If the property is the same for all pages I would put the property in the startpage or at the site root as described in this article, http://www.epiforum.net/Codepages/Avoid-dynamic-properties-when-possible/

--Per

#20538
Jun 04, 2008 13:16
Vote:
 
True, that solution is better. My problem however is that it fails to read the property on some occasions.
#20540
Jun 04, 2008 13:32
Vote:
 

ok, does it fail to read just Dynamic properties or the regular once too?

Maybe start EPiServers logging at debug level could help to find the root cause, (faq: http://world.episerver.com/FAQ/Items/How-do-I-create-a-log-in-EPiServer/)

 

#20542
Jun 04, 2008 13:38
Vote:
 

Could it be that someone is looking at the page from inside the waste basket? :-)

#20559
Jun 04, 2008 16:43