<?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>Chris Forbes blogs on SharePoint &#38; .NET</title>
	<atom:link href="http://chrisforbesblogs.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://chrisforbesblogs.net</link>
	<description>Developers chat on SharePoint and .NET</description>
	<lastBuildDate>Fri, 26 Feb 2010 19:59:47 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='chrisforbesblogs.net' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/3aa4775025bad14a027d0ade34632a33?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>Chris Forbes blogs on SharePoint &#38; .NET</title>
		<link>http://chrisforbesblogs.net</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://chrisforbesblogs.net/osd.xml" title="Chris Forbes blogs on SharePoint &amp; .NET" />
	<atom:link rel='hub' href='http://chrisforbesblogs.net/?pushpress=hub'/>
		<item>
		<title>Run Visual Studio 2010 as administrator &#8211; by default</title>
		<link>http://chrisforbesblogs.net/2010/02/26/run-visual-studio-2010-as-administrator-by-default/</link>
		<comments>http://chrisforbesblogs.net/2010/02/26/run-visual-studio-2010-as-administrator-by-default/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 19:26:22 +0000</pubDate>
		<dc:creator>Chris Forbes</dc:creator>
				<category><![CDATA[Visual Studio 2010]]></category>
		<category><![CDATA[Run-as-administrator]]></category>
		<category><![CDATA[VisualStudio2010]]></category>

		<guid isPermaLink="false">http://chrisforbesblogs.wordpress.com/?p=237</guid>
		<description><![CDATA[ Simple thing but you often need to run VS2010 as administrator, certainly if you are going to be doing much debugging with SharePoint 2010. You can make this behaviour automatic by carrying out the following steps.
&#160;
1. Right click the short cut to VS2010 and select&#160; ‘Properties’
 
2. From the properties window select the ‘Advanced’ [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisforbesblogs.net&blog=6742676&post=237&subd=chrisforbesblogs&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://chrisforbesblogs.files.wordpress.com/2010/02/visualstudio2010.jpg"><img style="display:inline;margin-left:0;margin-right:0;border-width:0;" title="visualstudio2010" border="0" alt="visualstudio2010" align="right" src="http://chrisforbesblogs.files.wordpress.com/2010/02/visualstudio2010_thumb.jpg?w=164&#038;h=74" width="164" height="74" /></a> Simple thing but you often need to run VS2010 as administrator, certainly if you are going to be doing much debugging with SharePoint 2010. You can make this behaviour automatic by carrying out the following steps.</p>
<p>&#160;</p>
<p>1. Right click the short cut to VS2010 and select&#160; ‘Properties’</p>
<p><a href="http://chrisforbesblogs.files.wordpress.com/2010/02/image6.png"><img style="display:block;float:none;margin-left:auto;margin-right:auto;border-width:0;" title="image" border="0" alt="image" src="http://chrisforbesblogs.files.wordpress.com/2010/02/image_thumb6.png?w=260&#038;h=192" width="260" height="192" /></a> </p>
<p>2. From the properties window select the ‘Advanced’ button</p>
<p><a href="http://chrisforbesblogs.files.wordpress.com/2010/02/image7.png"><img style="display:block;float:none;margin-left:auto;margin-right:auto;border-width:0;" title="image" border="0" alt="image" src="http://chrisforbesblogs.files.wordpress.com/2010/02/image_thumb7.png?w=172&#038;h=244" width="172" height="244" /></a> </p>
<p>3. Check the ‘Run as administrator’ checkbox – Your done <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://chrisforbesblogs.files.wordpress.com/2010/02/image8.png"><img style="display:block;float:none;margin-left:auto;margin-right:auto;border-width:0;" title="image" border="0" alt="image" src="http://chrisforbesblogs.files.wordpress.com/2010/02/image_thumb8.png?w=244&#038;h=182" width="244" height="182" /></a> </p>
</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:c6d8f4f0-6144-4ac8-87ca-c78cdb1afc87" class="wlWriterEditableSmartContent">Technorati Tags: <a href="http://technorati.com/tags/VisualStudio2010" rel="tag">VisualStudio2010</a>,<a href="http://technorati.com/tags/Run-as-administrator" rel="tag">Run-as-administrator</a></div>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:c402d79c-9b0f-4e23-af86-51187e6f746a" class="wlWriterEditableSmartContent">del.icio.us Tags: <a href="http://del.icio.us/popular/VisualStudio2010" rel="tag">VisualStudio2010</a>,<a href="http://del.icio.us/popular/Run-as-administrator" rel="tag">Run-as-administrator</a></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chrisforbesblogs.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chrisforbesblogs.wordpress.com/237/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chrisforbesblogs.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chrisforbesblogs.wordpress.com/237/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chrisforbesblogs.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chrisforbesblogs.wordpress.com/237/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chrisforbesblogs.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chrisforbesblogs.wordpress.com/237/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chrisforbesblogs.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chrisforbesblogs.wordpress.com/237/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisforbesblogs.net&blog=6742676&post=237&subd=chrisforbesblogs&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://chrisforbesblogs.net/2010/02/26/run-visual-studio-2010-as-administrator-by-default/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed3e25ef8a88f8fff819a7722f1805a9?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">chrisforbesblogs</media:title>
		</media:content>

		<media:content url="http://chrisforbesblogs.files.wordpress.com/2010/02/visualstudio2010_thumb.jpg" medium="image">
			<media:title type="html">visualstudio2010</media:title>
		</media:content>

		<media:content url="http://chrisforbesblogs.files.wordpress.com/2010/02/image_thumb6.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://chrisforbesblogs.files.wordpress.com/2010/02/image_thumb7.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://chrisforbesblogs.files.wordpress.com/2010/02/image_thumb8.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Simple way to get the 4-part strong name for an assembly</title>
		<link>http://chrisforbesblogs.net/2010/02/26/simple-way-to-get-the-4-part-strong-name-for-an-assembly/</link>
		<comments>http://chrisforbesblogs.net/2010/02/26/simple-way-to-get-the-4-part-strong-name-for-an-assembly/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 18:38:03 +0000</pubDate>
		<dc:creator>Chris Forbes</dc:creator>
				<category><![CDATA[Visual Studio 2010]]></category>
		<category><![CDATA[4-Part-Assembly-Name]]></category>
		<category><![CDATA[External-Tools]]></category>
		<category><![CDATA[VisualStudio2010]]></category>

		<guid isPermaLink="false">http://chrisforbesblogs.wordpress.com/?p=209</guid>
		<description><![CDATA[As you will know when building SharePoint solutions you always need to determine the 4-part assembly name or Strong Name for inclusion in various solution and feature manifests. I typically got this by pointing Reflector at my compiled DLL files.

Simpler way using Power Shell
Using the ‘External Tools’ option within visual studio you can create a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisforbesblogs.net&blog=6742676&post=209&subd=chrisforbesblogs&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>As you will know when building SharePoint solutions you always need to determine the 4-part assembly name or <em>Strong Name</em> for inclusion in various solution and feature manifests. I typically got this by pointing <a href="http://www.red-gate.com/products/reflector/" target="_blank">Reflector</a> at my compiled DLL files.</p>
<p><a href="http://chrisforbesblogs.files.wordpress.com/2010/02/image5.png"><img style="display:inline;border:0;" title="image" src="http://chrisforbesblogs.files.wordpress.com/2010/02/image_thumb5.png?w=605&#038;h=113" border="0" alt="image" width="605" height="113" /></a></p>
<h3>Simpler way using Power Shell</h3>
<p>Using the ‘External Tools’ option within visual studio you can create a quick link, so from your solution just click the ‘Get 4-Part Name’ link and out pops the 4-part assembly name in you’re output window.</p>
<p><a href="http://chrisforbesblogs.files.wordpress.com/2010/02/image.png"><img style="display:block;float:none;margin-left:auto;margin-right:auto;border-width:0;" title="image" src="http://chrisforbesblogs.files.wordpress.com/2010/02/image_thumb.png?w=232&#038;h=357" border="0" alt="image" width="232" height="357" /></a></p>
<p>Resulting output window…</p>
<p><a href="http://chrisforbesblogs.files.wordpress.com/2010/02/image1.png"><img style="display:block;float:none;margin-left:auto;margin-right:auto;border-width:0;" title="image" src="http://chrisforbesblogs.files.wordpress.com/2010/02/image_thumb1.png?w=407&#038;h=87" border="0" alt="image" width="407" height="87" /></a></p>
<h3>How to add a new External Tool</h3>
<p>Select ‘External Tools…’ from the Tools menu in Visual Studio</p>
<p><a href="http://chrisforbesblogs.files.wordpress.com/2010/02/image2.png"><img style="display:inline;border-width:0;" title="image" src="http://chrisforbesblogs.files.wordpress.com/2010/02/image_thumb2.png?w=428&#038;h=425" border="0" alt="image" width="428" height="425" /></a></p>
<p>TITLE : Give the tool a title. You can use an ‘&amp;’ character which will act as a short cut i.e. ALT+G.</p>
<p>COMMAND : <em>powershell.exe</em></p>
<p>Arguments:<em> -command &#8220;[System.Reflection.AssemblyName]::GetAssemblyName(\&#8221;$(TargetPath)\&#8221;).FullName</em></p>
<p><em> </em></p>
<p><em>3. Make sure you check ‘use output window’ to post the result in the VS output window.</em></p>
<p><em> </em></p>
<p>Simple but a great time saver <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:e83cbaa1-59f5-4de8-bddf-5c7904a464b7" class="wlWriterEditableSmartContent" style="display:inline;float:none;margin:0;padding:0;">Technorati Tags: <a rel="tag" href="http://technorati.com/tags/VisualStudio2010">VisualStudio2010</a>,<a rel="tag" href="http://technorati.com/tags/4-Part-Assembly-Name">4-Part-Assembly-Name</a>,<a rel="tag" href="http://technorati.com/tags/External-Tools">External-Tools</a></div>
<div id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:65c9e903-2caf-4534-9bdd-dcee99fd22f2" class="wlWriterEditableSmartContent" style="display:inline;float:none;margin:0;padding:0;">del.icio.us Tags: <a rel="tag" href="http://del.icio.us/popular/VisualStudio2010">VisualStudio2010</a>,<a rel="tag" href="http://del.icio.us/popular/4-Part-Assembly-Name">4-Part-Assembly-Name</a>,<a rel="tag" href="http://del.icio.us/popular/External-Tools">External-Tools</a></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chrisforbesblogs.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chrisforbesblogs.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chrisforbesblogs.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chrisforbesblogs.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chrisforbesblogs.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chrisforbesblogs.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chrisforbesblogs.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chrisforbesblogs.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chrisforbesblogs.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chrisforbesblogs.wordpress.com/209/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisforbesblogs.net&blog=6742676&post=209&subd=chrisforbesblogs&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://chrisforbesblogs.net/2010/02/26/simple-way-to-get-the-4-part-strong-name-for-an-assembly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed3e25ef8a88f8fff819a7722f1805a9?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">chrisforbesblogs</media:title>
		</media:content>

		<media:content url="http://chrisforbesblogs.files.wordpress.com/2010/02/image_thumb5.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://chrisforbesblogs.files.wordpress.com/2010/02/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://chrisforbesblogs.files.wordpress.com/2010/02/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://chrisforbesblogs.files.wordpress.com/2010/02/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing SharePoint 2010 (RC) not allowing you to select the installation type and installs as single server.</title>
		<link>http://chrisforbesblogs.net/2010/02/17/installing-sharepoint-2010-rc-not-allowing-you-to-select-the-installation-type-and-installs-as-single-server/</link>
		<comments>http://chrisforbesblogs.net/2010/02/17/installing-sharepoint-2010-rc-not-allowing-you-to-select-the-installation-type-and-installs-as-single-server/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 21:10:00 +0000</pubDate>
		<dc:creator>Chris Forbes</dc:creator>
				<category><![CDATA[Installation]]></category>
		<category><![CDATA[SharePoint 2010]]></category>

		<guid isPermaLink="false">http://chrisforbesblogs.wordpress.com/2010/02/17/installing-sharepoint-2010-rc-not-allowing-you-to-select-the-installation-type-and-installs-as-single-server/</guid>
		<description><![CDATA[The setup was not prompting you for the server type ‘Single Server’, ‘New Farm’. Instead the install would install SharePoint and SQL server express. The configuration wizard would then setup SharePoint as a single server.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisforbesblogs.net&blog=6742676&post=123&subd=chrisforbesblogs&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>Noticed a problem when trying to install SharePoint 2010 release candidate on win 2008 running as a DC.</p>
<p>&#160;</p>
<h3>Problem:</h3>
<p><strong>The setup was not prompting you for the server type ‘Single Server’, ‘New Farm’. Instead the install would install SharePoint and SQL server express. The configuration wizard would then setup SharePoint as a single server.</strong></p>
<h3>Workaround:</h3>
<p>Copy the setup.exe to a local directory on the server eg : c:\SPSETUP then open a command prompt ‘as administrator’ and run the following</p>
<p>&#160;</p>
<div id="codeSnippetWrapper">
<div id="codeSnippet" class="csharpcode">
<pre class="alt">c:\SPSETUP\setup.exe /extract c:\SPSETUP</pre>
<p><!--CRLF--></div>
</div>
<p>Then from the SPSETUP folder run the install with the following command</p>
<p>&#160;</p>
<div id="codeSnippetWrapper">
<div id="codeSnippet" class="csharpcode">
<pre class="alt">setup.exe /config c:\spsetup\File\SetupFarm\config,xml</pre>
</p></div>
</div>
<p>The install shall run as normal, but this time when the configuration wizard is run you should get the prompts to specify the appropriate configuration database server.</p>
<p>&#160;</p>
<p><strong>If you are running as a single server and using SQL Server Express then I also noticed this problem…</strong></p>
<p>Also noticed that the config. wizard fails at step 5 due to it timing out. Thanks to some other postings I discovered this was due to the Sharepoint Server Search 14 and later on the SharePoint Foundation Search V4 service was being restarted by the configuration wizard. When the service is restarted it was using the ‘Local Service’ account. You can see this happening if you watch the services while the config. wizard is running. If before running the wizard you change these to run with appropriate domain accounts these should start up ok.</p>
<p>&#160;</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:4e38b881-c806-404d-a6a3-838cab658cd0" class="wlWriterEditableSmartContent">Technorati Tags: <a href="http://technorati.com/tags/SharePoint+2010" rel="tag">SharePoint 2010</a>,<a href="http://technorati.com/tags/SharePoint+2010+Release+Candidate" rel="tag">SharePoint 2010 Release Candidate</a>,<a href="http://technorati.com/tags/Install+Problems" rel="tag">Install Problems</a></div>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:174aecb1-faab-4fbb-8b79-903d41c81451" class="wlWriterEditableSmartContent">del.icio.us Tags: <a href="http://del.icio.us/popular/SharePoint+2010" rel="tag">SharePoint 2010</a>,<a href="http://del.icio.us/popular/SharePoint+2010+Release+Candidate" rel="tag">SharePoint 2010 Release Candidate</a>,<a href="http://del.icio.us/popular/Install+Problems" rel="tag">Install Problems</a></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chrisforbesblogs.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chrisforbesblogs.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chrisforbesblogs.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chrisforbesblogs.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chrisforbesblogs.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chrisforbesblogs.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chrisforbesblogs.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chrisforbesblogs.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chrisforbesblogs.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chrisforbesblogs.wordpress.com/123/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisforbesblogs.net&blog=6742676&post=123&subd=chrisforbesblogs&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://chrisforbesblogs.net/2010/02/17/installing-sharepoint-2010-rc-not-allowing-you-to-select-the-installation-type-and-installs-as-single-server/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed3e25ef8a88f8fff819a7722f1805a9?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">chrisforbesblogs</media:title>
		</media:content>
	</item>
		<item>
		<title>Creating an RSS Generator in SharePoint</title>
		<link>http://chrisforbesblogs.net/2010/01/18/creating-an-rss-generator-in-sharepoint/</link>
		<comments>http://chrisforbesblogs.net/2010/01/18/creating-an-rss-generator-in-sharepoint/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 20:37:00 +0000</pubDate>
		<dc:creator>Chris Forbes</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Generating an RSS feed]]></category>
		<category><![CDATA[RSS]]></category>

		<guid isPermaLink="false">http://chrisforbesblogs.wordpress.com/?p=117</guid>
		<description><![CDATA[I recently had to create an RSS feed generator of SharePoint content and required a bit more flexibility that the out of the box SharePoint RSS feeds. There may be a number of approaches to this but here is an outline of how I did this…
 
So what do you get out of the box?
You enable [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisforbesblogs.net&blog=6742676&post=117&subd=chrisforbesblogs&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://chrisforbesblogs.files.wordpress.com/2010/01/image.png"><img style="display:inline;margin-left:0;margin-right:0;border:0;" title="image" src="http://chrisforbesblogs.files.wordpress.com/2010/01/image_thumb.png?w=80&#038;h=105" border="0" alt="image" width="80" height="105" align="right" /></a>I recently had to create an RSS feed generator of SharePoint content and required a bit more flexibility that the out of the box SharePoint RSS feeds. There may be a number of approaches to this but here is an outline of how I did this…</p>
<h3> </h3>
<h3>So what do you get out of the box?</h3>
<p>You enable RSS within your site collection/site via site settings. You also need to enable RSS on the specific list or document library. You do this via the list settings.</p>
<p>When enabled users see a new link from the list ‘Actions’ menu…</p>
<p><a href="http://chrisforbesblogs.files.wordpress.com/2010/01/image1.png"><img style="display:inline;border-width:0;" title="image" src="http://chrisforbesblogs.files.wordpress.com/2010/01/image_thumb1.png?w=244&#038;h=227" border="0" alt="image" width="244" height="227" /></a></p>
<p>This link calls the page <em>listfeed.aspx</em> which you can find in the LAYOUTS folder within the <a href="http://chrisforbesblogs.net/2009/04/27/12-hive-quick-file-path-reference/">12 HIVE</a>. It’s worth taking a look at the code behind for this page which is contained within the Microsoft.SharePoint.ApplicationPages.dll which you can find in the _app_bin folder of any SharePoint site (And <em>not </em>the GAC). Using Reflector take a look at the class <em>ListFeed </em>and you will get an idea on how the RSS feed work.</p>
<p>There are a couple of query string fields which can be passed to this page. <em>list</em> and <em>View</em> the list is expecting the source list GUID and the view is looking for a lists view GUID. The thing I found odd was that even if you are in the a specific list view if you click the view RSS feed link you still only get of the an RSS feed back which is the default view i.e. the query string ‘View’ is not used? You can manually put this in an it works? Perhaps I’m missing something here?</p>
<p>The render method of this class calls the <em>WriteRssMethod </em>of the corresponding SPlist. This method is overloaded as follows</p>
<table class="memberListTable">
<tbody>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
<tr>
<td><a id="ctl00_MTCS_main_ctl09_ctl00_ctl00" href="http://msdn.microsoft.com/en-us/library/ms461364.aspx"><span style="color:#0033cc;">SPList.WriteRssFeed (Stream) </span></a></td>
<td>
<div>Writes the RSS feeds from the list to the specified document stream.</div>
</td>
</tr>
<tr>
<td><a id="ctl00_MTCS_main_ctl09_ctl00_ctl01" href="http://msdn.microsoft.com/en-us/library/ms415530.aspx"><span style="color:#0033cc;">SPList.WriteRssFeed (Stream, Int32) </span></a></td>
<td>
<div>Writes the RSS feeds from the list that are associated with the specified meeting to the specified document stream.</div>
</td>
</tr>
<tr>
<td><a id="ctl00_MTCS_main_ctl09_ctl00_ctl02" href="http://msdn.microsoft.com/en-us/library/ms472957.aspx"><span style="color:#0033cc;">SPList.WriteRssFeed (Stream, Int32, SPView) </span></a></td>
<td>
<div>Writes the RSS feeds from the list that are associated with the specified meeting and view to the specified document stream.</div>
</td>
</tr>
</tbody>
</table>
<p> </p>
<h3>Building your own RSS generator</h3>
<p>Anyway my requirements had to cater for</p>
<p>1. Return content which maps to specific content type fields</p>
<p>2. Return content from a specified view within a list – I used the view to filter and sort the content although I could have easily just done this in using SPQuery</p>
<p>I created a SharePoint solution with a new application page which would be mapped to the LAYOUTS  folder within the 12 Hive</p>
<p>The application page, called rssFeed.aspx contains the following mark-up</p>
<div><span style="font-size:x-small;"> </span></div>
<p><span style="font-size:x-small;">&lt;%</p>
<p><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">@</span></span><span style="font-size:x-small;"> </span><span style="color:#a31515;font-size:x-small;"><span style="color:#a31515;font-size:x-small;">Assembly</span></span><span style="font-size:x-small;"> </span><span style="color:#ff0000;font-size:x-small;"><span style="color:#ff0000;font-size:x-small;">Name</span></span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">=&#8221;chrisforbesblogs.RSSTest, Version=1.0.0.0, Culture=neutral, PublicKeyToken=8e473a8929984006&#8243;</span></span><span style="font-size:x-small;"> %&gt;</span></p>
<p>&lt;%</p>
<p><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">@</span></span><span style="font-size:x-small;"> </span><span style="color:#a31515;font-size:x-small;"><span style="color:#a31515;font-size:x-small;">Page</span></span><span style="font-size:x-small;"> </span><span style="color:#ff0000;font-size:x-small;"><span style="color:#ff0000;font-size:x-small;">Language</span></span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">=&#8221;C#&#8221;</span></span><span style="font-size:x-small;"> </span><span style="color:#ff0000;font-size:x-small;"><span style="color:#ff0000;font-size:x-small;">Inherits</span></span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">=&#8221;chrisforbesblogs.RSSTest.rssFeed&#8221;</span></span><span style="font-size:x-small;"> %&gt;</span></p>
<p>&lt;%</p>
<p><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">@</span></span><span style="font-size:x-small;"> </span><span style="color:#a31515;font-size:x-small;"><span style="color:#a31515;font-size:x-small;">OutputCache</span></span><span style="font-size:x-small;"> </span><span style="color:#ff0000;font-size:x-small;"><span style="color:#ff0000;font-size:x-small;">Duration</span></span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">=&#8221;300&#8243;</span></span><span style="font-size:x-small;"> </span><span style="color:#ff0000;font-size:x-small;"><span style="color:#ff0000;font-size:x-small;">VaryByParam</span></span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">=&#8221;xsl;web;page;wp&#8221;</span></span><span style="font-size:x-small;"> </span><span style="color:#ff0000;font-size:x-small;"><span style="color:#ff0000;font-size:x-small;">VaryByCustom</span></span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">=&#8221;rights;feedresults&#8221;</span></span><span style="font-size:x-small;">%&gt;</span></p>
<p></span></p>
<p>In the same solution I created a class file called rssFeed.aspx.cs with the following inheritance from LayoutsPageBase</p>
<div id="codeSnippetWrapper">
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;"><span style="color:#0000ff;">using</span> System;<span style="color:#0000ff;">using</span> System.Collections.Generic;<span style="color:#0000ff;">using</span> System.Text;<span style="color:#0000ff;">using</span> Microsoft.SharePoint;<span style="color:#0000ff;">using</span> Microsoft.SharePoint.WebControls;<span style="color:#0000ff;">using</span> System.Web.UI.WebControls;<span style="color:#0000ff;">using</span> System.Web.UI.HtmlControls;<span style="color:#0000ff;">using</span> System.Xml;<span style="color:#0000ff;">using</span> System.Globalization;

<span style="color:#0000ff;">namespace</span> chrisforbesblogs.RSSTest{    <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">class</span> rssFeed :LayoutsPageBase    {</pre>
</div>
<p>Fields to store relevant objects</p>
<div id="codeSnippetWrapper">
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;"><span style="color:#0000ff;">protected</span> SPList spList;<span style="color:#0000ff;">protected</span> SPWeb spWeb;<span style="color:#0000ff;">protected</span> SPView spView;<span style="color:#0000ff;">protected</span> <span style="color:#0000ff;">string</span> viewName;<span style="color:#0000ff;">protected</span> <span style="color:#0000ff;">string</span> listName;</pre>
</div>
<div id="codeSnippetWrapper"> </div>
<div>In the class I override the OnLoad method. I get the query string values for the required  list and view name and store these in class fields</div>
<div id="codeSnippetWrapper">
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;"><span style="color:#0000ff;">protected</span> <span style="color:#0000ff;">override</span> <span style="color:#0000ff;">void</span> OnLoad(EventArgs e){    <span style="color:#0000ff;">base</span>.OnLoad(e);

   <span style="color:#008000;">// System.Diagnostics.Debugger.Break();</span>

    <span style="color:#0000ff;">if</span> (!Page.IsPostBack)    {

        <span style="color:#0000ff;">try</span>        {

           viewName = (<span style="color:#0000ff;">base</span>.Request.QueryString.GetValues(<span style="color:#006080;">"View"</span>)[0]);                             listName = (<span style="color:#0000ff;">base</span>.Request.QueryString.GetValues(<span style="color:#006080;">"List"</span>)[0]);

           spWeb = SPControl.GetContextWeb(<span style="color:#0000ff;">this</span>.Context);           spList = spWeb.Lists[listName];

           <span style="color:#0000ff;">if</span> (spList == <span style="color:#0000ff;">null</span>) <span style="color:#0000ff;">throw</span> <span style="color:#0000ff;">new</span> Exception(<span style="color:#006080;">"list not found"</span>);           spView = spList.Views[viewName];           <span style="color:#0000ff;">if</span> (spView == <span style="color:#0000ff;">null</span>) <span style="color:#0000ff;">throw</span> <span style="color:#0000ff;">new</span> Exception(<span style="color:#006080;">"View Not Found"</span>);

        }        <span style="color:#0000ff;">catch</span> (Exception ex)        {

            <span style="color:#0000ff;">throw</span> <span style="color:#0000ff;">new</span> SPException(ex.Message);        }

    }}</pre>
</div>
<p>Then in the render method return the relevant xml using some SharePoint API to get the required records and a string builder to construct the XML. You can also create the xml file using System.XML.XMLDocument but I find this way easier to read the XML as I write it.</p>
<div id="codeSnippetWrapper">
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;"><span style="color:#0000ff;">protected</span> <span style="color:#0000ff;">override</span> <span style="color:#0000ff;">void</span>  Render(System.Web.UI.HtmlTextWriter writer){     <span style="color:#0000ff;">base</span>.Render(writer);

     <span style="color:#0000ff;">if</span> (spList != <span style="color:#0000ff;">null</span>)     {

         <span style="color:#0000ff;">base</span>.Response.AppendHeader(<span style="color:#006080;">"ETag"</span>             , spList.CurrentChangeToken.ToString());         <span style="color:#0000ff;">base</span>.Response.AppendHeader(<span style="color:#006080;">"Last-Modified"</span>             , spList.LastItemModifiedDate.ToString(<span style="color:#006080;">"r"</span>             , CultureInfo.InvariantCulture));         <span style="color:#0000ff;">base</span>.Response.ContentType = <span style="color:#006080;">"text/xml"</span>;

         <span style="color:#0000ff;">if</span> (spView != <span style="color:#0000ff;">null</span>)         {             <span style="color:#0000ff;">base</span>.Response.ContentEncoding = Encoding.UTF8;

             <span style="color:#0000ff;">string</span> channelTitle = <span style="color:#006080;">"The RSS Channel title"</span>;             <span style="color:#0000ff;">string</span> channelDescription = <span style="color:#006080;">"The RSS Description"</span>;

             <span style="color:#0000ff;">string</span> channelLink = <span style="color:#006080;">"http://www.chrisforbesblogs.net"</span>;             <span style="color:#0000ff;">string</span> language = <span style="color:#006080;">"en-us"</span>;             <span style="color:#0000ff;">int</span> timeToLive = 60;             <span style="color:#0000ff;">string</span> copyright = <span style="color:#006080;">"Copyright 2009 - "</span>                  + DateTime.Now.Year + <span style="color:#006080;">" ChrisForbesBlogs.net"</span>;

             StringBuilder sb = <span style="color:#0000ff;">new</span> StringBuilder();             sb.Append(                 <span style="color:#006080;">"&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\r\n"</span>);             sb.Append(<span style="color:#006080;">"&lt;rss version=\"2.0\"&gt;\r\n"</span>);             sb.Append(<span style="color:#006080;">"&lt;channel&gt;\r\n"</span>);

             sb.AppendFormat(<span style="color:#006080;">"&lt;title&gt;{0}&lt;/title&gt;\r\n"</span>                 , channelTitle);             sb.AppendFormat(<span style="color:#006080;">"&lt;link&gt;{0}&lt;/link&gt;\r\n"</span>                 , channelLink);             sb.AppendFormat(<span style="color:#006080;">"&lt;description&gt;{0}&lt;/description&gt;\r\n"</span>                 , channelDescription);             sb.AppendFormat(<span style="color:#006080;">"&lt;language&gt;{0}&lt;/language&gt;\r\n"</span>                 , language);             sb.AppendFormat(<span style="color:#006080;">"&lt;ttl&gt;{0}&lt;/ttl&gt;\r\n"</span>, timeToLive);             sb.AppendFormat(<span style="color:#006080;">"&lt;copyright&gt;{0}&lt;/copyright&gt;\r\n"</span>                 , copyright);

             <span style="color:#0000ff;">string</span> spTitle = <span style="color:#006080;">""</span>;             <span style="color:#0000ff;">string</span> spDescription = <span style="color:#006080;">""</span>;             <span style="color:#0000ff;">string</span> spDate = <span style="color:#006080;">""</span>;             <span style="color:#0000ff;">string</span> spAuthor = <span style="color:#006080;">"Chris Forbes"</span>;

             sb.AppendFormat(                <span style="color:#006080;">"&lt;lastBuildDate&gt;{0}&lt;/lastBuildDate&gt;\r\n"</span>                 , DateTime.Now.Date.ToShortDateString());

             SPListItemCollection items = spList.GetItems(spView);             <span style="color:#0000ff;">foreach</span> (SPListItem item <span style="color:#0000ff;">in</span> items)             {                 <span style="color:#008000;">//Make sure you are pulling back valid</span>                 <span style="color:#008000;">//SharePoint fields which are listed in the view</span>                 <span style="color:#0000ff;">if</span> (item[<span style="color:#006080;">"Title"</span>] != <span style="color:#0000ff;">null</span>)                     spTitle = item[<span style="color:#006080;">"Title"</span>].ToString();

                 <span style="color:#0000ff;">if</span> (item[<span style="color:#006080;">"Description"</span>] != <span style="color:#0000ff;">null</span>)                     spTitle = item[<span style="color:#006080;">"Description"</span>].ToString();

                 <span style="color:#0000ff;">if</span> (item[<span style="color:#006080;">"PageDate"</span>] != <span style="color:#0000ff;">null</span>)                     spTitle = item[<span style="color:#006080;">"PageDate"</span>].ToString();

                 sb.AppendFormat(<span style="color:#006080;">"&lt;item&gt;\r\n"</span>);                 sb.AppendFormat(<span style="color:#006080;">"&lt;title&gt;{0}&lt;/title&gt;"</span>, spTitle);                 sb.AppendFormat(<span style="color:#006080;">"&lt;link&gt;&lt;![CDATA[{0}]]&gt;&lt;/link&gt;\r\n"</span>                     , item.Url);                 sb.AppendFormat(                     <span style="color:#006080;">"&lt;description&gt;&lt;![CDATA[{0}]]&gt;&lt;/description&gt;\r\n"</span>                     , spDescription);                 sb.AppendFormat(<span style="color:#006080;">"&lt;author&gt;{0}&lt;/author&gt;\r\n"</span>                    , spAuthor);                 sb.AppendFormat(<span style="color:#006080;">"&lt;pubDate&gt;{0}&lt;/pubDate&gt;\r\n"</span>                    , spDate);                 sb.AppendFormat(<span style="color:#006080;">"&lt;/item&gt;\r\n"</span>);

             }

             sb.AppendFormat(<span style="color:#006080;">"&lt;/channel&gt;\r\n"</span>);             sb.AppendFormat(<span style="color:#006080;">"&lt;/rss&gt;\r\n"</span>);

             <span style="color:#0000ff;">base</span>.Response.Write(sb.ToString());         }

     }}</pre>
</div>
<p>I wrapped the returned field values in &lt;![CDATA[]]&gt; to ensure any illegal characters are ignored by the XML.</p>
<p>As I mentioned earlier you could easily extend this code to use SPQuery instead of relying on an existing view. You could also access a number of lists and aggregate the content into a single feed.</p>
<p>If your publishing this to an anonymous access site then you will have to add some additional methods to prevent an authentication challenge. If you look back the out of the box class file you can see some additional methods which handle this.</p>
<div><span style="font-size:x-small;"> </span></div>
<p><span style="font-size:x-small;"><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">protected</span></span><span style="font-size:x-small;"> </span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">override</span></span><span style="font-size:x-small;"> </span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">bool</span></span><span style="font-size:x-small;"> AllowAnonymousAccess</span></p>
<p>{</p>
<p><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">get</span></span></p>
<div><span style="font-size:x-small;"> </span></div>
<p></span><span style="font-size:x-small;">{</p>
<p><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">return</span></span><span style="font-size:x-small;"> </span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">true</span></span><span style="font-size:x-small;">;</span></p>
<p>}</p>
<p>}</p>
<p><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">protected</span></span><span style="font-size:x-small;"> </span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">override</span></span><span style="font-size:x-small;"> </span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">bool</span></span><span style="font-size:x-small;"> RequireDefaultLayoutsRights</span></p>
<p>{</p>
<p><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">get</span></span></p>
<div><span style="font-size:x-small;"> </span></div>
<p></span><span style="font-size:x-small;">{</p>
<p><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">return</span></span><span style="font-size:x-small;"> </span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">false</span></span><span style="font-size:x-small;">;</span></p>
<p>}</p>
<p>}</p>
<p><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">protected</span></span><span style="font-size:x-small;"> </span><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">override</span></span><span style="font-size:x-small;"> </span><span style="color:#2b91af;font-size:x-small;"><span style="color:#2b91af;font-size:x-small;">SPBasePermissions</span></span><span style="font-size:x-small;"> RightsRequired</span></p>
<p>{</p>
<p><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">get</span></span></p>
<div><span style="font-size:x-small;"> </span></div>
<p></span><span style="font-size:x-small;">{</p>
<p><span style="color:#0000ff;font-size:x-small;"><span style="color:#0000ff;font-size:x-small;">return</span></span><span style="font-size:x-small;"> (</span><span style="color:#2b91af;font-size:x-small;"><span style="color:#2b91af;font-size:x-small;">SPBasePermissions</span></span><span style="font-size:x-small;">.EmptyMask | </span><span style="color:#2b91af;font-size:x-small;"><span style="color:#2b91af;font-size:x-small;">SPBasePermissions</span></span><span style="font-size:x-small;">.Open);</span></p>
<p>}</p>
<p>}</p>
<p></span></p>
<p>Anyway hope the above is of some help to you, happy coding <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:848a53c5-22c6-4a0e-bd4e-18ff987b2019" class="wlWriterEditableSmartContent" style="display:inline;float:none;margin:0;padding:0;">Technorati Tags: <a rel="tag" href="http://technorati.com/tags/SharePoint">SharePoint</a>,<a rel="tag" href="http://technorati.com/tags/RSS">RSS</a>,<a rel="tag" href="http://technorati.com/tags/Generating+RSS+from+SharePoint">Generating RSS from SharePoint</a></div>
<div id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:5990f82b-5187-4343-814d-bcffee0ab6a9" class="wlWriterEditableSmartContent" style="display:inline;float:none;margin:0;padding:0;">del.icio.us Tags: <a rel="tag" href="http://del.icio.us/popular/SharePoint">SharePoint</a>,<a rel="tag" href="http://del.icio.us/popular/RSS">RSS</a>,<a rel="tag" href="http://del.icio.us/popular/Generating+RSS+from+SharePoint">Generating RSS from SharePoint</a></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chrisforbesblogs.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chrisforbesblogs.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chrisforbesblogs.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chrisforbesblogs.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chrisforbesblogs.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chrisforbesblogs.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chrisforbesblogs.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chrisforbesblogs.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chrisforbesblogs.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chrisforbesblogs.wordpress.com/117/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisforbesblogs.net&blog=6742676&post=117&subd=chrisforbesblogs&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://chrisforbesblogs.net/2010/01/18/creating-an-rss-generator-in-sharepoint/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed3e25ef8a88f8fff819a7722f1805a9?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">chrisforbesblogs</media:title>
		</media:content>

		<media:content url="http://chrisforbesblogs.files.wordpress.com/2010/01/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://chrisforbesblogs.files.wordpress.com/2010/01/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>The Managed Metadata Service or Connection is currently not available&#8230;</title>
		<link>http://chrisforbesblogs.net/2009/12/02/the-managed-metadata-service-or-connection-is-currently-not-available/</link>
		<comments>http://chrisforbesblogs.net/2009/12/02/the-managed-metadata-service-or-connection-is-currently-not-available/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 17:07:16 +0000</pubDate>
		<dc:creator>Chris Forbes</dc:creator>
				<category><![CDATA[Managed Metatdata Service]]></category>
		<category><![CDATA[SharePoint 2010]]></category>

		<guid isPermaLink="false">http://chrisforbesblogs.wordpress.com/2009/12/02/the-managed-metadata-service-or-connection-is-currently-not-available/</guid>
		<description><![CDATA[When you access the ‘Managed Metadata Service’ Management Tool from Central Admin – Manage Service…

Click for larger image
You receive the following error…
The Managed Metadata Service or Connection is currently not available. The Application Pool or Managed Metadata Web Service may not have been started, Contact your Administrator.

 
Click for larger image
So, obviously I checked the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisforbesblogs.net&blog=6742676&post=110&subd=chrisforbesblogs&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>When you access the ‘Managed Metadata Service’ Management Tool from Central Admin – Manage Service…</p>
<p><a href="http://chrisforbesblogs.files.wordpress.com/2009/12/image2.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://chrisforbesblogs.files.wordpress.com/2009/12/image_thumb2.png?w=454&#038;h=220" width="454" height="220" /></a></p>
<h6 align="center"><font size="1"><em>Click for larger image</em></font></h6>
<p align="left">You receive the following error…</p>
<blockquote><p align="left"><font color="#ff0000">The Managed Metadata Service or Connection is currently not available. The Application Pool or Managed Metadata Web Service may not have been started, Contact your Administrator.</font></p>
</blockquote>
<p align="left"><a href="http://chrisforbesblogs.files.wordpress.com/2009/12/image3.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://chrisforbesblogs.files.wordpress.com/2009/12/image_thumb3.png?w=470&#038;h=263" width="470" height="263" /></a> </p>
<p align="center"><em><font size="1">Click for larger image</font></em></p>
<p align="left">So, obviously I checked the Managed Metadata Service and this was indeed started. So after much troubleshooting and several term store recreations I double checked the SharePoint 2010 Installation guides and spotted that there is now a required WCF hot fix.</p>
<p align="left">After installing this the problem is resolved <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p align="left">You can get the hot fix ‘<em>KB976462 – SharePoint Shared Services Roll-ip’ at </em>
<p align="left"><a title="http://code.msdn.microsoft.com/KB976462/Release/ProjectReleases.aspx?ReleaseId=3571" href="http://code.msdn.microsoft.com/KB976462/Release/ProjectReleases.aspx?ReleaseId=3571">http://code.msdn.microsoft.com/KB976462/Release/ProjectReleases.aspx?ReleaseId=3571</a><em><font size="1"></font></em></p>
</p>
<p align="left">&#160;</p>
<p align="left">&#160;</p>
<p align="left">&#160;</p>
<p align="left">&#160;</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:1f6fd2e2-594a-4569-81bf-d32fe9f6cdc2" class="wlWriterEditableSmartContent">del.icio.us Tags: <a href="http://del.icio.us/popular/SharePoint+2010" rel="tag">SharePoint 2010</a>,<a href="http://del.icio.us/popular/Managed+Metadata+Service" rel="tag">Managed Metadata Service</a></div>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:0209517f-0824-497a-a06a-0609215d6369" class="wlWriterEditableSmartContent">Technorati Tags: <a href="http://technorati.com/tags/SharePoint+2010" rel="tag">SharePoint 2010</a>,<a href="http://technorati.com/tags/Managed+Metadata+Service" rel="tag">Managed Metadata Service</a></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chrisforbesblogs.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chrisforbesblogs.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chrisforbesblogs.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chrisforbesblogs.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chrisforbesblogs.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chrisforbesblogs.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chrisforbesblogs.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chrisforbesblogs.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chrisforbesblogs.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chrisforbesblogs.wordpress.com/110/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisforbesblogs.net&blog=6742676&post=110&subd=chrisforbesblogs&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://chrisforbesblogs.net/2009/12/02/the-managed-metadata-service-or-connection-is-currently-not-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed3e25ef8a88f8fff819a7722f1805a9?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">chrisforbesblogs</media:title>
		</media:content>

		<media:content url="http://chrisforbesblogs.files.wordpress.com/2009/12/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://chrisforbesblogs.files.wordpress.com/2009/12/image_thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Problem with User Profile Service in SharePoint 2010</title>
		<link>http://chrisforbesblogs.net/2009/12/01/problem-with-user-profile-service-in-sharepoint-2010/</link>
		<comments>http://chrisforbesblogs.net/2009/12/01/problem-with-user-profile-service-in-sharepoint-2010/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 20:29:14 +0000</pubDate>
		<dc:creator>Chris Forbes</dc:creator>
				<category><![CDATA[SharePoint 2010]]></category>

		<guid isPermaLink="false">http://chrisforbesblogs.wordpress.com/2009/12/01/problem-with-user-profile-service-in-sharepoint-2010/</guid>
		<description><![CDATA[Bit of a random problem but I received the follo wing error across the top of the ‘User Profile Service Application’ page in SharePoint 2010 Beta 2…
User Profile Application’s connection is currently not available. The Application Pool or User Profile Service may not have been started. Please contact your administrator”.
I found the following blog posting [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisforbesblogs.net&blog=6742676&post=97&subd=chrisforbesblogs&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Bit of a random problem but I received the follo wing error across the top of the ‘User Profile Service Application’ page in SharePoint 2010 Beta 2…</p>
<p><a href="http://chrisforbesblogs.files.wordpress.com/2009/12/image.png"><img style="border-bottom:0;border-left:0;display:inline;margin-left:0;border-top:0;margin-right:0;border-right:0;" title="image" border="0" alt="image" align="left" src="http://chrisforbesblogs.files.wordpress.com/2009/12/image_thumb.png?w=38&#038;h=41" width="38" height="41" /></a><em><font color="#ff0000">User Profile Application’s connection is currently not available. The Application Pool or User Profile Service may not have been started. Please contact your administrator”.</font></em></p>
<p>I found the following blog posting from Travis Nielsen who had also received this message and his posting worked for me. </p>
<p>To avoid repeating what Travis has to say read…</p>
<p><a href="http://blogs.pointbridge.com/Blogs/nielsen_travis/Pages/Post.aspx?_ID=30">http://blogs.pointbridge.com/Blogs/nielsen_travis/Pages/Post.aspx?_ID=30</a></p>
<p>Travis talked about commenting out&#160; the allowinsecuretransport attribute This is what the commented out section of the client.config file looked like for me. Note there are two references to this, so I commented out both.</p>
<p>&#160;</p>
<div id="codeSnippetWrapper"><a href="http://chrisforbesblogs.files.wordpress.com/2009/12/image1.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://chrisforbesblogs.files.wordpress.com/2009/12/image_thumb1.png?w=467&#038;h=218" width="467" height="218" /></a>&#160;</div>
<p>After you have made the change remember to do an IISRESET.</p>
<p>&#160;</p>
<p>&#160;</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:52ec12a6-8ff7-491f-ac2d-8f655c946998" class="wlWriterEditableSmartContent">Technorati Tags: <a href="http://technorati.com/tags/SharePoint+2010" rel="tag">SharePoint 2010</a>,<a href="http://technorati.com/tags/User+Profile+Service" rel="tag">User Profile Service</a></div>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:d530ff69-1cde-430f-a14c-fd7989ab1d33" class="wlWriterEditableSmartContent">del.icio.us Tags: <a href="http://del.icio.us/popular/SharePoint+2010" rel="tag">SharePoint 2010</a>,<a href="http://del.icio.us/popular/User+Profile+Service" rel="tag">User Profile Service</a></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chrisforbesblogs.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chrisforbesblogs.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chrisforbesblogs.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chrisforbesblogs.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chrisforbesblogs.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chrisforbesblogs.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chrisforbesblogs.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chrisforbesblogs.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chrisforbesblogs.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chrisforbesblogs.wordpress.com/97/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisforbesblogs.net&blog=6742676&post=97&subd=chrisforbesblogs&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://chrisforbesblogs.net/2009/12/01/problem-with-user-profile-service-in-sharepoint-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed3e25ef8a88f8fff819a7722f1805a9?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">chrisforbesblogs</media:title>
		</media:content>

		<media:content url="http://chrisforbesblogs.files.wordpress.com/2009/12/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://chrisforbesblogs.files.wordpress.com/2009/12/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>How to create a Search Box delegate in SharePoint</title>
		<link>http://chrisforbesblogs.net/2009/11/09/how-to-create-a-search-box-delegate-in-sharepoint/</link>
		<comments>http://chrisforbesblogs.net/2009/11/09/how-to-create-a-search-box-delegate-in-sharepoint/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 20:37:18 +0000</pubDate>
		<dc:creator>Chris Forbes</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Delegates]]></category>
		<category><![CDATA[Search]]></category>

		<guid isPermaLink="false">http://chrisforbesblogs.wordpress.com/2009/11/09/how-to-create-a-search-box-delegate-in-sharepoint/</guid>
		<description><![CDATA[Simple but effective…I recently had to change the behaviour of the ‘SmallSearchBox’ control within&#160; SharePoint. I wanted to loose the ‘Advanced Search;’ link, the button style and also add some default text into the search box. I found the following method to be the simplest approach.
Standard Search Box
 
&#160;
Custom delegate applied
 
The search box is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisforbesblogs.net&blog=6742676&post=94&subd=chrisforbesblogs&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://chrisforbesblogs.files.wordpress.com/2009/11/search48x48.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;margin:0 15px 0 0;" title="Search-48x48" border="0" alt="Search-48x48" align="left" src="http://chrisforbesblogs.files.wordpress.com/2009/11/search48x48_thumb.png?w=48&#038;h=48" width="48" height="48" /></a>Simple but effective…I recently had to change the behaviour of the ‘SmallSearchBox’ control within&#160; SharePoint. I wanted to loose the ‘Advanced Search;’ link, the button style and also add some default text into the search box. I found the following method to be the simplest approach.</p>
<p><em>Standard Search Box</em></p>
<p> <a href="http://chrisforbesblogs.files.wordpress.com/2009/11/image.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://chrisforbesblogs.files.wordpress.com/2009/11/image_thumb.png?w=469&#038;h=176" width="469" height="176" /></a></p>
<p>&#160;</p>
<p><em>Custom delegate applied</em></p>
<p style="font-family:tahoma;font-size:10pt;margin:0;"><a href="http://chrisforbesblogs.files.wordpress.com/2009/11/image1.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://chrisforbesblogs.files.wordpress.com/2009/11/image_thumb1.png?w=460&#038;h=149" width="460" height="149" /></a> </p>
<p>The search box is rendered using a delegate control. If you look at the master page you will see the delegate …</p>
<p>&lt;SharePoint:DelegateControl runat=”server” ControlId=” SmallSearchBox”&gt;</p>
<p>You can alter the behaviour of a delegate control by specifying a delegate with a smaller sequence number. I created the following delegate control within a standard feature…</p>
<p>Feature…</p>
<p style="margin:0 0 12pt;" class="MsoNormal"><span style="font-family:&quot;color:blue;font-size:10pt;">&lt;?</span><span style="font-family:&quot;color:#a31515;font-size:10pt;">xml</span><span style="font-family:&quot;color:blue;font-size:10pt;"> </span><span style="font-family:&quot;color:red;font-size:10pt;">version</span><span style="font-family:&quot;color:blue;font-size:10pt;">=</span><span style="font-family:&quot;font-size:10pt;"><font color="#000000">&quot;</font><span style="color:blue;">1.0</span><font color="#000000">&quot;</font><span style="color:blue;"> </span><span style="color:red;">encoding</span><span style="color:blue;">=</span><font color="#000000">&quot;</font><span style="color:blue;">utf-8</span><font color="#000000">&quot;</font><span style="color:blue;">?&gt;       <br />&lt;</span><span style="color:#a31515;">Elements</span><span style="color:blue;"> </span><span style="color:red;">xmlns</span><span style="color:blue;">=</span><font color="#000000">&quot;</font><span style="color:blue;"><a href="http://schemas.microsoft.com/sharepoint/"><font color="#0000ff">http://schemas.microsoft.com/sharepoint/</font></a></span><font color="#000000">&quot;</font><span style="color:blue;">&gt;</span></span></p>
<p> <span style="font-family:&quot;font-size:10pt;"><span style="color:blue;">
<p style="margin:0 0 12pt;" class="MsoNormal">&lt;</p>
<p>     <span style="color:#a31515;">Control</span><span style="color:blue;"> </span><span style="color:red;">Id</span><span style="color:blue;">=</span><font color="#000000">&quot;</font><span style="color:blue;">SmallSearchInputBox</span><font color="#000000">&quot;</font><span style="color:blue;"> </span><span style="color:red;">Sequence</span><span style="color:blue;">=</span><font color="#000000">&quot;</font><span style="color:blue;">10</span><font color="#000000">&quot;</font><span style="color:blue;"> </span></span>
<p style="margin:0 0 12pt;" class="MsoNormal"><span style="color:blue;"></span><span style="color:red;">ControlClass</span><span style="color:blue;">=</span><font color="#000000">&quot;</font><span style="color:blue;">Microsoft.SharePoint.Portal.WebControls.SearchBoxEx</span><font color="#000000">&quot;</font><span style="color:blue;"> </span><span style="color:red;">ControlAssembly</span><span style="color:blue;">=</span><font color="#000000">&quot;</font><span style="color:blue;">Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</span><font color="#000000">&quot;</font><span style="color:blue;">&gt;       <br />&lt;</span><span style="color:#a31515;">Property</span><span style="color:blue;"> </span><span style="color:red;">Name</span><span style="color:blue;">=</span><font color="#000000">&quot;</font><span style="color:blue;">GoImageUrl</span><font color="#000000">&quot;</font><span style="color:blue;">&gt;</span><font color="#000000">/_layouts/images/CFB/go.gif</font><span style="color:blue;">&lt;/</span><span style="color:#a31515;">Property</span><span style="color:blue;">&gt;       <br />&lt;</span><span style="color:#a31515;">Property</span><span style="color:blue;"> </span><span style="color:red;">Name</span><span style="color:blue;">=</span><font color="#000000">&quot;</font><span style="color:blue;">GoImageUrlRTL</span><font color="#000000">&quot;</font><span style="color:blue;">&gt;</span><font color="#000000">/_layouts/images/CFB/.gif</font><span style="color:blue;">&lt;/</span><span style="color:#a31515;">Property</span><span style="color:blue;">&gt;       <br />&lt;</span><span style="color:#a31515;">Property</span><span style="color:blue;"> </span><span style="color:red;">Name</span><span style="color:blue;">=</span><font color="#000000">&quot;</font><span style="color:blue;">GoImageActiveUrl</span><font color="#000000">&quot;</font><span style="color:blue;">&gt;</span><font color="#000000">/_layouts/images/CFB/go.gif</font><span style="color:blue;">&lt;/</span><span style="color:#a31515;">Property</span><span style="color:blue;">&gt;       <br />&lt;</span><span style="color:#a31515;">Property</span><span style="color:blue;"> </span><span style="color:red;">Name</span><span style="color:blue;">=</span><font color="#000000">&quot;</font><span style="color:blue;">GoImageActiveUrlRTL</span><font color="#000000">&quot;</font><span style="color:blue;">&gt;</span><font color="#000000">/_layouts/images/CFB/go.gif</font><span style="color:blue;">&lt;/</span><span style="color:#a31515;">Property</span><span style="color:blue;">&gt;       <br />&lt;</span><span style="color:#a31515;">Property</span><span style="color:blue;"> </span><span style="color:red;">Name</span><span style="color:blue;">=</span><font color="#000000">&quot;</font><span style="color:blue;">UseSiteDefaults</span><font color="#000000">&quot;</font><span style="color:blue;">&gt;</span><font color="#000000">true</font><span style="color:blue;">&lt;/</span><span style="color:#a31515;">Property</span><span style="color:blue;">&gt;       <br />&lt;</span><span style="color:#a31515;">Property</span><span style="color:blue;"> </span><span style="color:red;">Name</span><span style="color:blue;">=</span><font color="#000000">&quot;</font><span style="color:blue;">FrameType</span><font color="#000000">&quot;</font><span style="color:blue;">&gt;</span><font color="#000000">None</font><span style="color:blue;">&lt;/</span><span style="color:#a31515;">Property</span><span style="color:blue;">&gt;       </p>
<p>&lt;</span><span style="color:#a31515;">Property</span><span style="color:blue;"> </span><span style="color:red;">Name</span><span style="color:blue;">=</span><font color="#000000">&quot;</font><span style="color:blue;">ShowAdvancedSearch</span><font color="#000000">&quot;</font><span style="color:blue;">&gt;</span><font color="#000000">false</font><span style="color:blue;">&lt;/</span><span style="color:#a31515;">Property</span><span style="color:blue;">&gt;       <br />&lt;</span><span style="color:#a31515;">Property</span><span style="color:blue;"> </span><span style="color:red;">Name</span><span style="color:blue;">=</span><font color="#000000">&quot;</font><span style="color:blue;">QueryPromptString</span><font color="#000000">&quot;</font><span style="color:blue;">&gt;</span><font color="#000000">Search&#8230;</font><span style="color:blue;">&lt;/</span><span style="color:#a31515;">Property</span><span style="color:blue;">&gt;       <br />&lt;</span><span style="color:#a31515;">Property</span><span style="color:blue;"> </span><span style="color:red;">Name</span><span style="color:blue;">=</span><font color="#000000">&quot;</font><span style="color:blue;">DropDownMode</span><font color="#000000">&quot;</font><span style="color:blue;">&gt;</span><font color="#000000">HideDD_useDefaultScope</font><span style="color:blue;">&lt;/</span><span style="color:#a31515;">Property</span><span style="color:blue;">&gt;</span></p>
<p style="margin:0 0 12pt;" class="MsoNormal"><span style="color:blue;"></span><span style="color:blue;">       <br />&lt;/</span><span style="color:#a31515;">Control</span><span style="color:blue;">&gt;</span></p>
<p style="margin:0 0 12pt;" class="MsoNormal"><span style="color:blue;">&lt;/</span><span style="color:#a31515;">Elements</span><span style="color:blue;">&gt;</span>
</p>
<p> </span>
<p>Note the Sequence=”10” attribute of the Control element. WSS out of the box refers to a sequence number of 100 and MOSS overrides this with a sequence number of 50. So as long as your sequence number is lower than this then your settings will be applied.</p>
<p>The four changes I was concerned was</p>
<p>1. Remove the ‘advanced search’ link which is handled by&#160; the ‘ShowAdvancedSearch’ property, </p>
<p>2.Add some default text to the search box which is handcled by&#160; the QueryPromptString property </p>
<p>3. Remove the scope drop down field. The DropDownMode property with the enumuration value of HideDD_userDefaultScope sorts that one out.</p>
<p>4. Finally I changed the image to my own go.gif image. I also deployed this within the same feature to a sub directory called CFB within the 12 hive images folder.</p>
<p>For a complete listing of the available properties please refer to the following link on MSDN.</p>
<p><a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.portal.webcontrols.searchboxex_members.aspx">http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.portal.webcontrols.searchboxex_members.aspx</a></p>
<p>&#160;</p>
</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:27c59b84-c0bc-4633-86e5-85a264a53d3d" class="wlWriterEditableSmartContent">del.icio.us Tags: <a href="http://del.icio.us/popular/SharePoint" rel="tag">SharePoint</a>,<a href="http://del.icio.us/popular/SmallSearchBox" rel="tag">SmallSearchBox</a>,<a href="http://del.icio.us/popular/Delegate" rel="tag">Delegate</a>,<a href="http://del.icio.us/popular/Searchbox" rel="tag">Searchbox</a></div>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:e9c7831d-ca6c-420b-bf2f-426a1f6ca2e2" class="wlWriterEditableSmartContent">Technorati Tags: <a href="http://technorati.com/tags/SharePoint" rel="tag">SharePoint</a>,<a href="http://technorati.com/tags/SmallSearchBox" rel="tag">SmallSearchBox</a>,<a href="http://technorati.com/tags/Delegate" rel="tag">Delegate</a>,<a href="http://technorati.com/tags/Searchbox" rel="tag">Searchbox</a></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chrisforbesblogs.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chrisforbesblogs.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chrisforbesblogs.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chrisforbesblogs.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chrisforbesblogs.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chrisforbesblogs.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chrisforbesblogs.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chrisforbesblogs.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chrisforbesblogs.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chrisforbesblogs.wordpress.com/94/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisforbesblogs.net&blog=6742676&post=94&subd=chrisforbesblogs&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://chrisforbesblogs.net/2009/11/09/how-to-create-a-search-box-delegate-in-sharepoint/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed3e25ef8a88f8fff819a7722f1805a9?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">chrisforbesblogs</media:title>
		</media:content>

		<media:content url="http://chrisforbesblogs.files.wordpress.com/2009/11/search48x48_thumb.png" medium="image">
			<media:title type="html">Search-48x48</media:title>
		</media:content>

		<media:content url="http://chrisforbesblogs.files.wordpress.com/2009/11/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://chrisforbesblogs.files.wordpress.com/2009/11/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>How to you describe SharePoint to your customers</title>
		<link>http://chrisforbesblogs.net/2009/09/01/how-to-you-describe-sharepoint-to-your-customers/</link>
		<comments>http://chrisforbesblogs.net/2009/09/01/how-to-you-describe-sharepoint-to-your-customers/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 19:22:28 +0000</pubDate>
		<dc:creator>Chris Forbes</dc:creator>
				<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[SharePoint in Plain English]]></category>

		<guid isPermaLink="false">http://chrisforbesblogs.wordpress.com/2009/09/01/how-to-you-describe-sharepoint-to-your-customers/</guid>
		<description><![CDATA[If like me you find it impossible to describe SharePoint without at least 10 minutes, the use of 1,000 words and a whiteboard then you might find this video from Microsoft useful…
&#160;



&#160;
&#160;

del.icio.us Tags: SharePoint 2010,SharePoint in plain english

Technorati Tags: SharePoint 2010,SharePoint in plain english
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisforbesblogs.net&blog=6742676&post=87&subd=chrisforbesblogs&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>If like me you find it impossible to describe SharePoint without at least 10 minutes, the use of 1,000 words and a whiteboard then you might find this video from Microsoft useful…</p>
<p>&#160;</p>
<div class="wlWriterEditableSmartContent" id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:c0f9cb2b-db79-4509-8464-8e75ed9766ec" style="display:block;float:none;width:425px;margin:0 auto;padding:0;">
<div><span style="text-align:center; display: block;"><a href="http://chrisforbesblogs.net/2009/09/01/how-to-you-describe-sharepoint-to-your-customers/"><img src="http://img.youtube.com/vi/s12Jb5Z2xaE/2.jpg" alt="" /></a></span></div>
</div>
<p>&#160;</p>
<p>&#160;</p>
<p>
<div class="wlWriterEditableSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:54d0a2ec-5448-4ada-b91e-f03c13c31d49" style="display:inline;float:none;margin:0;padding:0;">del.icio.us Tags: <a href="http://del.icio.us/popular/SharePoint+2010" rel="tag">SharePoint 2010</a>,<a href="http://del.icio.us/popular/SharePoint+in+plain+english" rel="tag">SharePoint in plain english</a></div>
</p>
<div class="wlWriterEditableSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:8fdb5ee3-f2cb-4d22-b77d-dc31319e8301" style="display:inline;float:none;margin:0;padding:0;">Technorati Tags: <a href="http://technorati.com/tags/SharePoint+2010" rel="tag">SharePoint 2010</a>,<a href="http://technorati.com/tags/SharePoint+in+plain+english" rel="tag">SharePoint in plain english</a></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chrisforbesblogs.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chrisforbesblogs.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chrisforbesblogs.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chrisforbesblogs.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chrisforbesblogs.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chrisforbesblogs.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chrisforbesblogs.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chrisforbesblogs.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chrisforbesblogs.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chrisforbesblogs.wordpress.com/87/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisforbesblogs.net&blog=6742676&post=87&subd=chrisforbesblogs&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://chrisforbesblogs.net/2009/09/01/how-to-you-describe-sharepoint-to-your-customers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed3e25ef8a88f8fff819a7722f1805a9?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">chrisforbesblogs</media:title>
		</media:content>

		<media:content url="http://img.youtube.com/vi/s12Jb5Z2xaE/2.jpg" medium="image" />
	</item>
		<item>
		<title>SharePoint 2010 Sneak Peek</title>
		<link>http://chrisforbesblogs.net/2009/07/13/sharepoint-2010-sneak-peek/</link>
		<comments>http://chrisforbesblogs.net/2009/07/13/sharepoint-2010-sneak-peek/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 21:36:44 +0000</pubDate>
		<dc:creator>Chris Forbes</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2010]]></category>

		<guid isPermaLink="false">http://chrisforbesblogs.wordpress.com/2009/07/13/sharepoint-2010-sneak-peek/</guid>
		<description><![CDATA[
Well at last we get can get a glimpse into some of the features coming out in SharePoint 2010, due for main release in the first half of next year. (PS No NDAs broken here, this stuff is all publically available from the Microsoft Web site   )
&#160;
The Developer Dashboard
Check out the ‘Developer Dashboard’ [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisforbesblogs.net&blog=6742676&post=81&subd=chrisforbesblogs&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<h2><a href="http://chrisforbesblogs.files.wordpress.com/2009/07/sp2010logo.png"></a></h2>
<p><a href="http://chrisforbesblogs.files.wordpress.com/2009/07/sp2010logo.png"><img title="SP2010 logo" style="border-right:0;border-top:0;display:inline;margin-left:0;border-left:0;margin-right:0;border-bottom:0;" height="79" alt="SP2010 logo" src="http://chrisforbesblogs.files.wordpress.com/2009/07/sp2010logo_thumb.png?w=258&#038;h=79" width="258" align="right" border="0" /></a>Well at <strong>last </strong>we get can get a glimpse into some of the features coming out in SharePoint 2010, due for main release in the first half of next year. (PS No NDAs broken here, this stuff is all publically available from the Microsoft Web site <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )</p>
<p>&#160;</p>
<h2>The Developer Dashboard</h2>
<p>Check out the ‘Developer Dashboard’ where you can <em>“review diagnostic information including detailed page request information such as timings, names and resources for all stored procedures calls, memory used and authenticated user, the number of SPRequests objects, any asserts and critical events and timings for web parts events for the page rendering” – </em>and breath</p>
<p><a href="http://chrisforbesblogs.files.wordpress.com/2009/07/developerdashboard.png"><img title="developerDashboard" style="border-right:0;border-top:0;display:inline;border-left:0;border-bottom:0;" height="370" alt="developerDashboard" src="http://chrisforbesblogs.files.wordpress.com/2009/07/developerdashboard_thumb.png?w=479&#038;h=370" width="479" border="0" /></a> </p>
<h2>LINQ for SharePoint</h2>
<p>Use LINQ to access SharePoint lists, </p>
<p>joins and projections</p>
<h2>Visual Studio 2010</h2>
<p>Some amazing improvements to the development experience within Visual Studio. Life might just get a little simpler from now one?</p>
<h2>SharePoint explorer</h2>
<p>Cool, you no longer need to use <a href="http://spm.codeplex.com/" target="_blank">SharePoint Manager 2007</a> (Although this is an excellent tool) You can now explore SharePoint directly from Visual Studio 2010</p>
<h2>Visual Web Part Designer</h2>
<p>You have to look at the visual web part designer. Design web parts just like web pages. Drag and drop those controls and away you go! <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h2>Business Connectivity Services – The new BDC!</h2>
<p>So Read/Write capabilities are now included in the new BDC, that&#8217;s great and is going to be SO powerful! </p>
<h2>&#160;</h2>
<p><strong>…..check out the videos online </strong><a href="http://sharepoint.microsoft.com/2010/Sneak_Peek/Pages/Developer-Video.aspx" target="_blank"><strong>here</strong></a></p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>
<div class="wlWriterEditableSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:f0a00bad-0edb-4e4d-8109-f8bc8859d81b" style="display:inline;float:none;margin:0;padding:0;">del.icio.us Tags: <a href="http://del.icio.us/popular/SharePoint+2010" rel="tag">SharePoint 2010</a>,<a href="http://del.icio.us/popular/Developer+Dashboard" rel="tag">Developer Dashboard</a>,<a href="http://del.icio.us/popular/LINQ+for+SharePoint" rel="tag">LINQ for SharePoint</a></div>
</p>
<div class="wlWriterEditableSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:328a1de2-dadd-454c-95b7-6c86eb15ba75" style="display:inline;float:none;margin:0;padding:0;">Technorati Tags: <a href="http://technorati.com/tags/SharePoint+2010" rel="tag">SharePoint 2010</a>,<a href="http://technorati.com/tags/Developer+Dashboard" rel="tag">Developer Dashboard</a>,<a href="http://technorati.com/tags/LINQ+for+SharePoint" rel="tag">LINQ for SharePoint</a></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chrisforbesblogs.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chrisforbesblogs.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chrisforbesblogs.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chrisforbesblogs.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chrisforbesblogs.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chrisforbesblogs.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chrisforbesblogs.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chrisforbesblogs.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chrisforbesblogs.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chrisforbesblogs.wordpress.com/81/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisforbesblogs.net&blog=6742676&post=81&subd=chrisforbesblogs&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://chrisforbesblogs.net/2009/07/13/sharepoint-2010-sneak-peek/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed3e25ef8a88f8fff819a7722f1805a9?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">chrisforbesblogs</media:title>
		</media:content>

		<media:content url="http://chrisforbesblogs.files.wordpress.com/2009/07/sp2010logo_thumb.png" medium="image">
			<media:title type="html">SP2010 logo</media:title>
		</media:content>

		<media:content url="http://chrisforbesblogs.files.wordpress.com/2009/07/developerdashboard_thumb.png" medium="image">
			<media:title type="html">developerDashboard</media:title>
		</media:content>
	</item>
		<item>
		<title>Using the SharePoint dispose checker tool</title>
		<link>http://chrisforbesblogs.net/2009/06/08/using-the-sharepoint-dispose-checker-tool/</link>
		<comments>http://chrisforbesblogs.net/2009/06/08/using-the-sharepoint-dispose-checker-tool/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 19:12:57 +0000</pubDate>
		<dc:creator>Chris Forbes</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Dispose Checker]]></category>
		<category><![CDATA[IDispose]]></category>

		<guid isPermaLink="false">http://chrisforbesblogs.wordpress.com/2009/06/08/using-the-sharepoint-dispose-checker-tool/</guid>
		<description><![CDATA[Objects using IDisposable
 A number of objects within the SharePoint object model implement the IDisposable interface. For the on-going performance of your SharePoint server you need to ensure you remember to correctly dispose of these objects within your code.  I guess this has always been important for any application you are building but its a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisforbesblogs.net&blog=6742676&post=69&subd=chrisforbesblogs&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<h2><strong>Objects using IDisposable</strong></h2>
<p><a href="http://chrisforbesblogs.files.wordpress.com/2009/06/rubbish.jpg"><img style="border-right:0;border-top:0;display:inline;margin-left:0;border-left:0;margin-right:0;border-bottom:0;" title="rubbish" src="http://chrisforbesblogs.files.wordpress.com/2009/06/rubbish_thumb.jpg?w=170&#038;h=128" border="0" alt="rubbish" width="170" height="128" align="right" /></a> A number of objects within the SharePoint object model implement the <strong>IDisposable</strong> interface. For the on-going performance of your SharePoint server you need to ensure you remember to correctly dispose of these objects within your code.  I guess this has always been important for any application you are building but its a bit more crucial in SharePoint as your building your solutions on a platform that isn&#8217;t just servicing your application but could be many.</p>
<p> </p>
<h2><strong>So what’s the problem?</strong></h2>
<p>So what if you don’t dispose of your objects? Well your just using up memory that could have been released. So without recycling your application pool you run the risk of slowly degrading the performance of your SharePoint farm. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  In fact your application pools will automatically recycle when they hit a particular memory usage threshold, which could then result in slow page loads as pages are re-compiled by the JIT when requested.</p>
<p><strong> </strong></p>
<h2><strong>How to spot the problem?</strong></h2>
<p>If your spotting your SharePoint server application pools recycling frequently or your servers performance degrades during heavy usage then this could be an indication that your custom\3rd party code\web parts are not correctly disposing their objects.</p>
<p>You can check the ULS logs at <a href="http://chrisforbesblogs.co.uk/2009/04/27/12-hive-quick-file-path-reference/">12 hive</a> \LOGS. Your looking for entries related to <strong>SPRequest</strong>. It might be complaining about the number of SPRequests objects exceeding a configurable threshold and so on. You can increase this threhold setting through the registry. But first, try and use this as an indicator that some of your code or indeed a 3rd partys code such as some web parts etc. are not correctly disposing the SPSite and SPWeb objects. So look at this first before cranking this level up.</p>
<p>If you do want to change the threshold then look for the following sub key in your registry using regedit…</p>
<p> <em>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\HeapSettings</em><br />
 <br />
<em>LocalSPRequestWarnCount = &lt;set to the level you want&gt;</em></p>
<h2>How to dispose your objects</h2>
<p>Ok so that the problem, and how to determine if your getting the problem covered.  So how do you ensure your code isn’t leaving your SPSite and SPWeb objects ‘indisposed’. Well, as mentioned previously, both of these objects implement the <strong>IDisposable</strong> interface so you can go ahead and call the .<strong>Dispose</strong> method when your done with the object. Good practice would be to put this in a try, catch finally block…</p>
<p> </p>
<div id="codeSnippetWrapper">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;direction:ltr;line-height:12pt;">SPSite site = <span style="color:#0000ff;">null</span>;

<span style="color:#0000ff;">try</span>{   site = <span style="color:#0000ff;">new</span> SPSite(<span style="color:#006080;">"http://litwaredemo"</span>);

   Console.WriteLine(<span style="color:#006080;">"got a handle on the site {0} : {1}"</span>, 

   site.Title. site.Url);

}

<span style="color:#0000ff;">catch</span>(Exception ex)

{ 

  <span style="color:#008000;">//Catch exceptions here</span>

}

<span style="color:#0000ff;">finally</span>

{  

 <span style="color:#0000ff;">if</span> (site != <span style="color:#0000ff;">null</span>) site.Dispose();

}</pre>
<p> </p>
<p>Another approach, which I prefer, is to use the using statement. This will ensure the dispose is taken care of without you worrying about it. Like so…</p>
<p> </p>
<div id="codeSnippetWrapper">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;direction:ltr;line-height:12pt;"><span style="color:#0000ff;">using</span> (SPSite site = <span style="color:#0000ff;">new</span> SPSite(<span style="color:#006080;"><a href="http://litwaredemo">http://litwaredemo</a></span>)

{

    Console.WriteLine("got a handle on the site {0} : {1},

    site.Title, site.Url);

}</pre>
<p> </p>
<p>The one catch (if you’ll pardon the pun) to dispose, is to only take care of the objects that you have instantiated, if your grabbing a handle from things like SPContext then you don’t need to worry about disposing this, let SPContext take care of it.</p>
<p> </p>
<div id="codeSnippetWrapper">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;direction:ltr;line-height:12pt;">SPSite site = SPContext.Site;Console.WriteLine(<span style="color:#006080;">"got a handle on {0} : {1}"</span>,

site.Title, site.Url);

//Don’t dispose site, leave this to SPContext to worry about.</pre>
<p> </p>
<h2>Using the SharePoint Dispose Checker Tool</h2>
<p>Microsoft have released a neat console application which you can add into Visual Studio and have check your code once your all done. It will output any suspect methods which may not be disposing these objects correctly. You need to look at the output as it may be reporting some false positives, for example you may have some factory methods which instantiate these objects and return them. But I find this tool invaluable!</p>
<p>You can download the link from MSDN here <a href="http://code.msdn.microsoft.com/SPDisposeCheck" target="_blank">Dispose Checker Tool</a> To add this into Visual Studio just…</p>
<p>1. select<em> Tools\External Tools</em> from the menu option in VS. Then click add.</p>
<p>2. Go ahead and give the tool a friendly name (include an &amp; next to a one of the letters if you want to use a keyboard shortcut).</p>
<p>3. in the command box add the correct path to the checker executable</p>
<p>  eg C:\Program Files\Microsoft\SharePoint Dispose Check\SPDisposeCheck.exe</p>
<p>4.In the Arguments box select the menu icon and select ‘Project Directory</p>
<p>5. Check the ‘Use output window’ to have the results kept within VS.</p>
<p>6. And finally, select ‘prompt for arguments’ this is useful if you need to add additional arguments such as –debug etc.</p>
<p> </p>
<p>Then once your done writing your code, just compile as normal then run the tool. Below is an example output which is telling me I haven’t disposed of the xxSite object. I have highlighted the important bits in red…</p>
<p> </p>
<table border="1" cellspacing="0" cellpadding="2" width="472">
<tbody>
<tr>
<td width="470" valign="top">Line: 121Notes:      Disposable type not disposed: Microsoft.SharePoint.SPSite     ***This may be a false positive depending on how the type was created or if it is disposed outside the current scope</p>
<p>More Information: <a href="http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_110">http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_110</a></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>ID: SPDisposeCheckID_110</p>
<p>Module: LookingAtWebFields.exe</p>
<p>Method: ConsoleApplication1.Program.Main(System.String[])</p>
<p><strong><span style="color:#ff0000;">Statement: XXsite := new Microsoft.SharePoint.SPSite(&#8220;</span></strong><a href="http://litwaredemo&quot;)"><strong><span style="color:#ff0000;">http://litwaredemo&#8221;)</span></strong></a></p>
<p>Source: C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\Lab Work\LookingAtWebFields\LookingAtWebFields\Program.cs</p>
<p>Line: 121</p>
<p>Notes:      <strong><span style="color:#ff0000;">Disposable type not disposed: Microsoft.SharePoint.SPSite</span></strong></p>
<p>     ***This may be a false positive depending on how the type was created or if it is disposed outside the current scope</p>
<p>More Information: <a href="http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_110">http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_110</a></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Total Found: 2</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Modules Checked: 3</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>LookingAtWebFields.exe</p>
<p>LookingAtWebFields.vshost.exe</p>
<p>LookingAtWebFields.exe</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Modules Ignored: 0</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Methods Ignored: 0</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</td>
</tr>
</tbody>
</table>
<p> </p>
<p>So there you go, hope this document has been of some help. Happy SharePoint coding <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p> </p>
<div id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:f11bdee3-5313-4af7-9ff7-e83768bf680e" class="wlWriterEditableSmartContent" style="display:inline;float:none;margin:0;padding:0;">Technorati Tags: <a rel="tag" href="http://technorati.com/tags/SharePoint">SharePoint</a>,<a rel="tag" href="http://technorati.com/tags/IDispose">IDispose</a>,<a rel="tag" href="http://technorati.com/tags/SharePoint+Dispose+Checker+Tool">SharePoint Dispose Checker Tool</a></div>
<div id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:5b196733-5dfa-44c1-a367-4a5d5ce1b6f0" class="wlWriterEditableSmartContent" style="display:inline;float:none;margin:0;padding:0;">Flickr Tags: <a rel="tag" href="http://flickr.com/photos/tags/SharePoint">SharePoint</a>,<a rel="tag" href="http://flickr.com/photos/tags/IDispose">IDispose</a>,<a rel="tag" href="http://flickr.com/photos/tags/SharePoint+Dispose+Checker+Tool">SharePoint Dispose Checker Tool</a></div>
</div>
</div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chrisforbesblogs.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chrisforbesblogs.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chrisforbesblogs.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chrisforbesblogs.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chrisforbesblogs.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chrisforbesblogs.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chrisforbesblogs.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chrisforbesblogs.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chrisforbesblogs.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chrisforbesblogs.wordpress.com/69/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisforbesblogs.net&blog=6742676&post=69&subd=chrisforbesblogs&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://chrisforbesblogs.net/2009/06/08/using-the-sharepoint-dispose-checker-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed3e25ef8a88f8fff819a7722f1805a9?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">chrisforbesblogs</media:title>
		</media:content>

		<media:content url="http://chrisforbesblogs.files.wordpress.com/2009/06/rubbish_thumb.jpg" medium="image">
			<media:title type="html">rubbish</media:title>
		</media:content>
	</item>
	</channel>
</rss>