<?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>Gordon Duthie&#039;s Blog</title>
	<atom:link href="http://gordonduthie.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://gordonduthie.net</link>
	<description>Frustrations of a .NET Developer</description>
	<lastBuildDate>Wed, 08 Feb 2012 10:39:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='gordonduthie.net' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/19989dcb81ec326227a4c75487d0df93?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Gordon Duthie&#039;s Blog</title>
		<link>http://gordonduthie.net</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://gordonduthie.net/osd.xml" title="Gordon Duthie&#039;s Blog" />
	<atom:link rel='hub' href='http://gordonduthie.net/?pushpress=hub'/>
		<item>
		<title>Displaying SharePoint rating field in a DataGrid</title>
		<link>http://gordonduthie.net/2011/11/29/displaying-sharepoint-rating-field-in-a-datagrid/</link>
		<comments>http://gordonduthie.net/2011/11/29/displaying-sharepoint-rating-field-in-a-datagrid/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 10:30:09 +0000</pubDate>
		<dc:creator>Gordon Duthie</dc:creator>
				<category><![CDATA[Cutstom Controls]]></category>
		<category><![CDATA[Sharepoint 2010]]></category>

		<guid isPermaLink="false">https://duthiega.wordpress.com/?p=468</guid>
		<description><![CDATA[One of my latest challenges was to display one of the new SharePoint 2010 social fields in a datagrid. At first this was just to display the field, but after the client seen the mouse-over functionality on the list item, they wanted to be able to assign a rating straight from the grid without having [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gordonduthie.net&amp;blog=10575018&amp;post=468&amp;subd=duthiega&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One of my latest challenges was to display one of the new SharePoint 2010 social fields in a datagrid. At first this was just to display the field, but after the client seen the mouse-over functionality on the list item, they wanted to be able to assign a rating straight from the grid without having to go to the item itself. So, here’s how I went about it. </p>
<p>Firstly I created a custom control call as seen in the code sample below: </p>
<p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:bfad8288-c107-47dc-9d64-59e80c1899a2" class="wlWriterEditableSmartContent">
<div style="border:#000080 1px solid;color:#000;font-family:'Courier New', Courier, Monospace;font-size:10pt;">
<div style="background:#000080;color:#fff;font-family:Verdana, Tahoma, Arial, sans-serif;font-weight:bold;padding:2px 5px;">Rating Control</div>
<div style="background:#ddd;max-height:300px;overflow:auto;">
<ol start="1" style="background:#ffffff;margin:0 0 0 2.5em;padding:0 0 0 5px;">
<li> [<span style="color:#2b91af;">DefaultProperty</span>(<span style="color:#a31515;">&quot;Rating&quot;</span>)]</li>
<li style="background:#f3f3f3;">    [<span style="color:#2b91af;">ToolboxData</span>(<span style="color:#a31515;">&quot;&lt;{0}:RatingControl runat=server&gt;&lt;/{0}:RatingControl&gt;&quot;</span>)]</li>
<li>    <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">class</span> <span style="color:#2b91af;">RatingControl</span> : <span style="color:#2b91af;">WebControl</span></li>
<li style="background:#f3f3f3;">    {</li>
<li>        <span style="color:#0000ff;">protected</span> <span style="color:#0000ff;">override</span> <span style="color:#0000ff;">void</span> OnInit(<span style="color:#2b91af;">EventArgs</span> e)</li>
<li style="background:#f3f3f3;">        {</li>
<li>            <span style="color:#0000ff;">base</span>.OnInit(e);</li>
<li style="background:#f3f3f3;">            Page.RegisterRequiresControlState(<span style="color:#0000ff;">this</span>);</li>
<li>        }</li>
<li style="background:#f3f3f3;">&nbsp;</li>
<li>&nbsp;</li>
<li style="background:#f3f3f3;">        [<span style="color:#2b91af;">Bindable</span>(<span style="color:#0000ff;">true</span>)]</li>
<li>        [<span style="color:#2b91af;">Category</span>(<span style="color:#a31515;">&quot;Binding&quot;</span>)]</li>
<li style="background:#f3f3f3;">        [<span style="color:#2b91af;">DefaultValue</span>(<span style="color:#a31515;">&quot;&quot;</span>)]</li>
<li>        [<span style="color:#2b91af;">Localizable</span>(<span style="color:#0000ff;">true</span>)]</li>
<li style="background:#f3f3f3;">        <span style="color:#0000ff;">public</span> <span style="color:#2b91af;">SPField</span> RatingField</li>
<li>        {</li>
<li style="background:#f3f3f3;">            <span style="color:#0000ff;">get</span></li>
<li>            {</li>
<li style="background:#f3f3f3;">                <span style="color:#2b91af;">SPField</span> field = (<span style="color:#2b91af;">SPField</span>)ViewState[<span style="color:#a31515;">&quot;RatingField&quot;</span>];</li>
<li>                <span style="color:#0000ff;">return</span> field;</li>
<li style="background:#f3f3f3;">            }</li>
<li>&nbsp;</li>
<li style="background:#f3f3f3;">            <span style="color:#0000ff;">set</span></li>
<li>            {</li>
<li style="background:#f3f3f3;">                ViewState[<span style="color:#a31515;">&quot;RatingField&quot;</span>] = <span style="color:#0000ff;">value</span>;</li>
<li>            }</li>
<li style="background:#f3f3f3;">        }</li>
<li>&nbsp;</li>
<li style="background:#f3f3f3;">&nbsp;</li>
<li>        [<span style="color:#2b91af;">Bindable</span>(<span style="color:#0000ff;">true</span>)]</li>
<li style="background:#f3f3f3;">        [<span style="color:#2b91af;">Category</span>(<span style="color:#a31515;">&quot;Binding&quot;</span>)]</li>
<li>        [<span style="color:#2b91af;">DefaultValue</span>(<span style="color:#a31515;">&quot;&quot;</span>)]</li>
<li style="background:#f3f3f3;">        [<span style="color:#2b91af;">Localizable</span>(<span style="color:#0000ff;">true</span>)]</li>
<li>        <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">int</span> ListItemId</li>
<li style="background:#f3f3f3;">        {</li>
<li>            <span style="color:#0000ff;">get</span></li>
<li style="background:#f3f3f3;">            {</li>
<li>                <span style="color:#0000ff;">return</span> <span style="color:#2b91af;">Convert</span>.ToInt32(ViewState[<span style="color:#a31515;">&quot;ListItemId&quot;</span>]);</li>
<li style="background:#f3f3f3;">            }</li>
<li>&nbsp;</li>
<li style="background:#f3f3f3;">            <span style="color:#0000ff;">set</span></li>
<li>            {</li>
<li style="background:#f3f3f3;">                ViewState[<span style="color:#a31515;">&quot;ListItemId&quot;</span>] = <span style="color:#0000ff;">value</span>;</li>
<li>            }</li>
<li style="background:#f3f3f3;">        }</li>
<li>&nbsp;</li>
<li style="background:#f3f3f3;">&nbsp;</li>
<li>        [<span style="color:#2b91af;">Bindable</span>(<span style="color:#0000ff;">true</span>)]</li>
<li style="background:#f3f3f3;">        [<span style="color:#2b91af;">Category</span>(<span style="color:#a31515;">&quot;Binding&quot;</span>)]</li>
<li>        [<span style="color:#2b91af;">DefaultValue</span>(<span style="color:#a31515;">&quot;&quot;</span>)]</li>
<li style="background:#f3f3f3;">        [<span style="color:#2b91af;">Localizable</span>(<span style="color:#0000ff;">true</span>)]</li>
<li>        <span style="color:#0000ff;">public</span> <span style="color:#2b91af;">Guid</span> ListId</li>
<li style="background:#f3f3f3;">        {</li>
<li>            <span style="color:#0000ff;">get</span></li>
<li style="background:#f3f3f3;">            {</li>
<li>                <span style="color:#2b91af;">Guid</span> id = (<span style="color:#2b91af;">Guid</span>)ViewState[<span style="color:#a31515;">&quot;ListId&quot;</span>];</li>
<li style="background:#f3f3f3;">                <span style="color:#0000ff;">return</span> id;</li>
<li>            }</li>
<li style="background:#f3f3f3;">&nbsp;</li>
<li>            <span style="color:#0000ff;">set</span></li>
<li style="background:#f3f3f3;">            {</li>
<li>                ViewState[<span style="color:#a31515;">&quot;ListId&quot;</span>] = <span style="color:#0000ff;">value</span>;</li>
<li style="background:#f3f3f3;">            }</li>
<li>        }</li>
<li style="background:#f3f3f3;">&nbsp;</li>
<li>        <span style="color:#0000ff;">protected</span> <span style="color:#0000ff;">override</span> <span style="color:#0000ff;">void</span> CreateChildControls()</li>
<li style="background:#f3f3f3;">        {</li>
<li>&nbsp;</li>
<li style="background:#f3f3f3;">            <span style="color:#0000ff;">if</span> (<span style="color:#0000ff;">this</span>.ChildControlsCreated)</li>
<li>                <span style="color:#0000ff;">return</span>;</li>
<li style="background:#f3f3f3;">&nbsp;</li>
<li>            </li>
<li style="background:#f3f3f3;">            <span style="color:#2b91af;">BaseFieldControl</span> renderingcontrol = <span style="color:#0000ff;">this</span>.RatingField.FieldRenderingControl;</li>
<li>            renderingcontrol.ControlMode = <span style="color:#2b91af;">SPControlMode</span>.Display;</li>
<li style="background:#f3f3f3;">            renderingcontrol.ListId = <span style="color:#0000ff;">this</span>.ListId;</li>
<li>            renderingcontrol.ItemId = <span style="color:#0000ff;">this</span>.ListItemId;</li>
<li style="background:#f3f3f3;">            Controls.Add(renderingcontrol);</li>
<li>            <span style="color:#0000ff;">this</span>.ChildControlsCreated = <span style="color:#0000ff;">true</span>; </li>
<li style="background:#f3f3f3;">           </li>
<li>           </li>
<li style="background:#f3f3f3;">            </li>
<li>       }</li>
</ol></div>
</p></div>
</p></div>
</p>
<p>Next, after adding a new template column to the datagrid containing a place holder (DataGrid source), then binding the data source to the ListItemCollection returned.&#160; </p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:26a98899-e6ea-4bbb-b4ed-d833f8946b68" class="wlWriterEditableSmartContent">
<div style="border:#000080 1px solid;color:#000;font-family:'Courier New', Courier, Monospace;font-size:10pt;">
<div style="background:#000080;color:#fff;font-family:Verdana, Tahoma, Arial, sans-serif;font-weight:bold;padding:2px 5px;">DataGrid Source</div>
<div style="background:#ddd;max-height:300px;overflow:auto;">
<ol start="1" style="background:#ffffff;margin:0 0 0 2em;padding:0 0 0 5px;">
<li><span style="color:#0000ff;">&lt;</span><span style="color:#800000;">asp</span><span style="color:#0000ff;">:</span><span style="color:#800000;">TemplateColumn</span><span style="color:#0000ff;">&gt;</span></li>
<li style="background:#f3f3f3;">         <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">HeaderTemplate</span><span style="color:#0000ff;">&gt;</span></li>
<li>                Rating</li>
<li style="background:#f3f3f3;">            <span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">HeaderTemplate</span><span style="color:#0000ff;">&gt;</span></li>
<li>            <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">ItemTemplate</span><span style="color:#0000ff;">&gt;</span></li>
<li style="background:#f3f3f3;">                <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">asp</span><span style="color:#0000ff;">:</span><span style="color:#800000;">PlaceHolder</span> <span style="color:#ff0000;">runat</span><span style="color:#0000ff;">=&quot;server&quot;</span> <span style="color:#ff0000;">ID</span><span style="color:#0000ff;">=&quot;RatingPlaceHolder&quot;&gt;&lt;/</span><span style="color:#800000;">asp</span><span style="color:#0000ff;">:</span><span style="color:#800000;">PlaceHolder</span><span style="color:#0000ff;">&gt;</span></li>
<li>            <span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">ItemTemplate</span><span style="color:#0000ff;">&gt;</span></li>
<li style="background:#f3f3f3;">        <span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">asp</span><span style="color:#0000ff;">:</span><span style="color:#800000;">TemplateColumn</span><span style="color:#0000ff;">&gt;</span></li>
</ol></div>
</p></div>
</p></div>
<p>&#160;</p>
<p>I create a new instance&#160; of the rating control on the girdview OnItemDataBound event receiver and add it to the place holder.</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:f0eee244-d9a2-404a-8a88-796584d8a7c6" class="wlWriterEditableSmartContent">
<div style="border:#000080 1px solid;color:#000;font-family:'Courier New', Courier, Monospace;font-size:10pt;">
<div style="background:#000080;color:#fff;font-family:Verdana, Tahoma, Arial, sans-serif;font-weight:bold;padding:2px 5px;">OnItemDataBound</div>
<div style="background:#ddd;max-height:300px;overflow:auto;">
<ol start="1" style="background:#ffffff;margin:0 0 0 2.5em;padding:0 0 0 5px;">
<li><span style="color:#0000ff;">protected</span> <span style="color:#0000ff;">void</span> SearchResultsGridView_OnItemDataBound(<span style="color:#0000ff;">object</span> sender, <span style="color:#2b91af;">DataGridItemEventArgs</span> e)</li>
<li style="background:#f3f3f3;">     {</li>
<li>         <span style="color:#0000ff;">if</span> (e.Item.ItemType == <span style="color:#2b91af;">ListItemType</span>.Item || e.Item.ItemType == <span style="color:#2b91af;">ListItemType</span>.AlternatingItem)</li>
<li style="background:#f3f3f3;">         {</li>
<li>             <span style="color:#2b91af;">Label</span> lastModifiedLabel = (<span style="color:#2b91af;">Label</span>)e.Item.FindControl(<span style="color:#a31515;">&quot;LastModifiedLabel&quot;</span>);</li>
<li style="background:#f3f3f3;">             lastModifiedLabel.Text = <span style="color:#2b91af;">Convert</span>.ToDateTime(<span style="color:#2b91af;">DataBinder</span>.Eval(e.Item.DataItem, <span style="color:#a31515;">&quot;ModifiedDate&quot;</span>)).ToString(<span style="color:#a31515;">&quot;dd-MMM-yyyy&quot;</span>);</li>
<li>             <span style="color:#2b91af;">PlaceHolder</span> placeHolder = (<span style="color:#2b91af;">PlaceHolder</span>)e.Item.FindControl(<span style="color:#a31515;">&quot;RatingPlaceHolder&quot;</span>);</li>
<li style="background:#f3f3f3;">             ratingControl = <span style="color:#0000ff;">new</span> <span style="color:#2b91af;">RatingControl</span>();</li>
<li>             ratingControl.RatingField = (<span style="color:#2b91af;">SPField</span>)<span style="color:#2b91af;">DataBinder</span>.Eval(e.Item.DataItem, <span style="color:#a31515;">&quot;RatingField&quot;</span>);</li>
<li style="background:#f3f3f3;">             ratingControl.ListId = (<span style="color:#2b91af;">Guid</span>)<span style="color:#2b91af;">DataBinder</span>.Eval(e.Item.DataItem, <span style="color:#a31515;">&quot;ListId&quot;</span>);</li>
<li>             ratingControl.ListItemId = <span style="color:#2b91af;">Convert</span>.ToInt32(<span style="color:#2b91af;">DataBinder</span>.Eval(e.Item.DataItem, <span style="color:#a31515;">&quot;Id&quot;</span>));</li>
<li style="background:#f3f3f3;">             placeHolder.Controls.Add(ratingControl); </li>
<li>         }</li>
<li style="background:#f3f3f3;">    }</li>
</ol></div>
</p></div>
</p></div>
<p>Job Done! </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/duthiega.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/duthiega.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/duthiega.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/duthiega.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/duthiega.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/duthiega.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/duthiega.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/duthiega.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/duthiega.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/duthiega.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/duthiega.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/duthiega.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/duthiega.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/duthiega.wordpress.com/468/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gordonduthie.net&amp;blog=10575018&amp;post=468&amp;subd=duthiega&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gordonduthie.net/2011/11/29/displaying-sharepoint-rating-field-in-a-datagrid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7cc17339b4f6c851ac51bcb5d71740cb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">duthiega</media:title>
		</media:content>
	</item>
		<item>
		<title>Connecting two web parts declaratively using a file provisioning module</title>
		<link>http://gordonduthie.net/2011/10/31/connecting-two-web-parts-declaratively-using-a-file-provisioning-module/</link>
		<comments>http://gordonduthie.net/2011/10/31/connecting-two-web-parts-declaratively-using-a-file-provisioning-module/#comments</comments>
		<pubDate>Mon, 31 Oct 2011 13:46:43 +0000</pubDate>
		<dc:creator>Gordon Duthie</dc:creator>
				<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Deployment]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Web Parts]]></category>

		<guid isPermaLink="false">https://duthiega.wordpress.com/2011/10/31/connecting-two-web-parts-declaratively-using-a-file-provisioning-module/</guid>
		<description><![CDATA[I just like to start by saying that this post is not ground breaking. However, when I tried to do this it did take me a while to find the answer, so I thought I’d just blog to add it to the grey matter. As I’m sure you are all aware you can provision multiple [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gordonduthie.net&amp;blog=10575018&amp;post=467&amp;subd=duthiega&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I just like to start by saying that this post is not ground breaking. However, when I tried to do this it did take me a while to find the answer, so I thought I’d just blog to add it to the grey matter. </p>
<p>As I’m sure you are all aware you can provision multiple files with preconfigured web parts by using a SharePoint module’s element file and a web part page as a template, by targeting the web part zones on the web part page. </p>
<p>However, trying to connect these caused me a bit of problems. In the end though it was quite straight forward. And can be done by specifying the following attributes in the code snippets and the descriptions given in the table below.</p>
<p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:0a9213a6-92d0-4994-9008-6e78d5fcbdb6" class="wlWriterEditableSmartContent">
<div style="border:#000080 1px solid;color:#000;font-family:'Courier New', Courier, Monospace;font-size:10pt;">
<div style="background:#000080;color:#fff;font-family:Verdana, Tahoma, Arial, sans-serif;font-weight:bold;padding:2px 5px;">WebPartConnection</div>
<div style="background:#ddd;max-height:300px;overflow:auto;">
<ol start="1" style="background:#ffffff;margin:0 0 0 2em;padding:0 0 0 5px;">
<li><span style="color:#0000ff;">&lt;</span><span style="color:#a31515;">WebPartConnection</span><span style="color:#0000ff;"> </span><span style="color:#ff0000;">ConsumerConnectionPointID</span><span style="color:#0000ff;">=</span>&quot;<span style="color:#0000ff;">MediaSearchConsumer</span>&quot;<span style="color:#0000ff;"> </span><span style="color:#ff0000;">ConsumerID</span><span style="color:#0000ff;">=</span>&quot;<span style="color:#0000ff;">MediaResultsWebPart</span>&quot;<span style="color:#0000ff;"> </span></li>
<li style="background:#f3f3f3;"><span style="color:#0000ff;">                         </span><span style="color:#ff0000;">ProviderConnectionPointID</span><span style="color:#0000ff;">=</span>&quot;<span style="color:#0000ff;">MediaSearchProvider</span>&quot;<span style="color:#0000ff;"> </span><span style="color:#ff0000;">ProviderID</span><span style="color:#0000ff;">=</span>&quot;<span style="color:#0000ff;">MediaSearchWebPart</span>&quot;<span style="color:#0000ff;"> </span><span style="color:#ff0000;">ID</span><span style="color:#0000ff;">=</span>&quot;<span style="color:#0000ff;">MediaSearchConnector</span>&quot;<span style="color:#0000ff;">/&gt;</span></li>
</ol></div>
</p></div>
</p></div>
</p>
<p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:a45c9975-fe40-4e9a-b900-4ad070f0ea3f" class="wlWriterEditableSmartContent">
<div style="border:#000080 1px solid;color:#000;font-family:'Courier New', Courier, Monospace;font-size:10pt;">
<div style="background:#000080;color:#fff;font-family:Verdana, Tahoma, Arial, sans-serif;font-weight:bold;padding:2px 5px;">Web Part Consumer</div>
<div style="background:#ddd;max-height:300px;overflow:auto;">
<ol start="1" style="background:#ffffff;margin:0 0 0 2.5em;padding:0 0 0 5px;">
<li>      <span style="color:#0000ff;">&lt;</span><span style="color:#a31515;">AllUsersWebPart</span><span style="color:#0000ff;"> </span><span style="color:#ff0000;">WebPartZoneID</span><span style="color:#0000ff;">=</span>&quot;<span style="color:#0000ff;">MiddleZone2</span>&quot;<span style="color:#0000ff;"> </span><span style="color:#ff0000;">WebPartOrder</span><span style="color:#0000ff;">=</span>&quot;<span style="color:#0000ff;">0</span>&quot;<span style="color:#0000ff;"> </span><span style="color:#ff0000;">ID</span><span style="color:#0000ff;">=</span>&quot;<span style="color:#0000ff;">MediaResultsWebPart</span>&quot;<span style="color:#0000ff;">&gt;</span></li>
<li style="background:#f3f3f3;">        <span style="color:#0000ff;">&lt;![CDATA[</span><span style="color:#808080;">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;</span></li>
<li><span style="color:#808080;">&lt;webParts&gt;</span></li>
<li style="background:#f3f3f3;">  <span style="color:#808080;">&lt;webPart xmlns=&quot;http://schemas.microsoft.com/WebPart/v3&quot;&gt;</span></li>
<li>    <span style="color:#808080;">&lt;metaData&gt;</span></li>
<li style="background:#f3f3f3;">      <span style="color:#808080;">&lt;type name=&quot;Instalec.SharePoint.WebParts.MediaResultsWebPart.MediaResultsWebPart, Instalec.SharePoint.WebParts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9e5b38b443f03fff&quot; /&gt;</span></li>
<li>      <span style="color:#808080;">&lt;importErrorMessage&gt;Cannot import this Web Part.&lt;/importErrorMessage&gt;</span></li>
<li style="background:#f3f3f3;">    <span style="color:#808080;">&lt;/metaData&gt;</span></li>
<li>    <span style="color:#808080;">&lt;data&gt;</span></li>
<li style="background:#f3f3f3;">      <span style="color:#808080;">&lt;properties&gt;</span></li>
<li>        <span style="color:#808080;">&lt;property name=&quot;Title&quot; type=&quot;string&quot;&gt;Media Search Results&lt;/property&gt;</span></li>
<li style="background:#f3f3f3;">        <span style="color:#808080;">&lt;property name=&quot;Description&quot; type=&quot;string&quot;&gt;Web part to display the results from the media search&lt;/property&gt;</span></li>
<li>         <span style="color:#808080;">&lt;property name=&quot;Hidden&quot; type=&quot;bool&quot;&gt;True&lt;/property&gt;</span></li>
<li style="background:#f3f3f3;">          <span style="color:#808080;">&lt;property name=&quot;AllowHide&quot; type=&quot;bool&quot;&gt;True&lt;/property&gt;</span></li>
<li>      <span style="color:#808080;">&lt;/properties&gt;</span></li>
<li style="background:#f3f3f3;">    <span style="color:#808080;">&lt;/data&gt;</span></li>
<li>  <span style="color:#808080;">&lt;/webPart&gt;</span></li>
<li style="background:#f3f3f3;"><span style="color:#808080;">&lt;/webParts&gt;</span></li>
<li><span style="color:#0000ff;">]]&gt;</span></li>
<li style="background:#f3f3f3;">      <span style="color:#0000ff;">&lt;/</span><span style="color:#a31515;">AllUsersWebPart</span><span style="color:#0000ff;">&gt;</span></li>
</ol></div>
</p></div>
</p></div>
</p>
<p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:38a8d789-84d6-4c30-a242-5d6053b25553" class="wlWriterEditableSmartContent">
<div style="border:#000080 1px solid;color:#000;font-family:'Courier New', Courier, Monospace;font-size:10pt;">
<div style="background:#000080;color:#fff;font-family:Verdana, Tahoma, Arial, sans-serif;font-weight:bold;padding:2px 5px;">Web Part Provider</div>
<div style="background:#ddd;max-height:300px;overflow:auto;">
<ol start="1" style="background:#ffffff;margin:0 0 0 2.5em;padding:0 0 0 5px;">
<li>    <span style="color:#0000ff;">&lt;</span><span style="color:#a31515;">AllUsersWebPart</span><span style="color:#0000ff;"> </span><span style="color:#ff0000;">WebPartOrder</span><span style="color:#0000ff;">=</span>&quot;<span style="color:#0000ff;">1</span>&quot;<span style="color:#0000ff;"> </span><span style="color:#ff0000;">WebPartZoneID</span><span style="color:#0000ff;">=</span>&quot;<span style="color:#0000ff;">MiddleZone</span>&quot;<span style="color:#0000ff;"> </span><span style="color:#ff0000;">ID</span><span style="color:#0000ff;">=</span>&quot;<span style="color:#0000ff;">MediaSearchWebPart</span>&quot;<span style="color:#0000ff;">&gt;</span></li>
<li style="background:#f3f3f3;">            <span style="color:#0000ff;">&lt;![CDATA[</span><span style="color:#808080;">&lt;webParts&gt;</span></li>
<li>  <span style="color:#808080;">&lt;webPart xmlns=&quot;http://schemas.microsoft.com/WebPart/v3&quot;&gt;</span></li>
<li style="background:#f3f3f3;">    <span style="color:#808080;">&lt;metaData&gt;</span></li>
<li>      <span style="color:#808080;">&lt;type name=&quot;Instalec.SharePoint.WebParts.MediaSearchWebPart.MediaSearchWebPart, Instalec.SharePoint.WebParts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9e5b38b443f03fff&quot; /&gt;</span></li>
<li style="background:#f3f3f3;">      <span style="color:#808080;">&lt;importErrorMessage&gt;Cannot import this Web Part.&lt;/importErrorMessage&gt;</span></li>
<li>    <span style="color:#808080;">&lt;/metaData&gt;</span></li>
<li style="background:#f3f3f3;">    <span style="color:#808080;">&lt;data&gt;</span></li>
<li>      <span style="color:#808080;">&lt;properties&gt;</span></li>
<li style="background:#f3f3f3;">        <span style="color:#808080;">&lt;property name=&quot;Title&quot; type=&quot;string&quot;&gt;Media Search&lt;/property&gt;</span></li>
<li>        <span style="color:#808080;">&lt;property name=&quot;Description&quot; type=&quot;string&quot;&gt;My Visual WebPart&lt;/property&gt;</span></li>
<li style="background:#f3f3f3;">      <span style="color:#808080;">&lt;/properties&gt;</span></li>
<li>    <span style="color:#808080;">&lt;/data&gt;</span></li>
<li style="background:#f3f3f3;">  <span style="color:#808080;">&lt;/webPart&gt;</span></li>
<li><span style="color:#808080;">&lt;/webParts&gt;</span></li>
<li style="background:#f3f3f3;"><span style="color:#0000ff;">]]&gt;</span></li>
<li>        <span style="color:#0000ff;">&lt;/</span><span style="color:#a31515;">AllUsersWebPart</span><span style="color:#0000ff;">&gt;</span></li>
</ol></div>
</p></div>
</p></div>
</p>
<p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:bc01ed7f-57f6-43de-936a-43e1d7c1b75e" class="wlWriterEditableSmartContent">
<div style="border:#000080 1px solid;color:#000;font-family:'Courier New', Courier, Monospace;font-size:10pt;">
<div style="background:#000080;color:#fff;font-family:Verdana, Tahoma, Arial, sans-serif;font-weight:bold;padding:2px 5px;">Connection Consumer Attribute</div>
<div style="background:#ddd;max-height:300px;overflow:auto;">
<ol start="1" style="background:#ffffff;margin:0 0 0 2em;padding:0 0 0 5px;">
<li> [<span style="color:#2b91af;">ConnectionConsumer</span>(<span style="color:#a31515;">&quot;The Search Criteria&quot;</span>, <span style="color:#a31515;">&quot;MediaSearchConsumer&quot;</span>)]</li>
<li style="background:#f3f3f3;">        <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">void</span> IMediaSearchConsumer(<span style="color:#2b91af;">IMediaSearch</span> mediaSearch)</li>
</ol></div>
</p></div>
</p></div>
</p>
<p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:b5f329f4-7e2a-493c-ae59-6c0dcfa60dd0" class="wlWriterEditableSmartContent">
<div style="border:#000080 1px solid;color:#000;font-family:'Courier New', Courier, Monospace;font-size:10pt;">
<div style="background:#000080;color:#fff;font-family:Verdana, Tahoma, Arial, sans-serif;font-weight:bold;padding:2px 5px;">Connection Provider</div>
<div style="background:#ddd;max-height:500px;overflow:auto;">
<ol start="1" style="background:#ffffff;margin:0 0 0 2em;padding:0 0 0 5px;">
<li>[<span style="color:#2b91af;">ConnectionProvider</span>(<span style="color:#a31515;">&quot;The Search Criteria&quot;</span>, <span style="color:#a31515;">&quot;MediaSearchProvider&quot;</span>)] </li>
<li style="background:#f3f3f3;">     <span style="color:#0000ff;">public</span> <span style="color:#2b91af;">IMediaSearch</span> IMediaSearchProvider()</li>
<li>     {</li>
<li style="background:#f3f3f3;">         <span style="color:#0000ff;">return</span> <span style="color:#0000ff;">this</span>; </li>
<li>     }</li>
</ol></div>
</p></div>
</p></div>
</p>
<p>&#160;</p>
<p>
<table border="0" cellspacing="0" cellpadding="2" width="400">
<tbody>
<tr>
<td valign="top" width="200">ConsumerID</td>
<td valign="top" width="200">ID specified in the AllUserWebPart element as seen in the Web Part Consumer above</td>
</tr>
<tr>
<td valign="top" width="200">ConsumerConnectionPointID</td>
<td valign="top" width="200">The ID of the ConnectionConsumerAttribute seen above</td>
</tr>
<tr>
<td valign="top" width="200">ProviderID</td>
<td valign="top" width="200">ID specified in the AllUserWebPart element as seen in the Web Part Provider above</td>
</tr>
<tr>
<td valign="top" width="200">ProviderConnectionPointID</td>
<td valign="top" width="200">The ID of the ConnectionProviderAttribute seen           <br /> above</td>
</tr>
<tr>
<td valign="top" width="200">ID</td>
<td valign="top" width="200">This can be any value but will not work without it</td>
</tr>
</tbody>
</table>
<p>Job done… <img style="border-style:none;" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://duthiega.files.wordpress.com/2011/10/wlemoticon-smile.png?w=614" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/duthiega.wordpress.com/467/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/duthiega.wordpress.com/467/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/duthiega.wordpress.com/467/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/duthiega.wordpress.com/467/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/duthiega.wordpress.com/467/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/duthiega.wordpress.com/467/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/duthiega.wordpress.com/467/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/duthiega.wordpress.com/467/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/duthiega.wordpress.com/467/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/duthiega.wordpress.com/467/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/duthiega.wordpress.com/467/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/duthiega.wordpress.com/467/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/duthiega.wordpress.com/467/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/duthiega.wordpress.com/467/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gordonduthie.net&amp;blog=10575018&amp;post=467&amp;subd=duthiega&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gordonduthie.net/2011/10/31/connecting-two-web-parts-declaratively-using-a-file-provisioning-module/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7cc17339b4f6c851ac51bcb5d71740cb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">duthiega</media:title>
		</media:content>

		<media:content url="http://duthiega.files.wordpress.com/2011/10/wlemoticon-smile.png" medium="image">
			<media:title type="html">Smile</media:title>
		</media:content>
	</item>
		<item>
		<title>Redeploying a SharePoint solution package</title>
		<link>http://gordonduthie.net/2011/10/05/redeploying-a-sharepoint-solution-package/</link>
		<comments>http://gordonduthie.net/2011/10/05/redeploying-a-sharepoint-solution-package/#comments</comments>
		<pubDate>Wed, 05 Oct 2011 07:44:28 +0000</pubDate>
		<dc:creator>Gordon Duthie</dc:creator>
				<category><![CDATA[Deployment]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Sharepoint 2010]]></category>

		<guid isPermaLink="false">https://duthiega.wordpress.com/2011/10/05/redeploying-a-sharepoint-solution-package/</guid>
		<description><![CDATA[Okay, before anyone comments on the simplicity of this posting. It merely t allow me to get the script easily in the future.&#160; What’s the purpose of it? It basically retracts a solution and waits until its fully retracted, then deletes it, adds it in again and redeploys it. Not rocket science, but handy.&#160; #Set [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gordonduthie.net&amp;blog=10575018&amp;post=465&amp;subd=duthiega&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Okay, before anyone comments on the simplicity of this posting. It merely t allow me to get the script easily in the future.&#160; What’s the purpose of it? It basically retracts a solution and waits until its fully retracted, then deletes it, adds it in again and redeploys it. Not rocket science, but handy.&#160; </p>
<p><font face="Courier New"><font color="#008000">#Set up Web Application variable       <br />#Only needed if solution contains Web Application scoped resources</font>      <br />$webApp = &quot;</font><a href="http://sitetodeployto&quot;"><font face="Courier New">http://sitetodeployto&quot;</font></a></p>
<p><font face="Courier New"><font color="#008000">#Set up solution name variable       <br /></font></font><font face="Courier New">$solutionName =&#160; &quot;solution.wsp&quot; </font></p>
<p><font face="Courier New"><font color="#008000">#Set up solution file path variable       <br /></font></font><font face="Courier New">$filePath = &quot;C:\Deploy51011\&quot; + $solutionName</font></p>
<p><font face="Courier New"><font color="#008000">#Uninstall solution       <br />#Add -WebApplication $webApp if solution contains Web Application scoped resources</font>      <br />Uninstall-SPSolution –Identity $solutionName –WebApplication $webApp&#160; -Confirm:$false </font></p>
<p><font face="Courier New"><font color="#008000">#set up a variable for the solution to allow access to properties</font>      <br />$solution = Get-SPSolution $solutionName</font></p>
<p><font face="Courier New"><font color="#008000">#Wait for solution to be uninstalled</font>      <br />do {Start-Sleep -s 1} while ($solution.Deployed -eq $true)       </p>
<p><font color="#008000"># add another couple of seconds </font>      <br />Start-Sleep -s 2</font></p>
<p><font face="Courier New"><font color="#008000">#Remove solution from the farm without prompting</font>      <br />Remove-SPSolution $solutionName -Confirm:$false</font></p>
<p><font color="#008000"><font color="#008000" face="Courier New"># add it back in and deploy it</font>      <br /></font><font face="Courier New">Add-SPSolution –LiteralPath $filePath     <br />Install-SPSolution –Identity $solutionName –WebApplication $webApp –GACDeployment</font></p>
<p>Hope this saves someone some time <img style="border-style:none;" class="wlEmoticon wlEmoticon-winkingsmile" alt="Winking smile" src="http://duthiega.files.wordpress.com/2011/10/wlemoticon-winkingsmile.png?w=614" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/duthiega.wordpress.com/465/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/duthiega.wordpress.com/465/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/duthiega.wordpress.com/465/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/duthiega.wordpress.com/465/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/duthiega.wordpress.com/465/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/duthiega.wordpress.com/465/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/duthiega.wordpress.com/465/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/duthiega.wordpress.com/465/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/duthiega.wordpress.com/465/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/duthiega.wordpress.com/465/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/duthiega.wordpress.com/465/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/duthiega.wordpress.com/465/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/duthiega.wordpress.com/465/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/duthiega.wordpress.com/465/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gordonduthie.net&amp;blog=10575018&amp;post=465&amp;subd=duthiega&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gordonduthie.net/2011/10/05/redeploying-a-sharepoint-solution-package/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7cc17339b4f6c851ac51bcb5d71740cb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">duthiega</media:title>
		</media:content>

		<media:content url="http://duthiega.files.wordpress.com/2011/10/wlemoticon-winkingsmile.png" medium="image">
			<media:title type="html">Winking smile</media:title>
		</media:content>
	</item>
		<item>
		<title>Component Services Disabled in Windows 2008 R2</title>
		<link>http://gordonduthie.net/2011/09/16/component-services-disabled-in-windows-2008-r2/</link>
		<comments>http://gordonduthie.net/2011/09/16/component-services-disabled-in-windows-2008-r2/#comments</comments>
		<pubDate>Fri, 16 Sep 2011 15:48:23 +0000</pubDate>
		<dc:creator>Gordon Duthie</dc:creator>
				<category><![CDATA[2008 R2]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">https://duthiega.wordpress.com/2011/09/16/component-services-disabled-in-windows-2008-r2/</guid>
		<description><![CDATA[After receiving several DCOM error in Event Viewer about permission on various object I decided to amend the&#160; Launch and Activation Permissions of the Key in question. I this case it was IIS Admin Service with the Key {A9E69610-B80D-11D0-B9B9-00A0C922E750} and&#160; IIS WAMREG admin Service with the key {61738644-F196-11D0-9953-00C04FD919C1}. However, when I tried to amend I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gordonduthie.net&amp;blog=10575018&amp;post=463&amp;subd=duthiega&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After receiving several DCOM error in Event Viewer about permission on various object I decided to amend the&#160; Launch and Activation Permissions of the Key in question. I this case it was IIS Admin Service with the Key {A9E69610-B80D-11D0-B9B9-00A0C922E750} and&#160; IIS WAMREG admin Service with the key {61738644-F196-11D0-9953-00C04FD919C1}. However, when I tried to amend I found that all the properties were disabled as seen below</p>
<p><a href="http://duthiega.files.wordpress.com/2011/09/image.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://duthiega.files.wordpress.com/2011/09/image_thumb.png?w=408&#038;h=537" width="408" height="537" /></a></p>
<p>After some Google-ing, I found that there were a couple of registry keys forcing this read-only state. </p>
<p>HKEY_CLASSES_ROOT\AppID\{A9E69610-B80D-11D0-B9B9-00A0C922E750} </p>
<p>HKEY_CLASSES_ROOT\AppID\{61738644-F196-11D0-9953-00C04FD919C1} </p>
<p>To change this – right click on the key and choose advanced, and replace the owner as the administrators group</p>
<p><a href="http://duthiega.files.wordpress.com/2011/09/image1.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://duthiega.files.wordpress.com/2011/09/image_thumb1.png?w=630&#038;h=473" width="630" height="473" /></a></p>
<p>The once this has been done change the administrator&#8217;s permissions to full control. </p>
<p><a href="http://duthiega.files.wordpress.com/2011/09/image2.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://duthiega.files.wordpress.com/2011/09/image_thumb2.png?w=371&#038;h=447" width="371" height="447" /></a></p>
<p>Now re-launch the component service and you should now be able to edit the values </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/duthiega.wordpress.com/463/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/duthiega.wordpress.com/463/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/duthiega.wordpress.com/463/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/duthiega.wordpress.com/463/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/duthiega.wordpress.com/463/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/duthiega.wordpress.com/463/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/duthiega.wordpress.com/463/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/duthiega.wordpress.com/463/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/duthiega.wordpress.com/463/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/duthiega.wordpress.com/463/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/duthiega.wordpress.com/463/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/duthiega.wordpress.com/463/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/duthiega.wordpress.com/463/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/duthiega.wordpress.com/463/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gordonduthie.net&amp;blog=10575018&amp;post=463&amp;subd=duthiega&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gordonduthie.net/2011/09/16/component-services-disabled-in-windows-2008-r2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7cc17339b4f6c851ac51bcb5d71740cb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">duthiega</media:title>
		</media:content>

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

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

		<media:content url="http://duthiega.files.wordpress.com/2011/09/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Error 27850. Unable to manage networking component. Operating system corruption may be preventing installation.</title>
		<link>http://gordonduthie.net/2011/08/17/error-27850-unable-to-manage-networking-component-operating-system-corruption-may-be-preventing-installation/</link>
		<comments>http://gordonduthie.net/2011/08/17/error-27850-unable-to-manage-networking-component-operating-system-corruption-may-be-preventing-installation/#comments</comments>
		<pubDate>Wed, 17 Aug 2011 18:54:20 +0000</pubDate>
		<dc:creator>Gordon Duthie</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[VPN]]></category>

		<guid isPermaLink="false">https://duthiega.wordpress.com/2011/08/17/error-27850-unable-to-manage-networking-component-operating-system-corruption-may-be-preventing-installation/</guid>
		<description><![CDATA[I received the above error while trying to install Cisco’s VPN x64 client on my laptop. &#160; &#160; After some investigation it turns out this error is caused by default value set by Windows 7 in the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\MaxNumFilters By default, this value is set to 8 and apparently can be set to a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gordonduthie.net&amp;blog=10575018&amp;post=456&amp;subd=duthiega&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I received the above error while trying to install Cisco’s VPN x64 client on my laptop. </p>
<p>&#160;</p>
<p><img alt="VPNIntall-error.png" src="https://supportforums.cisco.com/servlet/JiveServlet/downloadImage/2-3065598-3943/450-397/VPNIntall-error.png" /></p>
<p>&#160;</p>
<p>After some investigation it turns out this error is caused by default value set by Windows 7 in the registry key </p>
<p><font face="Courier New">HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\MaxNumFilters</font></p>
<p><font face="Courier New"></font></p>
<p>By default, this value is set to 8 and apparently can be set to a maximum value of 14. As some of the filters were used by Virtual Box, etc. I decided to set this to the maximum, rebooted and, hey presto, it installed!! </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/duthiega.wordpress.com/456/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/duthiega.wordpress.com/456/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/duthiega.wordpress.com/456/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/duthiega.wordpress.com/456/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/duthiega.wordpress.com/456/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/duthiega.wordpress.com/456/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/duthiega.wordpress.com/456/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/duthiega.wordpress.com/456/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/duthiega.wordpress.com/456/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/duthiega.wordpress.com/456/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/duthiega.wordpress.com/456/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/duthiega.wordpress.com/456/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/duthiega.wordpress.com/456/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/duthiega.wordpress.com/456/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gordonduthie.net&amp;blog=10575018&amp;post=456&amp;subd=duthiega&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gordonduthie.net/2011/08/17/error-27850-unable-to-manage-networking-component-operating-system-corruption-may-be-preventing-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7cc17339b4f6c851ac51bcb5d71740cb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">duthiega</media:title>
		</media:content>

		<media:content url="https://supportforums.cisco.com/servlet/JiveServlet/downloadImage/2-3065598-3943/450-397/VPNIntall-error.png" medium="image">
			<media:title type="html">VPNIntall-error.png</media:title>
		</media:content>
	</item>
		<item>
		<title>Custom SharePoint Web Service has no WSDL or DISCO</title>
		<link>http://gordonduthie.net/2011/07/29/custom-sharepoint-web-service-has-no-wsdl-or-disco/</link>
		<comments>http://gordonduthie.net/2011/07/29/custom-sharepoint-web-service-has-no-wsdl-or-disco/#comments</comments>
		<pubDate>Fri, 29 Jul 2011 10:27:38 +0000</pubDate>
		<dc:creator>Gordon Duthie</dc:creator>
				<category><![CDATA[Sharepoint 2010]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>
		<category><![CDATA[Web Services]]></category>

		<guid isPermaLink="false">https://duthiega.wordpress.com/?p=450</guid>
		<description><![CDATA[One I’ve been meaning to blog for a while, but just never got round to it I came across an error when Creating a Custom web service for SharePoint when trying to deploy the web service to the ISAPI&#160; folder, allowing me to access a web service through the&#160; _vti_bin of SharePoint.&#160; When you create [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gordonduthie.net&amp;blog=10575018&amp;post=450&amp;subd=duthiega&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One I’ve been meaning to blog for a while, but just never got round to it <img style="border-style:none;" class="wlEmoticon wlEmoticon-surprisedsmile" alt="Surprised smile" src="http://duthiega.files.wordpress.com/2011/11/wlemoticon-surprisedsmile.png?w=614" /></p>
<p> I came across an error when Creating a Custom web service for SharePoint when trying to deploy the web service to the ISAPI&#160; folder, allowing me to access a web service through the&#160; _vti_bin of SharePoint.&#160; </p>
<p>When you create a web service and deploy it to a mapped folder the code behind, as expected goes into the GAC. However, there is no WSDL or DISCO file associated with the web service, so it doesn’t work.&#160; </p>
<p>To create a web service which deploys to the _vti_bin </p>
<ol>
<li>Add a text file to the {SharePointRoot}\ISAPI mapped folder of your SharePoint project. </li>
<li>Rename your text file to &lt;ServiceName&gt;.asmx. Now you have the service you now need to associate it to the code behind. </li>
<li>Create a class and name it &lt;ServiceName&gt;.cs or .vb if you are that way inclined !! </li>
<li>Add the following attributes to your class     <br /><font color="#008000" face="Courier New">&#160;<font color="#000000">&#160; [WebService(Namespace = &quot;</font></font><a href="http://&lt;yourdomain&gt;/sharepoint/services/&quot;)]&#8220;><font color="#000000" face="Courier New">/sharepoint/services/&quot;)]&#8217;&gt;http://&lt;yourdomain&gt;/sharepoint/services/&quot;)]</font></a>      <br /><font color="#000000" face="Courier New">&#160;&#160; [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]       <br />&#160;&#160; [System.ComponentModel.ToolboxItem(false)]</font></li>
<li>Next, return to your asmx file created in step 2 and add the following to the top of the file     <br /><font face="Courier New">&lt;%@ WebService Language=&quot;C#&quot; Class=&quot;&lt;NameSpaceOfAssembly&gt;.&lt;NameOfServiceClass&gt;, &lt;NameSpaceOfAssembly&gt;, Version=&lt;VersionOfYourAssembly&gt;, Culture=neutral, PublicKeyToken=&lt;PublicKeyOfYourAssembly&gt;&quot; %&gt;       <br /></font><font color="#ff0000" size="1" face="Arial"><strong>Note:<font color="#000000"> If you don’t know the public key, build your project, open a Visual Studio command prompt and naviate to your debug folder. Then run the command sn –T &lt;NameOfYourDll&gt;.dll</font></strong></font></li>
<li>Next, you need to deploy your solution to get the asmx file into the ISAPI folder and your class into the GAC. </li>
<li>Once deployed, navigate to the web service at &lt;SharePointSite&gt;_vti_bin/&lt;PathIfAny&gt;/&lt;ServiceName&gt;.asmx and you should see your service with any web method you have added.</li>
<li>Next, you will need to create WSDL and DISCO files to allow your to add reference to the service from a project. </li>
<li>For some reason you don’t seem to be able to do this from the ISAPI folder, you receive a file not found error seen below. <a href="http://duthiega.files.wordpress.com/2011/07/image11.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" border="0" alt="image" src="http://duthiega.files.wordpress.com/2011/07/image_thumb11.png?w=675&#038;h=334" width="675" height="334" /></a>      <br />So,&#160; you need to copy the deployed file from the ISAPI folder to the LAYOUTS folder.       <br />Then run the command from the Visual Studio command prompt, ran as Administrator
<p><a href="http://duthiega.files.wordpress.com/2011/07/visualstudiocommandprompt.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="VisualStudioCommandPrompt" border="0" alt="VisualStudioCommandPrompt" src="http://duthiega.files.wordpress.com/2011/07/visualstudiocommandprompt_thumb.png?w=206&#038;h=338" width="206" height="338" /></a>      <br /><font color="#000000" face="Courier New">       <br />disco </font><a href="http://&lt;SiteCollectionUrl&gt;/_layouts/&lt;NameOfService&gt;.asmx"><font color="#000000" face="Courier New">/_layouts/.asmx&quot;&gt;http://&lt;SiteCollectionUrl&gt;/_layouts/&lt;NameOfService&gt;.asmx</font></a>&#160;</li>
<li>Once you have successfully ran this for the instructions in the “Generating and Modifying Static Discovery and WSDL Files” section of the <a href="http://msdn.microsoft.com/en-us/library/ms464040.aspx">Creating a Custom ASP.NET Web Service</a> page on MSDN.&#160; </li>
<li>Copy these newly create wsdl and disco files back into your project and redeploy. </li>
</ol>
<p><strong><font color="#ff0000">Please note: T</font>his tedious process will have to be redone anytime you add a new web method to your service.</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/duthiega.wordpress.com/450/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/duthiega.wordpress.com/450/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/duthiega.wordpress.com/450/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/duthiega.wordpress.com/450/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/duthiega.wordpress.com/450/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/duthiega.wordpress.com/450/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/duthiega.wordpress.com/450/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/duthiega.wordpress.com/450/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/duthiega.wordpress.com/450/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/duthiega.wordpress.com/450/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/duthiega.wordpress.com/450/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/duthiega.wordpress.com/450/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/duthiega.wordpress.com/450/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/duthiega.wordpress.com/450/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gordonduthie.net&amp;blog=10575018&amp;post=450&amp;subd=duthiega&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gordonduthie.net/2011/07/29/custom-sharepoint-web-service-has-no-wsdl-or-disco/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7cc17339b4f6c851ac51bcb5d71740cb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">duthiega</media:title>
		</media:content>

		<media:content url="http://duthiega.files.wordpress.com/2011/11/wlemoticon-surprisedsmile.png" medium="image">
			<media:title type="html">Surprised smile</media:title>
		</media:content>

		<media:content url="http://duthiega.files.wordpress.com/2011/07/image_thumb11.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://duthiega.files.wordpress.com/2011/07/visualstudiocommandprompt_thumb.png" medium="image">
			<media:title type="html">VisualStudioCommandPrompt</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint, SSRS and Kerberos</title>
		<link>http://gordonduthie.net/2011/07/27/sharepoint-ssrs-and-kerberos/</link>
		<comments>http://gordonduthie.net/2011/07/27/sharepoint-ssrs-and-kerberos/#comments</comments>
		<pubDate>Wed, 27 Jul 2011 15:16:41 +0000</pubDate>
		<dc:creator>Gordon Duthie</dc:creator>
				<category><![CDATA[Kerberos]]></category>
		<category><![CDATA[LINQ 2 Sharepoint]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Sharepoint 2010]]></category>
		<category><![CDATA[SSRS]]></category>
		<category><![CDATA[Web Services]]></category>

		<guid isPermaLink="false">https://duthiega.wordpress.com/2011/07/27/sharepoint-ssrs-and-kerberos/</guid>
		<description><![CDATA[Scenario: SSRS, in SharePoint integrated mode, is calling a custom web service located in the SharePoint ISAPI folder access through _vti_bin.&#160; This service is using LINQ 2 SharePoint to query multiple lists in the SharePoint WFE. A layout of the set up can be seen below. Okay, network diagrams is not my strong point!&#160; Because [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gordonduthie.net&amp;blog=10575018&amp;post=442&amp;subd=duthiega&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><font face="Courier New"><font face="Tahoma"><strong>Scenario:</strong> SSRS, in SharePoint integrated mode, is calling a custom web service located in the SharePoint ISAPI folder access through _vti_bin.&#160; This service is using LINQ 2 SharePoint to query multiple lists in the SharePoint WFE. </font></font></p>
<p>A layout of the set up can be seen below. Okay, network diagrams is not my strong point!&#160; </p>
<p><a href="http://duthiega.files.wordpress.com/2011/07/image4.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://duthiega.files.wordpress.com/2011/07/image_thumb4.png?w=360&#038;h=484" width="360" height="484" /></a></p>
<p><font face="Courier New"></font></p>
<p>Because the authentication is being passed over more that 2 boundaries it looses the user and passes null and the only way to fix this is to use Kerberos.<strong> </strong></p>
<p>So here’s how I went about setting it up: </p>
<p><strong>Service Principal Names (SPN) for Service Accounts&#160; </strong>&#160;</p>
<p>In order pass the Kerberos token you need to set up SPN’s.&#160; </p>
<p><font color="#ff0000"><strong>Note: Although I’ve not found confirmation of this SPN’s appear to be case sensitive</strong></font></p>
<p><font face="Courier New">setspn.exe -A HTTP/&lt;SSRS_FQDN&gt; SSRSService     <br />setspn.exe –A HTTP/&lt;SSRS_NetBIOSName&gt; SSRSService</font></p>
<p>Set the &lt;SSRS_FQDN&gt; to the FQDN of the server hosting the SharePoint Integrated SSRS and the &lt;SSRS_NetBIOSName&gt; as the Server name. </p>
<p>These entries can be confirmed by running </p>
<p><font face="Courier New">setspn.exe –L SSRSService</font></p>
<p>This should give an output similar to below. </p>
<p><a href="http://duthiega.files.wordpress.com/2011/07/image5.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://duthiega.files.wordpress.com/2011/07/image_thumb5.png?w=646&#038;h=127" width="646" height="127" /></a></p>
<p><font face="Courier New"><font face="Tahoma">The onto the WFE’s</font> </font></p>
<p><font face="Courier New">setspn.exe -A HTTP/&lt;SP_WFE_FQDN&gt; SPService     <br />setspn.exe -A HTTP/&lt;SP_WFE_NetBIOSName&gt; SPService</font></p>
<p>Set the &lt;SP_WFE_FQDN&gt; to either: the name of the server hosting the Sharepoint WFE or if this is an NLB cluster use the cluster name and the same goes for the &lt;SP_WFE_NetBIOSName&gt;</p>
<p><font face="Courier New">setspn.exe -A MSSQLSvc/&lt;SQL_FQDN&gt;:1433 SqlDbService     <br />setspn.exe -A MSSQLSvc/&lt;SQL_NetBIOSName&gt;:1433 SqlDbService</font></p>
<p>Set the &lt;SQL_FQDN&gt; to either: the name of the server hosting SQL or if this is a cluster use the cluster name and the same goes for the &lt;SQL_NetBIOSName&gt;</p>
<p><strong>Active Directory Users and Computers</strong> </p>
<p>Next, Open Active Directory Users and Computers and change each of the 3 accounts, selecting the Trust this user for delegation to any service (Kerberos Only) option on the delegation tab.&#160; </p>
<p><a href="http://duthiega.files.wordpress.com/2011/07/image6.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://duthiega.files.wordpress.com/2011/07/image_thumb6.png?w=429&#038;h=555" width="429" height="555" /></a></p>
<p><strong>SSRS App Server Changes </strong></p>
<p>On the SharePoint Application Server which is hosting SSRS Open the Local Security Policy and Go to User Management Rights. Change to&#160; “Act as a part of Operating System and “Impersonate a client after authentication” to include the users for both the WFE’s App Pool and SSRS Service Account</p>
<p><a href="http://duthiega.files.wordpress.com/2011/07/image7.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://duthiega.files.wordpress.com/2011/07/image_thumb7.png?w=570&#038;h=382" width="570" height="382" /></a></p>
<p><strong>Report Server Configuration Changes</strong></p>
<p>Open the RsReportServer.config file and locate the &lt;AuthenticationTypes&gt; section. Add &lt;RSWindowsNegotiate/&gt; as the first entry in this section.</p>
<p><strong>Central Admin Changes for Web Application</strong> </p>
<p>Next, open Central Admin and Navigate to Application Management –&gt; Manage Web Application </p>
<p><a href="http://duthiega.files.wordpress.com/2011/07/image8.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://duthiega.files.wordpress.com/2011/07/image_thumb8.png?w=671&#038;h=79" width="671" height="79" /></a></p>
<p>Then, select the application, then the authentication providers </p>
<p><a href="http://duthiega.files.wordpress.com/2011/07/image9.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://duthiega.files.wordpress.com/2011/07/image_thumb9.png?w=486&#038;h=194" width="486" height="194" /></a></p>
<p>In the pop-up click on the “Default” link in the Edit Authentication window scroll down to IIS Authentication Settings and choose Negotiate. </p>
<p><a href="http://duthiega.files.wordpress.com/2011/07/image10.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://duthiega.files.wordpress.com/2011/07/image_thumb10.png?w=477&#038;h=242" width="477" height="242" /></a></p>
<p>Scroll Down and Save. </p>
<p>Give this a minute to propagate to the other Servers in the farm and you should now be able to access the Reports which call the web service.&#160; </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/duthiega.wordpress.com/442/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/duthiega.wordpress.com/442/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/duthiega.wordpress.com/442/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/duthiega.wordpress.com/442/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/duthiega.wordpress.com/442/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/duthiega.wordpress.com/442/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/duthiega.wordpress.com/442/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/duthiega.wordpress.com/442/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/duthiega.wordpress.com/442/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/duthiega.wordpress.com/442/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/duthiega.wordpress.com/442/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/duthiega.wordpress.com/442/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/duthiega.wordpress.com/442/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/duthiega.wordpress.com/442/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gordonduthie.net&amp;blog=10575018&amp;post=442&amp;subd=duthiega&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gordonduthie.net/2011/07/27/sharepoint-ssrs-and-kerberos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7cc17339b4f6c851ac51bcb5d71740cb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">duthiega</media:title>
		</media:content>

		<media:content url="http://duthiega.files.wordpress.com/2011/07/image_thumb4.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://duthiega.files.wordpress.com/2011/07/image_thumb5.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://duthiega.files.wordpress.com/2011/07/image_thumb6.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://duthiega.files.wordpress.com/2011/07/image_thumb7.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://duthiega.files.wordpress.com/2011/07/image_thumb8.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://duthiega.files.wordpress.com/2011/07/image_thumb9.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://duthiega.files.wordpress.com/2011/07/image_thumb10.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Could not load file or assembly &#8216;Microsoft.ReportingServices.UpgradeScripts, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91&#8242; or one of its dependencies. Access is denied.</title>
		<link>http://gordonduthie.net/2011/07/20/could-not-load-file-or-assembly-microsoft-reportingservices-upgradescripts-version10-0-0-0-cultureneutral-publickeytoken89845dcd8080cc91-or-one-of-its-dependencies-access-is-denied/</link>
		<comments>http://gordonduthie.net/2011/07/20/could-not-load-file-or-assembly-microsoft-reportingservices-upgradescripts-version10-0-0-0-cultureneutral-publickeytoken89845dcd8080cc91-or-one-of-its-dependencies-access-is-denied/#comments</comments>
		<pubDate>Wed, 20 Jul 2011 12:55:34 +0000</pubDate>
		<dc:creator>Gordon Duthie</dc:creator>
				<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Sharepoint 2010]]></category>
		<category><![CDATA[SSRS]]></category>

		<guid isPermaLink="false">https://duthiega.wordpress.com/2011/07/20/could-not-load-file-or-assembly-microsoft-reportingservices-upgradescripts-version10-0-0-0-cultureneutral-publickeytoken89845dcd8080cc91-or-one-of-its-dependencies-access-is-denied/</guid>
		<description><![CDATA[Came across the above error on all the reports served through SharePoint in integrated mode. Not sure why this happen, but you seem to be able to resolve it by restarting the reports service. Go to the Reporting Services Configuration Manager ( seen in figure below), connect to the server, then stop and start the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gordonduthie.net&amp;blog=10575018&amp;post=427&amp;subd=duthiega&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Came across the above error on all the reports served through SharePoint in integrated mode. Not sure why this happen, but you seem to be able to resolve it by restarting the reports service.    </p>
<p>Go to the Reporting Services Configuration Manager ( seen in figure below), connect to the server, then stop and start the service </p>
<p><a href="http://duthiega.files.wordpress.com/2011/07/image3.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://duthiega.files.wordpress.com/2011/07/image_thumb3.png?w=405&#038;h=259" width="405" height="259" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/duthiega.wordpress.com/427/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/duthiega.wordpress.com/427/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/duthiega.wordpress.com/427/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/duthiega.wordpress.com/427/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/duthiega.wordpress.com/427/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/duthiega.wordpress.com/427/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/duthiega.wordpress.com/427/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/duthiega.wordpress.com/427/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/duthiega.wordpress.com/427/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/duthiega.wordpress.com/427/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/duthiega.wordpress.com/427/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/duthiega.wordpress.com/427/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/duthiega.wordpress.com/427/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/duthiega.wordpress.com/427/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gordonduthie.net&amp;blog=10575018&amp;post=427&amp;subd=duthiega&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gordonduthie.net/2011/07/20/could-not-load-file-or-assembly-microsoft-reportingservices-upgradescripts-version10-0-0-0-cultureneutral-publickeytoken89845dcd8080cc91-or-one-of-its-dependencies-access-is-denied/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7cc17339b4f6c851ac51bcb5d71740cb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">duthiega</media:title>
		</media:content>

		<media:content url="http://duthiega.files.wordpress.com/2011/07/image_thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Checking if SharePoint Event Receivers are attached to a list using PowerShell.</title>
		<link>http://gordonduthie.net/2011/07/15/checking-if-sharepoint-event-receivers-are-attached-to-a-list-using-powershell/</link>
		<comments>http://gordonduthie.net/2011/07/15/checking-if-sharepoint-event-receivers-are-attached-to-a-list-using-powershell/#comments</comments>
		<pubDate>Fri, 15 Jul 2011 09:31:42 +0000</pubDate>
		<dc:creator>Gordon Duthie</dc:creator>
				<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Sharepoint 2010]]></category>

		<guid isPermaLink="false">https://duthiega.wordpress.com/2011/07/15/checking-if-sharepoint-event-receivers-are-attached-to-a-list-using-powershell/</guid>
		<description><![CDATA[After deploying several event receivers to a variety of lists I found that one of the event receivers did not seem to be working, but instead was firing a old version of the DLL. So, to check that it was indeed attached, I ran the following PowerShell command. $spWeb = Get-SPWeb –Identity &#60;SharePointWebUrl&#62; $spList = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gordonduthie.net&amp;blog=10575018&amp;post=424&amp;subd=duthiega&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After deploying several event receivers to a variety of lists I found that one of the event receivers did not seem to be working, but instead was firing a old version of the DLL. </p>
<p>So, to check that it was indeed attached, I ran the following PowerShell command. </p>
<pre class="brush: powershell; auto-links: true; collapse: false; first-line: 1; gutter: true; html-script: true; light: false; ruler: false; smart-tabs: true; tab-size: 4; toolbar: true;">$spWeb = Get-SPWeb –Identity &lt;SharePointWebUrl&gt;
$spList = $spWeb.Lists[&quot;List Display Name&quot;]
$spList.EventReceivers | Select Name, Assembly, Type</pre>
<p>After running this I discovered that one of the event receivers had been attached to the list twice! I’m not entirely sure why or how this happened, but my problem was resolved by deleting the duplicate receivers and reattaching it once.</p>
<p>The script is used to delete was: </p>
<pre class="brush: powershell; auto-links: true; collapse: false; first-line: 1; gutter: true; html-script: true; light: false; ruler: false; smart-tabs: true; tab-size: 4; toolbar: true;">$spWeb = Get-SPWeb –Identity &lt;SharePointWebUrl&gt;
$spList = $spWeb.Lists[&quot;List Display Name&quot;]
$eventsCount = $spList.EventReceivers.Count
$assembly = &quot;Company.SharePoint.Client.EventReceivers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=570c484d87a3aa61&quot;
$class = &quot;Company.SharePoint.Client.EventReceivers.ProvisionServiceAreaSecurityGroups.ProvisionServiceAreaSecurityGroups&quot; $name = &quot;ProvisionServiceAreaSecurityGroupsItemUpdating&quot;
$type = 2
for ($i = 0; $i -lt $eventsCount; $i+=1)
{
     if ($spList.EventReceivers[$i].Assembly -eq $assembly –and
         $spList.EventReceivers[$i].Class -eq $class –and
         $spList.EventReceivers[$i].Type -eq $type –and
         $spList.EventReceivers[$i].Name -eq $Name)
         {
             $spList.EventReceivers[$i].Delete()
         }
}

$spList.Update()</pre>
</p>
<p>And to add it was: </p>
<pre class="brush: powershell; auto-links: true; collapse: false; first-line: 1; gutter: true; html-script: true; light: false; ruler: false; smart-tabs: true; tab-size: 4; toolbar: true;">$spWeb = Get-SPWeb –Identity &lt;SharePointWebUrl&gt;
$spList = $spWeb.Lists[&quot;List Display Name&quot;]
$spEventReceiver = $spList.EventReceivers.Add()
$spEventReceiver.Assembly = &quot;Company.SharePoint.Client.EventReceivers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=570c484d87a3aa61&quot;
$spEventReceiver.Class = &quot;Company.SharePoint.Client.EventReceivers.ProvisionServiceAreaSecurityGroups.ProvisionServiceAreaSecurityGroups&quot; $spEventReceiver.Name = &quot;ProvisionServiceAreaSecurityGroupsItemUpdating&quot;
$spEventReceiver.Type = 2
$spEventReceiver.SequenceNumber = 1000
$spEventReceiver.Synchronization = 0
$spEventReceiver.Update()</pre>
<p>&#160;</p>
<p>That’s it <img style="border-style:none;" class="wlEmoticon wlEmoticon-winkingsmile" alt="Winking smile" src="http://duthiega.files.wordpress.com/2011/07/wlemoticon-winkingsmile.png?w=614" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/duthiega.wordpress.com/424/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/duthiega.wordpress.com/424/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/duthiega.wordpress.com/424/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/duthiega.wordpress.com/424/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/duthiega.wordpress.com/424/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/duthiega.wordpress.com/424/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/duthiega.wordpress.com/424/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/duthiega.wordpress.com/424/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/duthiega.wordpress.com/424/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/duthiega.wordpress.com/424/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/duthiega.wordpress.com/424/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/duthiega.wordpress.com/424/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/duthiega.wordpress.com/424/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/duthiega.wordpress.com/424/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gordonduthie.net&amp;blog=10575018&amp;post=424&amp;subd=duthiega&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gordonduthie.net/2011/07/15/checking-if-sharepoint-event-receivers-are-attached-to-a-list-using-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7cc17339b4f6c851ac51bcb5d71740cb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">duthiega</media:title>
		</media:content>

		<media:content url="http://duthiega.files.wordpress.com/2011/07/wlemoticon-winkingsmile.png" medium="image">
			<media:title type="html">Winking smile</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint NewForm.aspx overwriting existing data.</title>
		<link>http://gordonduthie.net/2011/07/14/sharepoint-newform-aspx-overwriting-existing-data/</link>
		<comments>http://gordonduthie.net/2011/07/14/sharepoint-newform-aspx-overwriting-existing-data/#comments</comments>
		<pubDate>Thu, 14 Jul 2011 09:16:08 +0000</pubDate>
		<dc:creator>Gordon Duthie</dc:creator>
				<category><![CDATA[Sharepoint 2010]]></category>

		<guid isPermaLink="false">https://duthiega.wordpress.com/2011/07/14/sharepoint-newform-aspx-overwriting-existing-data/</guid>
		<description><![CDATA[Bizarre one this: Using SharePoint 2010’s new Modal Popup functionality a link had been created from a tab control to launch the new form for the list items associated with the tab. However, every time the form was submitted, it overwrote one of the existing records in the list. Firstly, I thought I was imagining [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gordonduthie.net&amp;blog=10575018&amp;post=420&amp;subd=duthiega&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Bizarre one this: Using SharePoint 2010’s new Modal Popup functionality a link had been created from a tab control to launch the new form for the list items associated with the tab. However, every time the form was submitted, it overwrote one of the existing records in the list. Firstly, I thought I was imagining things !!! But, it turned out that this was caused by using the ID  key in the query string.  I changed ID to RefID all was well.</p>
<p>It makes sense when you know, but it took a while to figure out why this was happening.</p>
<p><strong>Lesson Learned:</strong> Don’t every use ID in the query string of a NewForm.aspx</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/duthiega.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/duthiega.wordpress.com/420/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/duthiega.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/duthiega.wordpress.com/420/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/duthiega.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/duthiega.wordpress.com/420/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/duthiega.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/duthiega.wordpress.com/420/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/duthiega.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/duthiega.wordpress.com/420/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/duthiega.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/duthiega.wordpress.com/420/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/duthiega.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/duthiega.wordpress.com/420/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gordonduthie.net&amp;blog=10575018&amp;post=420&amp;subd=duthiega&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gordonduthie.net/2011/07/14/sharepoint-newform-aspx-overwriting-existing-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7cc17339b4f6c851ac51bcb5d71740cb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">duthiega</media:title>
		</media:content>
	</item>
	</channel>
</rss>
