<?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>Ian Ankers&#039;s SharePoint Blog</title>
	<atom:link href="http://ianankers.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ianankers.wordpress.com</link>
	<description>SharePoint Info and Tips</description>
	<lastBuildDate>Sun, 25 Dec 2011 13:45:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='ianankers.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Ian Ankers&#039;s SharePoint Blog</title>
		<link>http://ianankers.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://ianankers.wordpress.com/osd.xml" title="Ian Ankers&#039;s SharePoint Blog" />
	<atom:link rel='hub' href='http://ianankers.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Site Navigation with a Content Query Web Part in a SharePoint Page Layout</title>
		<link>http://ianankers.wordpress.com/2011/11/01/site-navigation-with-a-content-query-web-part-in-a-sharepoint-page-layout/</link>
		<comments>http://ianankers.wordpress.com/2011/11/01/site-navigation-with-a-content-query-web-part-in-a-sharepoint-page-layout/#comments</comments>
		<pubDate>Tue, 01 Nov 2011 14:07:05 +0000</pubDate>
		<dc:creator>Ian Ankers</dc:creator>
				<category><![CDATA[CQWP]]></category>
		<category><![CDATA[Publishing]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Web Part]]></category>

		<guid isPermaLink="false">http://ianankers.wordpress.com/?p=191</guid>
		<description><![CDATA[A brief on one of my current projects was to create left hand navigation for an new Intranet which was built up from the Pages library.  As is usual with Intranets, the content was spread across multiple publishing sites under a single Site Collection, hence each site had it&#8217;s own Pages library.  It&#8217;s a simple [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianankers.wordpress.com&amp;blog=25106937&amp;post=191&amp;subd=ianankers&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A brief on one of my current projects was to create left hand navigation for an new Intranet which was built up from the Pages library.  As is usual with Intranets, the content was spread across multiple publishing sites under a single Site Collection, hence each site had it&#8217;s own Pages library.  It&#8217;s a simple task to set this up for each page using the Content Query Web Part (CQWP) but ideally this should be part of a Page Layout that can be used on every site.  </p>
<p>The other requirement was that the Title of the Web Part should be that of the current site, so Information Technology if the user was view pages from that site, Operations for the Operations site etc.</p>
<p>Out of the box, this would not be possible as the CQWP is linked to a single library and it&#8217;s Title is set from the Web Part Properties.  You obviously could add a CQWP to each page but this is inefficient and beyond most content editing users.  So for a more elegant solution you&#8217;ll need to use Visual Studio to create your own Web Part, however the code is extremely straightforward and is derived from ContentByQueryWebPart.  You will need to include a reference to Microsoft.SharePoint.Publishing.WebControls in your project which is in the Microsoft.SharePoint.Publishing namespace and the code below should be enough to get you up and running.</p>
<p><pre class="brush: csharp;">
public class ContentNavigation : ContentByQueryWebPart
{
 protected override void CreateChildControls()
 {
   SPWeb web = SPContext.Current.Web;
   SPList list = web.GetList(web.Url + &quot;/Pages&quot;);
   this.ListGuid = list.ID.ToString();
   this.ListName = list.Title;
   base.CreateChildControls();
 }

 protected override void OnPreRender(EventArgs e)
 {
   this.Title = SPContext.Current.Web.Title;
   base.OnPreRender(e);
 }
}
</pre></p>
<p>Once packaged and deployed, it&#8217;s then straightforward to create a Page Layout containing this web part.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ianankers.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ianankers.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ianankers.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ianankers.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ianankers.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ianankers.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ianankers.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ianankers.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ianankers.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ianankers.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ianankers.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ianankers.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ianankers.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ianankers.wordpress.com/191/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianankers.wordpress.com&amp;blog=25106937&amp;post=191&amp;subd=ianankers&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ianankers.wordpress.com/2011/11/01/site-navigation-with-a-content-query-web-part-in-a-sharepoint-page-layout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2c408966228de431429f347ac94a91ff?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ianankers</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint, JQuery and z:row when using Chrome</title>
		<link>http://ianankers.wordpress.com/2011/11/01/sharepoint-jquery-and-zrow-when-using-chrome/</link>
		<comments>http://ianankers.wordpress.com/2011/11/01/sharepoint-jquery-and-zrow-when-using-chrome/#comments</comments>
		<pubDate>Tue, 01 Nov 2011 13:22:55 +0000</pubDate>
		<dc:creator>Ian Ankers</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://ianankers.wordpress.com/?p=211</guid>
		<description><![CDATA[I&#8217;ve recently been using JQuery with SharePoint web services quite extensively and initially had a few issues with Chrome not rendering when the same code works fine with IE.  With this post I&#8217;ll show you what you need to change for cross browser compatibility as there seems quite a bit of confusion around the web. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianankers.wordpress.com&amp;blog=25106937&amp;post=211&amp;subd=ianankers&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently been using JQuery with SharePoint web services quite extensively and initially had a few issues with Chrome not rendering when the same code works fine with IE.  With this post I&#8217;ll show you what you need to change for cross browser compatibility as there seems quite a bit of confusion around the web.</p>
<p>A lot of code examples use:</p>
<p><pre class="brush: jscript;">

$(xData.responseXML).find(&quot;z\\:row&quot;).each(function(){

</pre></p>
<p>whilst this works in IE &amp; Firefox, it won&#8217;t function in Chrome or Safari, but if you are using JQuery 1.5 or greater, change this line to the following and you&#8217;ll have a working solution in all browsers.</p>
<p><pre class="brush: jscript;">

$(xData.responseXML).find(&quot;[nodeName='z:row']&quot;).each(function(){

</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ianankers.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ianankers.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ianankers.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ianankers.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ianankers.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ianankers.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ianankers.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ianankers.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ianankers.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ianankers.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ianankers.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ianankers.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ianankers.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ianankers.wordpress.com/211/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianankers.wordpress.com&amp;blog=25106937&amp;post=211&amp;subd=ianankers&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ianankers.wordpress.com/2011/11/01/sharepoint-jquery-and-zrow-when-using-chrome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2c408966228de431429f347ac94a91ff?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ianankers</media:title>
		</media:content>
	</item>
		<item>
		<title>This page is not using a valid page layout in SharePoint 2010</title>
		<link>http://ianankers.wordpress.com/2011/10/18/this-page-is-not-using-a-valid-page-layout-in-sharepoint-2010/</link>
		<comments>http://ianankers.wordpress.com/2011/10/18/this-page-is-not-using-a-valid-page-layout-in-sharepoint-2010/#comments</comments>
		<pubDate>Tue, 18 Oct 2011 16:31:05 +0000</pubDate>
		<dc:creator>Ian Ankers</dc:creator>
				<category><![CDATA[Publishing]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://ianankers.wordpress.com/?p=179</guid>
		<description><![CDATA[In this post, I&#8217;ll show you how to overcome the error &#8216;This page is not using a valid page layout&#8217; when moving around content from one publishing site collection to another in SharePoint 2010. It&#8217;s a problem I&#8217;ve come across a few times as it&#8217;s been around since MOSS.  It occurs if the relative path between [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianankers.wordpress.com&amp;blog=25106937&amp;post=179&amp;subd=ianankers&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In this post, I&#8217;ll show you how to overcome the error &#8216;This page is not using a valid page layout&#8217; when moving around content from one publishing site collection to another in SharePoint 2010.</p>
<p><a href="http://ianankers.files.wordpress.com/2011/10/pagelayouterror.png"><img class="alignnone size-full wp-image-189" title="PageLayoutError" src="http://ianankers.files.wordpress.com/2011/10/pagelayouterror.png?w=600" alt=""   /></a></p>
<p>It&#8217;s a problem I&#8217;ve come across a few times as it&#8217;s been around since MOSS.  It occurs if the relative path between site collections or web application is different and therefore breaks the link to PageLayout.  For example moving these pages:</p>
<p>http://sharepoint/sites/wiki/home.aspx</p>
<p>to a subsite</p>
<p>http://sharepoint/wiki/home.aspx</p>
<p>will result in an invalid relative link to the pagelayout, in this case it will be http://intranet/<strong>sites</strong>/wiki/_catalogs/&#8230;. so as you can see there is an erroneous <em>sites</em> reference within the link.</p>
<p>Initially it&#8217;s best to view the current Pagelayout assigned to each page, to do so you can use this script, replace [Site URL] with the url of the site containing your publishing pages.</p>
<p><pre class="brush: powershell;">
$Site = &quot;http://[Site URL]&quot;

$web = Get-SPWeb -Identity $Site
$publishingWeb = [Microsoft.SharePoint.Publishing.PublishingWeb]::GetPublishingWeb($web)
$publishingPages = $publishingWeb.GetPublishingPages()
foreach ($publishingPage in $publishingPages)
{
  write-host $publishingPage.ListItem[[Microsoft.SharePoint.Publishing.FieldId]::PageLayout]
}
</pre></p>
<p>To resolve the issue, I wanted a flexible solution which could work with any pagelayout or even replace them if needed and therefore opted for a script which used a simple search and replace.   In the following script, update the [Site URL], the [Search for] for the string to search for, for example the old link and [Replace with] for the new value, such as the new site.</p>
<p><pre class="brush: powershell;">
$Site = &quot;http://[Site URL]&quot;
$SearchFor = &quot;[Search For]&quot;
$ReplaceWith = &quot;[Replace With]&quot;

$web = Get-SPWeb -Identity $Site
$publishingWeb = [Microsoft.SharePoint.Publishing.PublishingWeb]::GetPublishingWeb($web)
$publishingPages = $publishingWeb.GetPublishingPages()
foreach ($publishingPage in $publishingPages)
{
  $url = $publishingPage.ListItem[[Microsoft.SharePoint.Publishing.FieldId]::PageLayout]
  if ($url -match $SearchFor)
  {
    write-host Updating Page Layout for $publishingPage.Name
    $newurl = $url -replace $SearchFor, $ReplaceWith
    $publishingPage.CheckOut()
    $publishingPage.ListItem[[Microsoft.SharePoint.Publishing.FieldId]::PageLayout] = $newurl
    $publishingPage.ListItem.UpdateOverwriteVersion()
    $publishingPage.ListItem.File.CheckIn(&quot;Corrected page layout URL&quot;, [Microsoft.SharePoint.SPCheckinType]::MajorCheckIn);
  }
}
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ianankers.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ianankers.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ianankers.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ianankers.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ianankers.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ianankers.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ianankers.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ianankers.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ianankers.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ianankers.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ianankers.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ianankers.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ianankers.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ianankers.wordpress.com/179/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianankers.wordpress.com&amp;blog=25106937&amp;post=179&amp;subd=ianankers&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ianankers.wordpress.com/2011/10/18/this-page-is-not-using-a-valid-page-layout-in-sharepoint-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2c408966228de431429f347ac94a91ff?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ianankers</media:title>
		</media:content>

		<media:content url="http://ianankers.files.wordpress.com/2011/10/pagelayouterror.png" medium="image">
			<media:title type="html">PageLayoutError</media:title>
		</media:content>
	</item>
		<item>
		<title>Create a blank publishing page in SharePoint 2010 for a print view or hosting in an iFrame</title>
		<link>http://ianankers.wordpress.com/2011/10/11/create-a-blank-publishing-page-in-sharepoint-2010-for-a-print-view-or-hosting-in-an-iframe/</link>
		<comments>http://ianankers.wordpress.com/2011/10/11/create-a-blank-publishing-page-in-sharepoint-2010-for-a-print-view-or-hosting-in-an-iframe/#comments</comments>
		<pubDate>Tue, 11 Oct 2011 16:24:23 +0000</pubDate>
		<dc:creator>Ian Ankers</dc:creator>
				<category><![CDATA[Publishing]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Web Part]]></category>

		<guid isPermaLink="false">http://ianankers.wordpress.com/?p=162</guid>
		<description><![CDATA[There are a few occassions when a page&#8217;s content could be useful without the associated branding and navigation elements being visible.  For example if you want to create a print view or host SharePoint content in an iFrame.  In my case I wanted to host the Organization Browser web part within an iFrame using a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianankers.wordpress.com&amp;blog=25106937&amp;post=162&amp;subd=ianankers&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There are a few occassions when a page&#8217;s content could be useful without the associated branding and navigation elements being visible.  For example if you want to create a print view or host SharePoint content in an iFrame.  In my case I wanted to host the <a href="/2011/09/16/using-the-sharepoint-2010-organization-browser-web-part-on-a-different-web-application-and-specifying-a-user/">Organization Browser</a> web part within an iFrame using a Content Editor Web Part.  This would enable me to access the same page on multiple sites, getting different content by setting querystring values in the CEWP and overcoming the issue of adding querystrings to URLs breaking SharePoint navigation.</p>
<p>First you need to create a new masterpage using SharePoint Designer, to do this take a copy of your existing custom masterpage or default.master and name it blank.master. Edit the file in Advanced Mode and find the main table which starts with <em>&lt;table class=&#8221;ms-main&#8221;</em>.  Now add this <em>style=&#8221;display:none&#8221;</em> tag to the end.  It should look something like this:</p>
<p><em>&lt;table cellpadding=&#8221;0&#8243; cellspacing=&#8221;0&#8243; border=&#8221;0&#8243; width=&#8221;100%&#8221; height=&#8221;100%&#8221; style=&#8221;display:none&#8221;&gt;</em></p>
<p>Next find this content holder <em>&lt;asp:ContentPlaceHolder id=&#8221;PlaceHolderMain&#8221; runat=&#8221;server&#8221;&gt;&lt;/asp:ContentPlaceHolder&gt;</em> and copy this to the clipboard, delete it from it&#8217;s original location and place it under the closing tag for the main table.  Also, to avoid scrollbars appearing in my iFrame, I amended to the body tag to set <em>scroll=&#8221;no&#8221;</em>.</p>
<p>Checkin, publish and approve your new masterpage.  Now if you haven&#8217;t already, create the content which you wish to host in the blank master page, then return to SharePoint Designer.  Next we need to detach the content page from it&#8217;s Page Layout, so open the library which contains your content, select the file, right click  and choose <em>Detach from Page Layout</em> then click Yes to the warning.  If the library is under source control, click Yes to check it out.  Now right click again and choose <em>Edit file in Advanced Mode</em>.</p>
<p>Now replace this line:</p>
<p><em>&lt;%@ Page language=&#8221;C#&#8221; Inherits=&#8221;Microsoft.SharePoint.Publishing.PublishingLayoutPage,Microsoft.SharePoint.Publishing,Version=14.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c&#8221; meta:progid=&#8221;SharePoint.WebPartPage.Document&#8221; meta:webpartpageexpansion=&#8221;full&#8221; %&gt;</em></p>
<p>with this:</p>
<p><em>&lt;%@ Page language=&#8221;C#&#8221; MasterPageFile=&#8221;~/_catalogs/masterpage/blank.master&#8221; Inherits=&#8221;Microsoft.SharePoint.WebPartPages.WebPartPage,Microsoft.SharePoint,Version=14.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c&#8221; meta:progid=&#8221;SharePoint.WebPartPage.Document&#8221; meta:webpartpageexpansion=&#8221;full&#8221; %&gt;</em></p>
<p>Save the file and if all is well, you&#8217;ll see the content without branding and navigation.</p>
<p>As you can see from the changes, this content now inherits from Microsoft.SharePoint.WebPartPages.WebPartPage which enables the MasterPage to be set.  With Microsoft.SharePoint.Publishing.PublishingLayoutPage this isn&#8217;t possible without custom code overriding OnPreInit.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ianankers.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ianankers.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ianankers.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ianankers.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ianankers.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ianankers.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ianankers.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ianankers.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ianankers.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ianankers.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ianankers.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ianankers.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ianankers.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ianankers.wordpress.com/162/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianankers.wordpress.com&amp;blog=25106937&amp;post=162&amp;subd=ianankers&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ianankers.wordpress.com/2011/10/11/create-a-blank-publishing-page-in-sharepoint-2010-for-a-print-view-or-hosting-in-an-iframe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2c408966228de431429f347ac94a91ff?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ianankers</media:title>
		</media:content>
	</item>
		<item>
		<title>Approve or Reject multiple items in a SharePoint 2010 list</title>
		<link>http://ianankers.wordpress.com/2011/09/29/approve-or-reject-multiple-items-in-a-sharepoint-2010-list/</link>
		<comments>http://ianankers.wordpress.com/2011/09/29/approve-or-reject-multiple-items-in-a-sharepoint-2010-list/#comments</comments>
		<pubDate>Thu, 29 Sep 2011 12:26:41 +0000</pubDate>
		<dc:creator>Ian Ankers</dc:creator>
				<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://ianankers.wordpress.com/?p=153</guid>
		<description><![CDATA[The out of the box list approval feature of SharePoint is extremely useful, not just for documents but you can quickly create many business solutions using this functionality, especially where a workflow may well be overkill. One drawback is that users have to review and approve/reject each item  individually and on a list with many items, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianankers.wordpress.com&amp;blog=25106937&amp;post=153&amp;subd=ianankers&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The out of the box list approval feature of SharePoint is extremely useful, not just for documents but you can quickly create many business solutions using this functionality, especially where a workflow may well be overkill.</p>
<p>One drawback is that users have to review and approve/reject each item  individually and on a list with many items, this can be quick time consuming.  The way to implement this functionality would be a custom action on the ribbon and looking around the Internet, I found a great <a href="http://ranaictiu-technicalblog.blogspot.com/2011/05/sharepoint-2010-approvereject-multiple.html">solution</a> from <a href="http://www.blogger.com/profile/15485221969375347012">Sohel Rana</a> to do exactly this.</p>
<p>The only problem, was that this was not ready for prime time and as Sohel states, <em>&#8220;The code is not just download-and-deploy mode. This is just a piece of how you can implement. You may need to fine tuning the code as per your needs. But I&#8217;ve tried to give the gist of how this can be done.&#8221; </em>Therefore I decided to build on his ideas and create a new solution that is just download and deploy and has a more consistent SharePoint look and feel.</p>
<p>This is a farm solution, so it is deployed though Central Admin.  The feature is scoped at Web level so to enable this functionality active the feature in Site Features within Site Settings.</p>
<p>Once enabled you&#8217;ll find a new action on the ribbon bar which is active when multiple items are selected as shown below.</p>
<p><a href="http://ianankers.files.wordpress.com/2011/09/approvelist1.png"><img class="alignnone size-full wp-image-157" title="ApproveList" src="http://ianankers.files.wordpress.com/2011/09/approvelist1.png?w=600&#038;h=251" alt="" width="600" height="251" /></a></p>
<p>This will then create a dialog which uses the familiar SharePoint Approve/Reject item look and feel.</p>
<p><a href="http://ianankers.files.wordpress.com/2011/09/approvedialog.png"><img class="alignnone size-full wp-image-154" title="ApproveDialog" src="http://ianankers.files.wordpress.com/2011/09/approvedialog.png?w=600" alt=""   /></a></p>
<p>Clicking on OK will set all selected items to the approval status and the comment text is also applied to all items.  Any workflows that are in-flight on these items are cancelled.</p>
<p>You can download the solution <a href="http://www.iandia.co.uk/approverejectselection.cab">here</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ianankers.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ianankers.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ianankers.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ianankers.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ianankers.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ianankers.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ianankers.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ianankers.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ianankers.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ianankers.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ianankers.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ianankers.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ianankers.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ianankers.wordpress.com/153/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianankers.wordpress.com&amp;blog=25106937&amp;post=153&amp;subd=ianankers&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ianankers.wordpress.com/2011/09/29/approve-or-reject-multiple-items-in-a-sharepoint-2010-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2c408966228de431429f347ac94a91ff?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ianankers</media:title>
		</media:content>

		<media:content url="http://ianankers.files.wordpress.com/2011/09/approvelist1.png" medium="image">
			<media:title type="html">ApproveList</media:title>
		</media:content>

		<media:content url="http://ianankers.files.wordpress.com/2011/09/approvedialog.png" medium="image">
			<media:title type="html">ApproveDialog</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint London Underground Tube Status Web Part</title>
		<link>http://ianankers.wordpress.com/2011/09/21/sharepoint-london-underground-tube-status-web-part/</link>
		<comments>http://ianankers.wordpress.com/2011/09/21/sharepoint-london-underground-tube-status-web-part/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 11:18:20 +0000</pubDate>
		<dc:creator>Ian Ankers</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Web Part]]></category>

		<guid isPermaLink="false">http://ianankers.wordpress.com/?p=143</guid>
		<description><![CDATA[This is a small web part I developed which displays the status of the tube lines which make up the Transport for London Underground network.   It could be a handy web part to fill in an area of a corporate Intranet, if of course the company happens to be based in London! This consumes [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianankers.wordpress.com&amp;blog=25106937&amp;post=143&amp;subd=ianankers&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is a small web part I developed which displays the status of the tube lines which make up the Transport for London Underground network.   It could be a handy web part to fill in an area of a corporate Intranet, if of course the company happens to be based in London!</p>
<p>This consumes a TfL datafeed so your server will need Internet access and the solution needs to be deployed at the farm level.  I&#8217;m not going to post how you can deploy this web part but a generic farm solution deployment guide can be found <a href="http://ashrafhossain.wordpress.com/2011/01/20/how-to-deploy-sharepoint-2010-solution-package-the-wsp-file/">here</a>.  I&#8217;ve tested this on SharePoint 2010 only but should work fine on MOSS too.</p>
<p>The code doesn&#8217;t use Ajax and there is no automatic refresh.  More information about lines with problems will appears on a mouse over on the status.  I&#8217;ve not included the source but happy to post if it helps anybody, and I am considering writing a tube departure board web part showing the trains from a configurable station, so if this is of any interest then please leave a comment.</p>
<p><a href="http://www.iandia.co.uk/tubestatus.cab">Download Tube Status Web Part</a></p>
<p><a href="http://ianankers.files.wordpress.com/2011/09/tubestatus.png"><img class="alignnone size-full wp-image-144" title="TubeStatus" src="http://ianankers.files.wordpress.com/2011/09/tubestatus.png?w=600" alt=""   /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ianankers.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ianankers.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ianankers.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ianankers.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ianankers.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ianankers.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ianankers.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ianankers.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ianankers.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ianankers.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ianankers.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ianankers.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ianankers.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ianankers.wordpress.com/143/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianankers.wordpress.com&amp;blog=25106937&amp;post=143&amp;subd=ianankers&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ianankers.wordpress.com/2011/09/21/sharepoint-london-underground-tube-status-web-part/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2c408966228de431429f347ac94a91ff?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ianankers</media:title>
		</media:content>

		<media:content url="http://ianankers.files.wordpress.com/2011/09/tubestatus.png" medium="image">
			<media:title type="html">TubeStatus</media:title>
		</media:content>
	</item>
		<item>
		<title>Using the SharePoint 2010 Organization Browser web part on a different web application and specifying a user.</title>
		<link>http://ianankers.wordpress.com/2011/09/16/using-the-sharepoint-2010-organization-browser-web-part-on-a-different-web-application-and-specifying-a-user/</link>
		<comments>http://ianankers.wordpress.com/2011/09/16/using-the-sharepoint-2010-organization-browser-web-part-on-a-different-web-application-and-specifying-a-user/#comments</comments>
		<pubDate>Fri, 16 Sep 2011 13:51:50 +0000</pubDate>
		<dc:creator>Ian Ankers</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[User Profile]]></category>

		<guid isPermaLink="false">http://ianankers.wordpress.com/?p=129</guid>
		<description><![CDATA[The SilverLight based Organizational Browser web part is a standard feature of SharePoint 2010 and is particularly useful if you wish to display your organisation chart on an Intranet page for example.  However,  if you add this web part to a different web application that the Mysite host and your environment is patched below SP1 then it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianankers.wordpress.com&amp;blog=25106937&amp;post=129&amp;subd=ianankers&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The SilverLight based Organizational Browser web part is a standard feature of SharePoint 2010 and is particularly useful if you wish to display your organisation chart on an Intranet page for example.  However,  if you add this web part to a different web application that the Mysite host and your environment is patched below SP1 then it displays without content.  It also takes the current user as a starting point and not a specific user such as the CEO.</p>
<p><strong>Making the Organization Browser work in a web application other than MySite host</strong></p>
<p>This is only required if you are not yet running SharePoint 2010 SP1 or later and are trying to add the Organisation Browser to a page which resides in a web application than does not house your MySite host.  In this instance it will appear blank, a problem that is caused by SilverLight security and the lack of a cross domain policy.  To over come this, a crossdomain.xml file  needs to be placed in the root of the web application where your MySite host resides.</p>
<p>A basic CrossDomain.xml file:</p>
<p><pre class="brush: xml;">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;
&lt;!DOCTYPE cross-domain-policy SYSTEM &quot;http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd&quot;&gt;
&lt;cross-domain-policy&gt;
	&lt;allow-access-from domain=&quot;*&quot; /&gt;
	&lt;allow-http-request-headers-from domain=&quot;*&quot; headers=&quot;*&quot;/&gt;
&lt;/cross-domain-policy&gt;
</pre></p>
<p>This is a very liberal cross domain policy, in a production environment I recommend you limit the domain setting to suit your environment.</p>
<p>Copy the content above and save it locally as <em>crossdomain.xml</em> and then launch SharePoint Designer.  In SharePoint designer open the root site which hosts your MySite host and select <em>All Files</em> from the left hand navigation.  Click Import Files from the ribbon and add the CrossDomain.xml file you saved earlier. The end result should look like this.</p>
<p><a href="http://ianankers.files.wordpress.com/2011/09/spd-crossdomain.png"><img class="alignnone size-full wp-image-132" title="spd-crossdomain" src="http://ianankers.files.wordpress.com/2011/09/spd-crossdomain.png?w=600" alt=""   /></a></p>
<p>In a browser test that you can access this file http://&lt;mysitehost web application&gt;/CrossDomain.xml, next test a page which contains the Organization Browser hosted on another web application, this should now render correctly in the SilverLight view.  The focus will be set to the current user, so unless you are the CEO, there is still a little bit of work to do.</p>
<p><strong>Setting the initial focus of the Organisation Browser to a specific user.</strong></p>
<p>So now you have a page containing the web part but you want to set the initial focus to the CEO or a department head, this is exactly how the web part works in the users profile when you click on Organization.  This is controlled by a query string parameter containing the account name that looks like this accountname=domain%5Cian%2Eankers. You will need to add this parameter for the user you wish to set the focus too to the links that reference your new page, for example OrgChart.aspx?accountname=domain%5Cian%2Eankers</p>
<p>However before this is going to work, the file hosting the web part needs to be edited in Advanced Mode using SharePoint Designer.  Open the page in Code view and under the last &lt;%@ Register tag, add this line.</p>
<p>&lt;%@ Register Tagprefix=&#8221;SPSWC&#8221; Namespace=&#8221;Microsoft.SharePoint.Portal.WebControls&#8221; Assembly=&#8221;Microsoft.SharePoint.Portal, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&#8221; %&gt;</p>
<p>Next search for this line: <em>&lt;asp:Content ContentPlaceholderID=&#8221;PlaceHolderMain&#8221; runat=&#8221;server&#8221;&gt;</em> and directly beneath it, add the following.</p>
<p>&lt;SPSWC:ProfilePropertyLoader runat=&#8221;server&#8221; /&gt;</p>
<p>Now save the file and you should now have the Organization Browser running in a separate web application and with the focus set to the user specified in the accountname query string  parameter.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ianankers.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ianankers.wordpress.com/129/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ianankers.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ianankers.wordpress.com/129/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ianankers.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ianankers.wordpress.com/129/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ianankers.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ianankers.wordpress.com/129/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ianankers.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ianankers.wordpress.com/129/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ianankers.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ianankers.wordpress.com/129/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ianankers.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ianankers.wordpress.com/129/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianankers.wordpress.com&amp;blog=25106937&amp;post=129&amp;subd=ianankers&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ianankers.wordpress.com/2011/09/16/using-the-sharepoint-2010-organization-browser-web-part-on-a-different-web-application-and-specifying-a-user/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2c408966228de431429f347ac94a91ff?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ianankers</media:title>
		</media:content>

		<media:content url="http://ianankers.files.wordpress.com/2011/09/spd-crossdomain.png" medium="image">
			<media:title type="html">spd-crossdomain</media:title>
		</media:content>
	</item>
		<item>
		<title>Error an unhandled exception occurred in the Silverlight Application when creating SharePoint 2010 Sites</title>
		<link>http://ianankers.wordpress.com/2011/09/12/error-an-unhandled-exception-occurred-in-the-silverlight-application-when-creating-sharepoint-2010-sites/</link>
		<comments>http://ianankers.wordpress.com/2011/09/12/error-an-unhandled-exception-occurred-in-the-silverlight-application-when-creating-sharepoint-2010-sites/#comments</comments>
		<pubDate>Mon, 12 Sep 2011 14:51:00 +0000</pubDate>
		<dc:creator>Ian Ankers</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">http://ianankers.wordpress.com/?p=122</guid>
		<description><![CDATA[When creating a new SharePoint 2010 site via the Silverlight interface, if you experience the Error, An unhandled exception occurred in the Silverlight Application there is a simple fix. The problem is caused by the Silverlight application, attempting to communicate with the WCF endpoint using the Client Object Model when Security Validation is turned off for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianankers.wordpress.com&amp;blog=25106937&amp;post=122&amp;subd=ianankers&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When creating a new SharePoint 2010 site via the Silverlight interface, if you experience the Error, <em>An unhandled exception occurred in the Silverlight Application</em> there is a simple fix.</p>
<p>The problem is caused by the Silverlight application, attempting to communicate with the WCF endpoint using the Client Object Model when Security Validation is turned off for the web application.</p>
<p>To resolve, in Central Administration click on <em>Manage Web Applications, </em>highlight the problematic Web application and click <em>General Settings </em>from the ribbon.  Scroll down to <em>Web Page Security Validation </em> and ensure <em>Security Validation is <strong>On </strong></em></p>
<p>You will now be able to create sites using the Silverlight interface.</p>
<p><a href="http://ianankers.files.wordpress.com/2011/09/webappsetting.png"><img class="alignnone size-full wp-image-124" title="WebAppSetting" src="http://ianankers.files.wordpress.com/2011/09/webappsetting.png?w=600&#038;h=258" alt="" width="600" height="258" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ianankers.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ianankers.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ianankers.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ianankers.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ianankers.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ianankers.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ianankers.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ianankers.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ianankers.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ianankers.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ianankers.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ianankers.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ianankers.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ianankers.wordpress.com/122/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianankers.wordpress.com&amp;blog=25106937&amp;post=122&amp;subd=ianankers&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ianankers.wordpress.com/2011/09/12/error-an-unhandled-exception-occurred-in-the-silverlight-application-when-creating-sharepoint-2010-sites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2c408966228de431429f347ac94a91ff?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ianankers</media:title>
		</media:content>

		<media:content url="http://ianankers.files.wordpress.com/2011/09/webappsetting.png" medium="image">
			<media:title type="html">WebAppSetting</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint 2010 &#8211; Database is up to date, but some sites are not completely upgraded</title>
		<link>http://ianankers.wordpress.com/2011/08/23/sharepoint-2010-database-is-up-to-date-but-some-sites-are-not-completely-upgraded/</link>
		<comments>http://ianankers.wordpress.com/2011/08/23/sharepoint-2010-database-is-up-to-date-but-some-sites-are-not-completely-upgraded/#comments</comments>
		<pubDate>Tue, 23 Aug 2011 11:23:05 +0000</pubDate>
		<dc:creator>Ian Ankers</dc:creator>
				<category><![CDATA[Content Database]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://ianankers.wordpress.com/?p=109</guid>
		<description><![CDATA[In Central Administration, if you visit Upgrade and Patch Management, Review Database Status and notice some DBs have the status &#8216;Database is up to date, but some sites are not completely upgraded.&#8217; follow the procedure below to rectify. If you are attempting to upgrade the Admin Content Database then Get-SPContentDatabase will not work, or at least it didn&#8217;t [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianankers.wordpress.com&amp;blog=25106937&amp;post=109&amp;subd=ianankers&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In Central Administration, if you visit <em>Upgrade and Patch Management, Review Database Status </em>and notice some DBs have the status <em>&#8216;Database is up to date, but some sites are not completely upgraded.&#8217; </em>follow the procedure below to rectify.</p>
<p>If you are attempting to upgrade the <em>Admin Content Database</em> then Get-SPContentDatabase will not work, or at least it didn&#8217;t for me so refer to the extra steps at the end of this article.</p>
<p>The upgrade status reflects the current state of the database and hence this is not resolved via <em>PSConfig</em> but  rather by PowerShell.  If you need to perform this on a production or any other important environment, make sure you have an agreed maintenance window plus backups before beginning!</p>
<ul>
<li>Using the farm account or equvilently privileged user, start the S<em>harePoint 2010 Management Shell</em></li>
<li>Enter <em>$DB = Get-SPContentDatabase -Identity <strong>[ Your Database Name]</strong></em></li>
<li>Now enter U<em>pgrade-SPContentDatabase -id $DB</em></li>
<li>You&#8217;ll now be prompted to confirm, just hit enter to accept the default of Yes</li>
<li>The upgrade will begin and a percentage complete will be displayed</li>
</ul>
<p>When the process completes, return to Manage Databases Upgrade Status in Central Admin and the status will not be <em>No action required.</em></p>
<p><strong>Upgrading the Admin Content Database</strong></p>
<p>As stated at the beginning of this article, Get-SPContentDatabase will not work with the Admin Content Database so another method needs to be found.  As long as you know the DB GUID, you can still execute Upgrade-SPContentDatabase so a simple query of the Config database could be used to find this.  However a better solution is to use Powershell.</p>
<p>The following script iterates though all Content DBs for a given Web Application, so can be used to upgrade the Central Admin Content Database.  You will need to the replace <strong>&lt;WA URL&gt; </strong>in the script with your Central Administration URL.</p>
<p><pre class="brush: powershell;">
$wa = Get-SPWebApplication -Identity &quot;&lt;WA URL&gt;&quot;
foreach($ContentDB in $wa.ContentDatabases)
{
   Upgrade-SPContentDatabase -id $ContentDB
}
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ianankers.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ianankers.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ianankers.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ianankers.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ianankers.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ianankers.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ianankers.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ianankers.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ianankers.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ianankers.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ianankers.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ianankers.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ianankers.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ianankers.wordpress.com/109/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianankers.wordpress.com&amp;blog=25106937&amp;post=109&amp;subd=ianankers&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ianankers.wordpress.com/2011/08/23/sharepoint-2010-database-is-up-to-date-but-some-sites-are-not-completely-upgraded/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2c408966228de431429f347ac94a91ff?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ianankers</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint 2010 The Execute method of job definition Microsoft.SharePoint.Administration.SPSqmTimerJobDefinition threw an exception Event ID 6398</title>
		<link>http://ianankers.wordpress.com/2011/08/19/sharepoint-2010-the-execute-method-of-job-definition-microsoft-sharepoint-administration-spsqmtimerjobdefinition-threw-an-exception-event-id-6398/</link>
		<comments>http://ianankers.wordpress.com/2011/08/19/sharepoint-2010-the-execute-method-of-job-definition-microsoft-sharepoint-administration-spsqmtimerjobdefinition-threw-an-exception-event-id-6398/#comments</comments>
		<pubDate>Fri, 19 Aug 2011 14:30:39 +0000</pubDate>
		<dc:creator>Ian Ankers</dc:creator>
				<category><![CDATA[CEIP]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Timer Jobs]]></category>

		<guid isPermaLink="false">http://ianankers.wordpress.com/?p=96</guid>
		<description><![CDATA[If you experience the eventlog errors The Execute method of job definition Microsoft.SharePoint.Administration.SPSqmTimerJobDefinition (ID {timer job ID}) threw an exception with an Event ID 6398 on SharePoint 2010, I&#8217;d hazard a guess that this is related to Microsoft&#8217;s Customer Experience Improvement Program aka CEIP, especially if these events occur at around 4:30 AM daily. Diagnosis Open central administration [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianankers.wordpress.com&amp;blog=25106937&amp;post=96&amp;subd=ianankers&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you experience the eventlog errors The Execute method of job definition Microsoft.SharePoint.Administration.SPSqmTimerJobDefinition (ID {timer job ID}) threw an exception with an Event ID 6398 on SharePoint 2010, I&#8217;d hazard a guess that this is related to Microsoft&#8217;s Customer Experience Improvement Program aka CEIP, especially if these events occur at around 4:30 AM daily.</p>
<p><strong>Diagnosis</strong></p>
<p>Open central administration and follow this procedure.</p>
<ul>
<li>Click <em>Monitoring </em>then <em>Check Job Status </em>under the Timer Jobs heading.</li>
<li>Click <em>Job History </em>on the left hand side under <em>Timer Links.</em></li>
<li>On the right hand side, select failed jobs from the view drop down.</li>
</ul>
<p>You&#8217;ll now see the most recent failed jobs on your farm and most likely this includes <em>CEIP Data Collection.  </em>If it does, follow the resolution below.</p>
<p><strong>Resolution</strong></p>
<p>For completeness it is worth disabling CEIP, first do this as the farm level.</p>
<ul>
<li>In Central Administration, select <em>System Settings</em></li>
<li>Click <em>Configure privacy options</em> under Farm Management</li>
<li>Under <em>Customer Experience Improvement Program, </em>select &#8216;<em>No, I don&#8217;t wish to participate&#8217;</em></li>
</ul>
<p>Next this needs to be disabled for all web applications, including Central Administration.</p>
<ul>
<li>Select <em>Application Management, </em>then <em>Manage Web Applications</em></li>
<li>Select the first Web Application in the list and click <em>General Settings</em></li>
<li>At the very bottom of list, select <em>No </em>in the <em>Enable Customer Experience Improvement Program</em></li>
<li>Repeat for all Web Applications in the farm.</li>
</ul>
<p>In theory, this should be sufficient to disable CEIP across the farm, however running SP1 and the June CU, you will find that the error still appears, therefore the last resort is to disable the Timer Job.</p>
<ul>
<li>Click <em>Monitoring </em>then <em>Review  Job Definitions </em>under the Timer Jobs heading.</li>
<li>In the list, click on <em>CEIP Data Collection.</em></li>
<li>At the bottom of the page, click <em>Disable.</em></li>
</ul>
<p>The errors will not longer appear and although you could simply just disable the timer job to begin with, I feel it&#8217;s better to have the farms configuration set correctly too.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ianankers.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ianankers.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ianankers.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ianankers.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ianankers.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ianankers.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ianankers.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ianankers.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ianankers.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ianankers.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ianankers.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ianankers.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ianankers.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ianankers.wordpress.com/96/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ianankers.wordpress.com&amp;blog=25106937&amp;post=96&amp;subd=ianankers&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ianankers.wordpress.com/2011/08/19/sharepoint-2010-the-execute-method-of-job-definition-microsoft-sharepoint-administration-spsqmtimerjobdefinition-threw-an-exception-event-id-6398/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2c408966228de431429f347ac94a91ff?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ianankers</media:title>
		</media:content>
	</item>
	</channel>
</rss>
