ServerControl randomly null
<p>I got a master page with a server control in it. Randomly the server control is inaccessible from codebehind. This doesn't happen on a specific action (eg a Button click or so). Currently I have no clue what this could be. I don't <em>think</em> it's output caching since this is not explcitly activated and the error happens far to seldom for that. But I'm going to disable caching in the master page explicitly with next deployment.</p>

<p>Anyone an idea how to find more info to find what's happening? Or has someone had a similar error?</p>

<p>The control is defined in markup. The accompaning codebehind is:</p>

<pre><code>PGFMainNavi.HasAccessToFunction = HasAccessToNaviItem;
// HasAccessToNavi is a local function
</code></pre>

<p>Exception is:</p>

<pre><code>System.NullReferenceException: Object reference not set to an instance 
of an object
</code></pre>

<p>Thanks.</p>

<p>sa</p>
