<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tomblog &#187; Cache</title>
	<atom:link href="http://tomblog.insomniacminds.com/tag/cache/feed/" rel="self" type="application/rss+xml" />
	<link>http://tomblog.insomniacminds.com</link>
	<description>Rantings of an Insomniac Mind</description>
	<lastBuildDate>Sun, 31 Jul 2011 17:59:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>SharePoint Internals: Clearing Configuration Cache Caveat</title>
		<link>http://tomblog.insomniacminds.com/2008/07/30/sharepoint-internals-clearing-configuration-cache-caveat/</link>
		<comments>http://tomblog.insomniacminds.com/2008/07/30/sharepoint-internals-clearing-configuration-cache-caveat/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 20:46:28 +0000</pubDate>
		<dc:creator>Tombo</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Cache]]></category>
		<category><![CDATA[Internals]]></category>
		<category><![CDATA[Jobdefinition]]></category>
		<category><![CDATA[Registry]]></category>
		<category><![CDATA[Timerjob]]></category>

		<guid isPermaLink="false">http://tomblog.insomniacminds.com/?p=86</guid>
		<description><![CDATA[I&#8217;m pretty sure most of you have heard of the SharePoint Cache. This is a directory full of cached objects, nicely wrapped in XML. Sometimes however this cache can become corrupted. A great example of this occurs when developing SPJobDefinitions (TimerJobs for SharePoint). These definitions use this cache, so everytime you deploy new versions of [...]]]></description>
			<content:encoded><![CDATA[<div class="mceTemp">I&#8217;m pretty sure most of you have heard of the SharePoint Cache. This is a directory full of cached objects, nicely wrapped in XML. Sometimes however this cache can become corrupted. A great example of this occurs when developing SPJobDefinitions (TimerJobs for SharePoint). These definitions use this cache, so everytime you deploy new versions of the assemblies, you&#8217;ll have to clear the cache. More info about this:</div>
<ul>
<li><a href="http://support.microsoft.com/kb/939308">KB939308</a></li>
<li><a href="http://blogs.msdn.com/josrod/archive/2007/12/12/clear-the-sharepoint-configuration-cache-for-timer-job-and-psconfig-errors.aspx">Clear the SharePoint Configuration Cache for Timer Job and PSCONFIG errors </a></li>
<li><a href="http://jopx.blogspot.com/2008/01/clearing-sharepoint-configuration-cache.html">Clearing the SharePoint configuration cache</a></li>
</ul>
<p>Clearing the cache, means deleting all the XML files. But what if you delete the entire directory? Well, it gets messy.. <img src='http://tomblog.insomniacminds.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  SharePoint TimerJobs just stop working all together. And to top it off, you get these nice error messages:</p>
<blockquote><p>SPTimerStore.InitializeTimer: SPConfigurationDatabase.RefreshCache returned SPConstants.InvalidRowVersion <br />
The timer service could not initialize its configuration, please check the configuration database.  Will retry later.</p></blockquote>
<p>Great! :p</p>
<p>So what happened? The directory in question is: <strong>C:\Documents and Settings\All Users\Application Data\Microsoft\SharePoint\Config\&lt;guid&gt;\</strong>. So the name of the directory is some kind of identifier. Looks pretty innocent, huh..  it isn&#8217;t!<br />
When this happened to me earlier on today, I wasn&#8217;t really feeling at ease. The timerjobs didn&#8217;t want to run, and no one seemed to know what this guid was. After a few hours of reverse engineering however, I found discovered this was actually the config DB ID. Nice! But where can I find it? Luckily it was not hard to find out. You&#8217;ll have to open up the registry and go to: <strong>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\12.0\Secure\ConfigDB</strong>. </p>
<div class="mceTemp">
<div id="attachment_90" class="wp-caption alignnone" style="width: 278px"><a href="http://tomblog.insomniacminds.com/wp-content/uploads/2008/07/si_cc_1.png"><img class="size-medium wp-image-90" title="The config DB registry key" src="http://tomblog.insomniacminds.com/wp-content/uploads/2008/07/si_cc_1-300x200.png" alt="The config DB registry key." width="268" height="190" /></a><p class="wp-caption-text">The config DB registry key.</p></div>
</div>
<p>In this key, you&#8217;ll find the config DB id. Now all you have to do, is create a directory with this guid and restart the SharePoint Timer service. And you&#8217;ll see your XML files reappearing, and soon after your timerjobs restarting. Phuw, that was a close one.. <img src='http://tomblog.insomniacminds.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>&#8217;till next time!</p>
]]></content:encoded>
			<wfw:commentRss>http://tomblog.insomniacminds.com/2008/07/30/sharepoint-internals-clearing-configuration-cache-caveat/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

