<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Paul George &#187; paulg</title>
	<atom:link href="http://blog.paulgeorge.co.uk/author/paulgeorge123/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.paulgeorge.co.uk</link>
	<description>Web development with asp.net &#38; Sitecore.</description>
	<lastBuildDate>Wed, 30 Sep 2009 10:21:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.paulgeorge.co.uk' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/09c133726122f346007bdbe0bf9a2869?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>Paul George &#187; paulg</title>
		<link>http://blog.paulgeorge.co.uk</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.paulgeorge.co.uk/osd.xml" title="Paul George" />
	<atom:link rel='hub' href='http://blog.paulgeorge.co.uk/?pushpress=hub'/>
		<item>
		<title>Problems with the Sitecore 6 staging module part 2 &#8211; extranet user loses session</title>
		<link>http://blog.paulgeorge.co.uk/2009/07/26/problems-the-sitecore-staging-module-part-2-extranet-user-loses-session/</link>
		<comments>http://blog.paulgeorge.co.uk/2009/07/26/problems-the-sitecore-staging-module-part-2-extranet-user-loses-session/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 22:08:38 +0000</pubDate>
		<dc:creator>paulg</dc:creator>
				<category><![CDATA[Sitecore]]></category>
		<category><![CDATA[Sitecore 6]]></category>
		<category><![CDATA[Web development and programming]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[Publishing]]></category>
		<category><![CDATA[Sitecore API]]></category>
		<category><![CDATA[Staging]]></category>
		<category><![CDATA[staging module]]></category>

		<guid isPermaLink="false">http://blog.paulgeorge.co.uk/?p=131</guid>
		<description><![CDATA[Session state lost after publishing. This post follows on from Part 1. The symptom: I guess this is pretty self-explanitory, but it depends how you are arriving at this problem. You might be using real accounts, virtual users, or whatever. The effect is that your extranet user, i.e. public website user, appears to lose their session [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.paulgeorge.co.uk&amp;blog=6018426&amp;post=131&amp;subd=paulgeorge&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h1>Session state lost after publishing.</h1>
<p>This post follows on from <a href="http://blog.paulgeorge.co.uk/2009/07/22/problems-with-sitecore-and-the-staging-module/">Part 1</a>.</p>
<h2>The symptom:</h2>
<p>I guess this is pretty self-explanitory, but it depends how you are arriving at this problem. You might be using real accounts, virtual users, or whatever. The effect is that your extranet user, i.e. public website user, appears to lose their session some time after logging in. They are effectively logged-out. You won&#8217;t notice this with anonymous users, only users that have logged in. This may also initially appear as a security problem, perhaps the user is suddenly unable to access content they should have access to.</p>
<h2>The problem:</h2>
<p>Pretty much the same as in <a href="http://blog.paulgeorge.co.uk/2009/07/22/problems-with-sitecore-and-the-staging-module/">Part 1</a>.  If the Sitecore staging module is set to the <a href="http://sdn.sitecore.net/upload/sdn5/sitecore6modules/staging/staging_module_installation_and_configuration_guide.pdf#page=10">recommended &#8220;Full&#8221; cache clearing mode</a>, and a publishing operation occurs, all extranet users are logged off after the staging module .xml work files are processed. As explained previously, there is a short delay between the publishing operation starting and the web service actually being called from the master.</p>
<h2>The cause:</h2>
<p>When the Sitecore staging module is set to the recommended &#8220;Full&#8221; cache clearing mode, the slave server clears all caches simultaneously, but it also calls Context.ClientData.RemoveAll() which effectively clears the session for extranet users.  This affects the current available version of the staging module  for Sitecore 6 as of July 2009 (v5.4.0 rev 080625). In contrast, the current version for sitecore 5 has been <a href="http://sdn.sitecore.net/Products/Staging/Release%20Notes%205,-d-,3.aspx">fixed as of July 17th</a>, and should no longer have this issue.</p>
<h2>The solution:</h2>
<p>The staging mode in &#8220;partial&#8221; cache clearing mode does <span style="text-decoration:underline;">not</span> invoke Context.ClientData.RemoveAll(), so the simple solution is to use the &#8220;partial&#8221; cache setting. Again the problem is as stated before &#8211; this is not the recommended setting, and this is <a href="http://sdn.sitecore.net/upload/sdn5/sitecore6modules/staging/staging_module_installation_and_configuration_guide.pdf#page=22">reiterated </a>in the troubleshooting section. There is also no explanation of the scenarios where partial cache clearing is not enough, just that in the &#8220;partial setting does not clear the entire item cache&#8221;. I had previously thought that this would affect publishing operations that include template changes, but I haven&#8217;t explored that notion further.</p>
<p>Finally, despite this rather large bug being known, it is not documented at all other than in forum posts. Nor is it in <a href="http://sdn.sitecore.net/Products/Staging/Release%20Notes%20SC6.aspx">the release notes</a>.   A slightly similar but unrelated  issue (almost certainly less common too) is  <a href="http://sdn.sitecore.net/upload/sdn5/sitecore6modules/staging/staging_module_installation_and_configuration_guide.pdf#page=18">covered in point 6.2.3 </a> of the installation document.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/paulgeorge.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/paulgeorge.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/paulgeorge.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/paulgeorge.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/paulgeorge.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/paulgeorge.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/paulgeorge.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/paulgeorge.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/paulgeorge.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/paulgeorge.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/paulgeorge.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/paulgeorge.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/paulgeorge.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/paulgeorge.wordpress.com/131/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.paulgeorge.co.uk&amp;blog=6018426&amp;post=131&amp;subd=paulgeorge&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.paulgeorge.co.uk/2009/07/26/problems-the-sitecore-staging-module-part-2-extranet-user-loses-session/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/23d3e0558d70599823324d3157b563c8?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Paul George</media:title>
		</media:content>
	</item>
		<item>
		<title>Problems with Sitecore and the staging module part 1.</title>
		<link>http://blog.paulgeorge.co.uk/2009/07/22/problems-with-sitecore-and-the-staging-module/</link>
		<comments>http://blog.paulgeorge.co.uk/2009/07/22/problems-with-sitecore-and-the-staging-module/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 22:25:45 +0000</pubDate>
		<dc:creator>paulg</dc:creator>
				<category><![CDATA[ASP.net]]></category>
		<category><![CDATA[Sitecore]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Web development and programming]]></category>

		<guid isPermaLink="false">http://blog.paulgeorge.co.uk/?p=101</guid>
		<description><![CDATA[This has been a bugbear for some time now. I&#8217;ve had firsthand experience of all the issues I&#8217;m going to describe and it was not an easy journey to figure out what was actually happening. The reason for this post is to have some kind of searchable record of the problem online that is indexed. This [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.paulgeorge.co.uk&amp;blog=6018426&amp;post=101&amp;subd=paulgeorge&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This has been a bugbear for some time now. I&#8217;ve had firsthand experience of all the issues I&#8217;m going to describe and it was not an easy journey to figure out what was actually happening. The reason for this post is to have some kind of searchable record of the problem online that is indexed. This is because Sitecore&#8217;s own forums (where this issue has appeared many times) appear to <a href="http://www.google.com/search?hl=en&amp;q=site%3Ahttp%3A%2F%2Fsdn.sitecore.net%2Fforum%2F&amp;aq=f&amp;oq=&amp;aqi=">not be indexed by any search engines</a>, and to help other developers who run into this problem.</p>
<p>For the record, and in case anyone does this see this post in that way, I&#8217;m not anti-Sitecore,  I like the product (otherwise I wouldn&#8217;t bother doing this), I like the level of support too (they must have some  patience!), I just think the staging module is pretty flawed in some areas. Finally, some of these issues are already known, but don&#8217;t appear in any list of &#8216;known issues&#8217;. This is immensely frustrating!</p>
<p>The <a href="http://sdn.sitecore.net/Products/Staging.aspx">Sitecore staging module</a> is an &#8217;official&#8217; (i.e. supported) module that allows you to separate your live, public-facing servers from your CMS server that editors directly create content on. From now I will refer to the internal CMS server as  &#8217;master&#8217; and all public facing web servers as &#8216;slave&#8217; &#8211; this is the same naming convention used in the <a href="http://sdn.sitecore.net/Products/Staging/Documentation%20SC6.aspx">staging module documentation</a>.  A typical configuration will consist of one master server located locally within your office, and one or more slave servers located externally with a hosting company.</p>
<p>There are three issues that occur when using the staging module that I&#8217;m intending to eventually highlight, these are:</p>
<ol>
<li>Cache clearing</li>
<li>Extranet users are logged-out after each publishing operation.</li>
<li>Publishing delay</li>
</ol>
<p>  </p>
<h1>Cache clearing</h1>
<h2>The symptom:</h2>
<p>Your live website slows to a halt at regular intervals, depending on how often you publish. CPU utilization of the w3wp.exe process will often suddenly ramp up to 100% for some time (probably somewhere within 5-90 seconds)  and the SQL server process will be doing the same, or be worse.  After this time, your site returns to normal. Page requests to your site may hang for the entire duration and if they don&#8217;t close the browser, will eventually get a response.  This happens after each publishing operation + staging task (scheduled) publishing delay.</p>
<h2>The problem:</h2>
<p>After publishing content in a staging environment, the master server calls a webservice on each slave server to clear caches. <a href="http://sdn.sitecore.net/upload/sdn5/sitecore6modules/staging/staging_module_installation_and_configuration_guide.pdf#page=10">The recommended setting for this is &#8220;Full&#8221; cache clearing</a> rather than &#8220;partial&#8221;. You can verify if staging is the cause of all this by performing the following steps:</p>
<ol>
<li>On the <strong><span style="text-decoration:underline;">master</span></strong> server, check the folder /sitecore modules/staging/workdir/cache for the presence of any .xml files. If you haven&#8217;t published recently, this should be empty. (If there are loads of .xml files you probably have another problem).</li>
<li>Publish something from the master server to a slave server</li>
<li>Immediately check the /workdir/cache folder again (it should now contain one .xml file)</li>
<li>Wait for the .xml file to disappear (it&#8217;s now being processed)</li>
</ol>
<p>As soon as the .xml file disappears, the master server should hit the webservice on the slave server to clear caches. If at this point, your site slows down and the CPU and SQL load jumps unacceptably, then this is very likely to be a problem caused by staging and the aggressive cache-clearing invoked by the &#8216;Full&#8217; setting.</p>
<h2>The cause:</h2>
<p> The documentation does state that &#8217;full&#8217; method is slow, however I think it underplays how much impact this can have. This setting is configured on the master server and is used in the webservice call to the slave after a publishing operation to clear the caches on the slave. The main difference is that &#8216;partial&#8217; clears the front-end HTML cache (i.e. your rendered outputs) and the Data cache. Using this mode, your site will probably hardly blink unless you have very intensive renderings. The &#8216;full&#8217; mode however does what it says in the documentation, and clears all caches, and Sitecore has a lot of them. You can see a list of these in /sitecore/admin/cache.aspx . It also does some other additional clearing operations and then does all this all again for the shell website (the sitecore shell at /sitecore is just another website). The whole effect is that web server and SQL server load can spike in a big big way. In my particular case, the resulting server load and time-delay is comparable to the same load and delay that occurs after recycling the application pool, or in other words, every time I publish the site feels like it&#8217;s rebooting, and that seems to be pretty much what is happening. The &#8216;rebooting&#8217; analogy also lends itself to the #2 point about extranet users (post to follow). If you publish frequently, have a large number of items, or heavy load then this makes things much worse.</p>
<h2>The solution:</h2>
<p>The simple solution is the try the &#8220;partial&#8221; caching mode instead.  Sitecore say that in some scenarios items will not be published correctly and therefore only the &#8220;full&#8221; setting is recommended. This is the crux of the problem. You&#8217;re damned if you do, and damned if you don&#8217;t. I really think that Sitecore needs to come up with a better way to handle staging, either by fixing this module, or a different approach altogether. So far we&#8217;re stuck between a method that isn&#8217;t recommended and doesn&#8217;t always work, and a method that is recommended but can easily cripple your performance whenever you publish. </p>
<p> </p>
<p>More to follow&#8230;. <a href="http://blog.paulgeorge.co.uk/2009/07/26/problems-the-sitecore-staging-module-part-2-extranet-user-looses-session/">in part two.</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/paulgeorge.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/paulgeorge.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/paulgeorge.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/paulgeorge.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/paulgeorge.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/paulgeorge.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/paulgeorge.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/paulgeorge.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/paulgeorge.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/paulgeorge.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/paulgeorge.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/paulgeorge.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/paulgeorge.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/paulgeorge.wordpress.com/101/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.paulgeorge.co.uk&amp;blog=6018426&amp;post=101&amp;subd=paulgeorge&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.paulgeorge.co.uk/2009/07/22/problems-with-sitecore-and-the-staging-module/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/23d3e0558d70599823324d3157b563c8?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Paul George</media:title>
		</media:content>
	</item>
		<item>
		<title>How to copy a project from VSS and remove bindings.</title>
		<link>http://blog.paulgeorge.co.uk/2009/07/09/how-to-copy-a-project-from-vss-and-remove-bindings/</link>
		<comments>http://blog.paulgeorge.co.uk/2009/07/09/how-to-copy-a-project-from-vss-and-remove-bindings/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 22:00:05 +0000</pubDate>
		<dc:creator>paulg</dc:creator>
				<category><![CDATA[ASP.net]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Web development and programming]]></category>

		<guid isPermaLink="false">http://blog.paulgeorge.co.uk/?p=96</guid>
		<description><![CDATA[If you want to duplicate the solution to add to a new source control system. A simple option is to: Duplicate the local working folder to another folder. Open the new copy solution in Visual Studio File &#62; Source Control &#62; Change Source Control Check / Select all items Choose [Unbind] for each project to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.paulgeorge.co.uk&amp;blog=6018426&amp;post=96&amp;subd=paulgeorge&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you want to duplicate the solution to add to a new source control system. A simple option is to:</p>
<ol>
<li>Duplicate the local working folder to another folder.</li>
<li>Open the new copy solution in Visual Studio</li>
<li>File &gt; Source Control &gt; Change Source Control</li>
<li>Check / Select all items</li>
<li>Choose [Unbind] for each project to remove any association between the copy folder, and VSS.</li>
<li>Enable options to show hidden and system files in Windows Explorer.</li>
<li>Delete all files ending with *.scc, *.vspscc, *.user, *.vssscc, *.suo</li>
<li>Add the copy folder into the new source control system.</li>
</ol>
<p>Problems with this include loosing all history information. Going forwards, you’re starting at the current state with nothing to roll back to.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/paulgeorge.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/paulgeorge.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/paulgeorge.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/paulgeorge.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/paulgeorge.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/paulgeorge.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/paulgeorge.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/paulgeorge.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/paulgeorge.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/paulgeorge.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/paulgeorge.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/paulgeorge.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/paulgeorge.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/paulgeorge.wordpress.com/96/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.paulgeorge.co.uk&amp;blog=6018426&amp;post=96&amp;subd=paulgeorge&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.paulgeorge.co.uk/2009/07/09/how-to-copy-a-project-from-vss-and-remove-bindings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/23d3e0558d70599823324d3157b563c8?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Paul George</media:title>
		</media:content>
	</item>
		<item>
		<title>Sitecore with Gridview &#8211; rowupdating event doesn&#8217;t fire</title>
		<link>http://blog.paulgeorge.co.uk/2009/03/25/sitecore-with-gridview-rowupdating-event-doesnt-fire/</link>
		<comments>http://blog.paulgeorge.co.uk/2009/03/25/sitecore-with-gridview-rowupdating-event-doesnt-fire/#comments</comments>
		<pubDate>Wed, 25 Mar 2009 20:22:35 +0000</pubDate>
		<dc:creator>paulg</dc:creator>
				<category><![CDATA[ASP.net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[DataBinding]]></category>
		<category><![CDATA[Sitecore]]></category>
		<category><![CDATA[Web development and programming]]></category>
		<category><![CDATA[gridview]]></category>
		<category><![CDATA[rowupdating]]></category>

		<guid isPermaLink="false">http://paulgeorge.wordpress.com/?p=78</guid>
		<description><![CDATA[Whenever using Databound server controls with Sitecore need to be aware that Sitecore  meddles with some controls. This nasty issue which can have you banging your head against the wall for hours (days?) has been previously blogged by Mark Cassidy but I guess it depends on what symptom you&#8217;re having first, and wether you relate it back to this [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.paulgeorge.co.uk&amp;blog=6018426&amp;post=78&amp;subd=paulgeorge&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Whenever using Databound server controls with Sitecore <em>need </em>to be aware that Sitecore  meddles with some controls. This nasty issue which can have you banging your head against the wall for hours (days?) has been previously <a href="http://www.cassidy.dk/blog/sitecore/2009/01/typesthatshouldnotbeexpanded.html">blogged by Mark Cassidy</a> but I guess it depends on what symptom you&#8217;re having first, and wether you relate it back to this obscure setting. In my case, I was previously aware of this issue but only relating to apparent loss of viewstate on controls. Unfortunately I didn&#8217;t think of it as affecting events too.</p>
<p>In my case most features worked, Edit buttons would invoke row editing mode, cancel button works fine, rowCommand event generally worked, but it wasRowUpdating that simply wasn&#8217;t working. Adding System.Web.UI.WebControls.GridView to &lt;typesThatShouldNotBeExpanded&gt; in web.config resolves this issue. your web.config would then look like :</p>
<p><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">&lt;</span></span></span></span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">typesThatShouldNotBeExpanded</span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">&gt;<br />
&lt;</span></span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">type</span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">&gt;</span></span><span style="font-size:x-small;">System.Web.UI.WebControls.Repeater</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">&lt;/</span></span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">type</span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">&gt;<br />
&lt;</span></span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">type</span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">&gt;</span></span><span style="font-size:x-small;">System.Web.UI.WebControls.GridView</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">&lt;/</span></span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">type</span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">&gt;<br />
&lt;</span></span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">type</span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">&gt;</span></span><span style="font-size:x-small;">System.Web.UI.WebControls.DataList</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">&lt;/</span></span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">type</span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">&gt;<br />
&lt;/</span></span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">typesThatShouldNotBeExpanded</span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">&gt;</span></span></p>
<p>This issue does now have a fleeting mention on <a href="http://sdn.sitecore.net/Scrapbook/ListView%20and%20DataPager%20under%20Sitecore%20context.aspx">http://sdn.sitecore.net/Scrapbook&#8230;..</a> but requires login to view it.</p>
<p>While looking for that link, I also came across <a href="http://www.bolaky.net/post/2009/02/20/Listview-losing-viewstate-on-postback-in-Sitecore-V6.aspx">another blog post</a> detailing the same issue and frustrations I&#8217;ve had with Gridview events that may have more detail.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/paulgeorge.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/paulgeorge.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/paulgeorge.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/paulgeorge.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/paulgeorge.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/paulgeorge.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/paulgeorge.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/paulgeorge.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/paulgeorge.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/paulgeorge.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/paulgeorge.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/paulgeorge.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/paulgeorge.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/paulgeorge.wordpress.com/78/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.paulgeorge.co.uk&amp;blog=6018426&amp;post=78&amp;subd=paulgeorge&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.paulgeorge.co.uk/2009/03/25/sitecore-with-gridview-rowupdating-event-doesnt-fire/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/23d3e0558d70599823324d3157b563c8?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Paul George</media:title>
		</media:content>
	</item>
		<item>
		<title>GridView problem &#8211; Item has already been added. Key in dictionary: &#8216;Timestamp&#8217;  Key being added: &#8216;Timestamp&#8217;</title>
		<link>http://blog.paulgeorge.co.uk/2009/03/25/gridview-problem-item-has-already-been-added-key-in-dictionary-timestamp-key-being-added-timestamp/</link>
		<comments>http://blog.paulgeorge.co.uk/2009/03/25/gridview-problem-item-has-already-been-added-key-in-dictionary-timestamp-key-being-added-timestamp/#comments</comments>
		<pubDate>Wed, 25 Mar 2009 15:45:41 +0000</pubDate>
		<dc:creator>paulg</dc:creator>
				<category><![CDATA[ASP.net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Sitecore]]></category>
		<category><![CDATA[Web development and programming]]></category>
		<category><![CDATA[automatic databind]]></category>
		<category><![CDATA[databind()]]></category>
		<category><![CDATA[gridview]]></category>

		<guid isPermaLink="false">http://paulgeorge.wordpress.com/2009/03/25/gridview-problem-item-has-already-been-added-key-in-dictionary-timestamp-key-being-added-timestamp/</guid>
		<description><![CDATA[In general ASP.net, this can be caused by calling DataBind() more than once on a databound control. Also be aware that this is influenced by automatic databind being on too. Relating this to Sitecore CMS, you should be aware that Sitecore ships with the following line in web.config: &#60;!&#8211; AUTOMATIC DATA BIND Indicates if the data bind function [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.paulgeorge.co.uk&amp;blog=6018426&amp;post=73&amp;subd=paulgeorge&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In general ASP.net, this can be caused by calling DataBind() more than once on a databound control. Also be aware that this is influenced by automatic databind being on too.</p>
<p>Relating this to <a href="http://www.sitecore.net/">Sitecore CMS</a>, you should be aware that Sitecore ships with the following line in web.config:</p>
<blockquote><p><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">&lt;!&#8211;</span></span></span><span style="font-size:x-small;color:#0000ff;"> </span></span><span style="font-size:x-small;color:#008000;"><span style="font-size:x-small;color:#008000;">AUTOMATIC DATA BIND<br />
Indicates if the data bind function is run automatically<br />
</span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">&#8211;&gt;<br />
&lt;</span></span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">setting</span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"> </span></span><span style="font-size:x-small;color:#ff0000;"><span style="font-size:x-small;color:#ff0000;">name</span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">=</span></span><span style="font-size:x-small;">&#8220;</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">AutomaticDataBind</span></span><span style="font-size:x-small;">&#8220;</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"> </span></span><span style="font-size:x-small;color:#ff0000;"><span style="font-size:x-small;color:#ff0000;">value</span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">=</span></span><span style="font-size:x-small;">&#8220;</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">false</span></span><span style="font-size:x-small;">&#8220;</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"> /&gt;</span></span></p></blockquote>
<p>This means that you will need to either call Databind whenever you need it, or you can simply set this value to true.  This AutomaticDataBind setting will also cause problems with other types of databound controls, such as templated controls. It&#8217;s generally simpler to set it to &#8216;true&#8217;..</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/paulgeorge.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/paulgeorge.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/paulgeorge.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/paulgeorge.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/paulgeorge.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/paulgeorge.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/paulgeorge.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/paulgeorge.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/paulgeorge.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/paulgeorge.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/paulgeorge.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/paulgeorge.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/paulgeorge.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/paulgeorge.wordpress.com/73/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.paulgeorge.co.uk&amp;blog=6018426&amp;post=73&amp;subd=paulgeorge&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.paulgeorge.co.uk/2009/03/25/gridview-problem-item-has-already-been-added-key-in-dictionary-timestamp-key-being-added-timestamp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/23d3e0558d70599823324d3157b563c8?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Paul George</media:title>
		</media:content>
	</item>
		<item>
		<title>Sitecore preview bug &#8211; looking at web database</title>
		<link>http://blog.paulgeorge.co.uk/2009/03/20/sitecore-preview-bug-looking-at-web-database/</link>
		<comments>http://blog.paulgeorge.co.uk/2009/03/20/sitecore-preview-bug-looking-at-web-database/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 21:04:41 +0000</pubDate>
		<dc:creator>paulg</dc:creator>
				<category><![CDATA[Sitecore]]></category>
		<category><![CDATA[Web development and programming]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[master]]></category>
		<category><![CDATA[Preview mode]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://paulgeorge.wordpress.com/?p=65</guid>
		<description><![CDATA[Sitecore v6 introduced another preview tool accessible from [Presentation] &#62; [Preview] as opposed to [Publish] &#62; [Preview]. The new preview mode opens another tab in the content editor which shows the preview of the current item. This is all fine and well except that it is permanently looking at the web database rather than master [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.paulgeorge.co.uk&amp;blog=6018426&amp;post=65&amp;subd=paulgeorge&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Sitecore v6 introduced another preview tool accessible from [Presentation] &gt; [Preview] as opposed to [Publish] &gt; [Preview]. The new preview mode opens another tab in the content editor which shows the preview of the current item.</p>
<p>This is all fine and well except that it is permanently looking at the web database rather than master database. This can be observed by creating a new item, saving it, and then selecting preview. You get a 404 error, unless you publish it first.</p>
<p>Unfortunately this nice feature is 80% broken and can only be used for looking at <em>published</em> content.</p>
<p><span style="color:#993300;">Update: This was a registered bug in February 2009 with a workaround available from Sitecore support, but this still has not been released and I believe the bug still exists in Sitecore 6.1</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/paulgeorge.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/paulgeorge.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/paulgeorge.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/paulgeorge.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/paulgeorge.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/paulgeorge.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/paulgeorge.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/paulgeorge.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/paulgeorge.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/paulgeorge.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/paulgeorge.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/paulgeorge.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/paulgeorge.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/paulgeorge.wordpress.com/65/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.paulgeorge.co.uk&amp;blog=6018426&amp;post=65&amp;subd=paulgeorge&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.paulgeorge.co.uk/2009/03/20/sitecore-preview-bug-looking-at-web-database/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/23d3e0558d70599823324d3157b563c8?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Paul George</media:title>
		</media:content>
	</item>
		<item>
		<title>Sitecore &#8211; Could not load file or assembly System.Data.SQLite</title>
		<link>http://blog.paulgeorge.co.uk/2009/02/03/sitecore-could-not-load-file-or-assembly-system-datasqlite/</link>
		<comments>http://blog.paulgeorge.co.uk/2009/02/03/sitecore-could-not-load-file-or-assembly-system-datasqlite/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 11:21:02 +0000</pubDate>
		<dc:creator>paulg</dc:creator>
				<category><![CDATA[ASP.net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Sitecore]]></category>
		<category><![CDATA[Web development and programming]]></category>
		<category><![CDATA[SQLite]]></category>

		<guid isPermaLink="false">http://paulgeorge.wordpress.com/?p=12</guid>
		<description><![CDATA[After installing Sitecore v6, you get the following error when viewing the website or sitecore UI: Sitecore Could not load file or assembly &#8216;System.Data.SQLite, Version=1.0.48.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139&#8242; or one of its dependencies. An attempt was made to load a program with an incorrect format. This is actually detailed in page 20 of the sitecore troubleshooting [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.paulgeorge.co.uk&amp;blog=6018426&amp;post=12&amp;subd=paulgeorge&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After installing Sitecore v6, you get the following error when viewing the website or sitecore UI:</p>
<blockquote><p>Sitecore Could not load file or assembly &#8216;System.Data.SQLite, Version=1.0.48.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139&#8242; or one of its dependencies. An attempt was made to load a program with an incorrect format.</p></blockquote>
<p>This is actually detailed in page 20 of the <a title="Sitecore troubleshooting doc" href="http://sdn.sitecore.net/upload/sitecore6/installation/installation_troubleshooting-a4.pdf#page=20" target="_blank">sitecore troubleshooting doc</a>, but I missed it first time round. This is caused by the presence of System.Data.SqlLite in the bin folder <span style="text-decoration:underline;">when running on 64-bit OS</span>. An alternative dll is available for 64bit OS from Sitecore.</p>
<p>Solution: If you&#8217;re are not using SQLite simply the delete the System.Data.SqlLite.dll from the bin folder and recycle your app to get back up and running. If you are using SQLite, download the alternative dll for 64bit OS.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/paulgeorge.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/paulgeorge.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/paulgeorge.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/paulgeorge.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/paulgeorge.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/paulgeorge.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/paulgeorge.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/paulgeorge.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/paulgeorge.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/paulgeorge.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/paulgeorge.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/paulgeorge.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/paulgeorge.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/paulgeorge.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.paulgeorge.co.uk&amp;blog=6018426&amp;post=12&amp;subd=paulgeorge&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.paulgeorge.co.uk/2009/02/03/sitecore-could-not-load-file-or-assembly-system-datasqlite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/23d3e0558d70599823324d3157b563c8?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Paul George</media:title>
		</media:content>
	</item>
		<item>
		<title>Sitecore ContextItem.Database.SelectItems() and languages.</title>
		<link>http://blog.paulgeorge.co.uk/2009/02/02/sitecore-contextitemdatabaseselectitems-and-languages/</link>
		<comments>http://blog.paulgeorge.co.uk/2009/02/02/sitecore-contextitemdatabaseselectitems-and-languages/#comments</comments>
		<pubDate>Mon, 02 Feb 2009 21:40:02 +0000</pubDate>
		<dc:creator>paulg</dc:creator>
				<category><![CDATA[ASP.net]]></category>
		<category><![CDATA[Sitecore]]></category>
		<category><![CDATA[Language]]></category>
		<category><![CDATA[Sitecore API]]></category>

		<guid isPermaLink="false">http://paulgeorge.wordpress.com/?p=6</guid>
		<description><![CDATA[While poking around in the shared source RSS module for Sitecore, I found that several aspects of the &#8220;static feeds&#8221; feature loose language context during publishing. This only effects static feeds whereby the rss.xml file(s) are written to disk and linked-too directly. The processes is kicked-off my hooking into the publishing-end event. While the similar method [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.paulgeorge.co.uk&amp;blog=6018426&amp;post=6&amp;subd=paulgeorge&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>While poking around in the shared source RSS module for Sitecore, I found that several aspects of the &#8220;static feeds&#8221; feature loose language context during publishing. This only effects static feeds whereby the rss.xml file(s) are written to disk and linked-too directly. The processes is kicked-off my hooking into the publishing-end event.</p>
<p>While the similar method Context.Database.GetItem retrieves an item in the same language as the context item, it appears that SelectItems(selector, predicate) does not. So if you are in a language other than &#8216;en&#8217; English, you will probably retrieve the &#8216;en&#8217; version of your non-&#8217;en&#8217; language items, resulting in large areas of missing data.</p>
<p>I&#8217;m not sure if this only effects SelectItems()  when run outside of the context of a web request, or if it happens all the time, but the work-around is to explicitly change your context.language before calling SelectItems().</p>
<p>ContextItem.Database.SelectItems(selector, predicate);     &#8230;..will return &#8216;en&#8217; language items regardless.</p>
<p>Instead you must use:</p>
<p>Sitecore.Globalization.Language.Current = ContextItem.Language;<br />
ContextItem.Database.SelectItems(selector, predicate);    </p>
<p>&#8230;.which then retrieves items in the same language of contextItem.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/paulgeorge.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/paulgeorge.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/paulgeorge.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/paulgeorge.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/paulgeorge.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/paulgeorge.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/paulgeorge.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/paulgeorge.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/paulgeorge.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/paulgeorge.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/paulgeorge.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/paulgeorge.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/paulgeorge.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/paulgeorge.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.paulgeorge.co.uk&amp;blog=6018426&amp;post=6&amp;subd=paulgeorge&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.paulgeorge.co.uk/2009/02/02/sitecore-contextitemdatabaseselectitems-and-languages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/23d3e0558d70599823324d3157b563c8?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Paul George</media:title>
		</media:content>
	</item>
		<item>
		<title>Cannot install Sql server Express 2005 in Windows Server 2008 x64 &#8220;cannot continue because the installation package could not be opened&#8230;.&#8221;</title>
		<link>http://blog.paulgeorge.co.uk/2008/12/22/cannot-install-sql-server-express-2005-in-windows-server-2008-x64-cannot-continue-because-the-installation-package-could-not-be-opened/</link>
		<comments>http://blog.paulgeorge.co.uk/2008/12/22/cannot-install-sql-server-express-2005-in-windows-server-2008-x64-cannot-continue-because-the-installation-package-could-not-be-opened/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 16:29:54 +0000</pubDate>
		<dc:creator>paulg</dc:creator>
				<category><![CDATA[ASP.net]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[Web development and programming]]></category>
		<category><![CDATA[64bit]]></category>
		<category><![CDATA[SQL express]]></category>
		<category><![CDATA[x64]]></category>

		<guid isPermaLink="false">http://biggerbyfar.wordpress.com/?p=45</guid>
		<description><![CDATA[The standard lightweight version of SQL Express 2005 is missing files that are required to install on Sever 2008 x64. You cannot install the lightweight version on server 2008 / 64-bit windows OS. Instead you must simply download the full package including advanced features. This more complete version will install fine on Server 2008. Bear in mind [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.paulgeorge.co.uk&amp;blog=6018426&amp;post=45&amp;subd=paulgeorge&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The standard lightweight version of SQL Express 2005 is missing files that are required to install on Sever 2008 x64. You cannot install the <em>lightweight</em> version on server 2008 / 64-bit windows OS. Instead you must simply <a href="http://www.microsoft.com/downloads/details.aspx?familyid=5B5528B9-13E1-4DB9-A3FC-82116D598C3D&amp;displaylang=en" target="_blank">download the full package</a> including advanced features. This more complete version will install fine on Server 2008. Bear in mind that you don&#8217;t actually need to install the advanced features.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/paulgeorge.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/paulgeorge.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/paulgeorge.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/paulgeorge.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/paulgeorge.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/paulgeorge.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/paulgeorge.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/paulgeorge.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/paulgeorge.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/paulgeorge.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/paulgeorge.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/paulgeorge.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/paulgeorge.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/paulgeorge.wordpress.com/45/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.paulgeorge.co.uk&amp;blog=6018426&amp;post=45&amp;subd=paulgeorge&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.paulgeorge.co.uk/2008/12/22/cannot-install-sql-server-express-2005-in-windows-server-2008-x64-cannot-continue-because-the-installation-package-could-not-be-opened/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/23d3e0558d70599823324d3157b563c8?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Paul George</media:title>
		</media:content>
	</item>
		<item>
		<title>Silverlight web services cross domain warning</title>
		<link>http://blog.paulgeorge.co.uk/2008/12/07/silverlight-web-services-cross-domain-warning/</link>
		<comments>http://blog.paulgeorge.co.uk/2008/12/07/silverlight-web-services-cross-domain-warning/#comments</comments>
		<pubDate>Sun, 07 Dec 2008 15:15:21 +0000</pubDate>
		<dc:creator>paulg</dc:creator>
				<category><![CDATA[ASP.net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Web development and programming]]></category>
		<category><![CDATA[Cross domain]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[f5]]></category>
		<category><![CDATA[warning]]></category>

		<guid isPermaLink="false">http://biggerbyfar.wordpress.com/?p=21</guid>
		<description><![CDATA[You get a cross-domain web services warning when debugging your silverlight application. This can be caused simply by leaving the wrong project highlighted when you hit F5. Select your .web project or the project that contains the aspx file hosting the application. If you run debugger with the silverlight project (containing your page.xaml) selected, you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.paulgeorge.co.uk&amp;blog=6018426&amp;post=25&amp;subd=paulgeorge&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You get a cross-domain web services warning when debugging your silverlight application. This can be caused simply by leaving the wrong project highlighted when you hit F5. Select your .web project or the project that contains the aspx file hosting the application. If you run debugger with the silverlight project (containing your page.xaml) selected, you get this error.</p>
<p><a href="http://paulgeorge.files.wordpress.com/2008/12/webservicesdomainwarning1.gif"><img class="alignleft size-full wp-image-48" title="Web services domain warning" src="http://paulgeorge.files.wordpress.com/2008/12/webservicesdomainwarning1.gif?w=468&#038;h=149" alt="Web services domain warning" width="468" height="149" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/paulgeorge.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/paulgeorge.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/paulgeorge.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/paulgeorge.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/paulgeorge.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/paulgeorge.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/paulgeorge.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/paulgeorge.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/paulgeorge.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/paulgeorge.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/paulgeorge.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/paulgeorge.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/paulgeorge.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/paulgeorge.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.paulgeorge.co.uk&amp;blog=6018426&amp;post=25&amp;subd=paulgeorge&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.paulgeorge.co.uk/2008/12/07/silverlight-web-services-cross-domain-warning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/23d3e0558d70599823324d3157b563c8?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Paul George</media:title>
		</media:content>

		<media:content url="http://paulgeorge.files.wordpress.com/2008/12/webservicesdomainwarning1.gif" medium="image">
			<media:title type="html">Web services domain warning</media:title>
		</media:content>
	</item>
	</channel>
</rss>