<?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>Bram de Jager&#039;s SharePoint blog</title>
	<atom:link href="http://bramdejager.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://bramdejager.wordpress.com</link>
	<description>My view and thoughts on SharePoint.</description>
	<lastBuildDate>Tue, 21 May 2013 07:32:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='bramdejager.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Bram de Jager&#039;s SharePoint blog</title>
		<link>http://bramdejager.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://bramdejager.wordpress.com/osd.xml" title="Bram de Jager&#039;s SharePoint blog" />
	<atom:link rel='hub' href='http://bramdejager.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Compare SharePoint 2013 editions: on-premise and online</title>
		<link>http://bramdejager.wordpress.com/2013/05/20/compare-sharepoint-2013-editions-on-premise-and-online/</link>
		<comments>http://bramdejager.wordpress.com/2013/05/20/compare-sharepoint-2013-editions-on-premise-and-online/#comments</comments>
		<pubDate>Mon, 20 May 2013 14:34:03 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Licenses]]></category>
		<category><![CDATA[Office 365]]></category>
		<category><![CDATA[SharePoint 2013]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/?p=277</guid>
		<description><![CDATA[In the process of determining which SharePoint 2013 edition you need? Microsoft has provided a TechNet article containing all SharePoint 2013 features compared to the on-premise and online editions. This article lists the feature availability across Office 365 plans, SharePoint Online standalone plans and on-premise. Comparing SharePoint 2013 editions is a bit hidden in the [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=277&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>In the process of determining which SharePoint 2013 edition you need? Microsoft has provided a TechNet article containing all <a title="SharePoint Online Service Description" href="http://technet.microsoft.com/en-us/library/jj819267.aspx" target="_blank">SharePoint 2013 features compared</a> to the on-premise and online editions. This article lists the feature availability across Office 365 plans, SharePoint Online standalone plans and on-premise. </p>
<p>Comparing SharePoint 2013 editions is a bit hidden in the SharePoint Online Service Description, so I provided an overview and deep links below. </p>
<p><a title="SharePoint feature availability across on-premises solutions" href="http://technet.microsoft.com/en-us/library/jj819267.aspx#bkmk_FeaturesOnPremise" target="_blank">SharePoint 2013 on-premise</a></p>
<ul>
<li>SharePoint Foundation 2013</li>
<li>SharePoint Server 2013 Standard CAL</li>
<li>SharePoint Server 2013 Enterprise CAL</li>
</ul>
<p><a title="SharePoint feature availability across Office 365 plans" href="http://technet.microsoft.com/en-us/library/jj819267.aspx#bkmk_tableo365" target="_blank">Office 365 plans</a></p>
<ul>
<li>Office 365 Small Business</li>
<li>Office 365 Small Business Premium</li>
<li>Office 365 Midsize Business</li>
<li>Office 365 Enterprise E1</li>
<li>Office 365 Education A2</li>
<li>Office 365 Government G1</li>
<li>Office 365 Enterprise E3</li>
<li>Office 365 Education A3</li>
<li>Office 365 Government G3</li>
<li>Office 365 Enterprise E4</li>
<li>Office 365 Education A4</li>
<li>Office 365 Government G4</li>
<li>Office 365 Enterprise K1</li>
<li>Office 365 Government K1</li>
<li>SharePoint Online Enterprise External Users</li>
</ul>
<p><a title="SharePoint feature availability across SharePoint Online standalone plans" href="http://technet.microsoft.com/en-us/library/jj819267.aspx#bkmk_tablespo" target="_blank">SharePoint Online standalone plans</a></p>
<ul>
<li>SharePoint Online Plan 1</li>
<li>SharePoint Online Plan 2</li>
</ul>
<p>Source: SharePoint Online Service Description, <a href="http://technet.microsoft.com/en-us/library/jj819267.aspx">http://technet.microsoft.com/en-us/library/jj819267.aspx</a></p>
<br /> Tagged: <a href='http://bramdejager.wordpress.com/tag/licenses/'>Licenses</a>, <a href='http://bramdejager.wordpress.com/tag/office-365/'>Office 365</a>, <a href='http://bramdejager.wordpress.com/tag/sharepoint-2013/'>SharePoint 2013</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/277/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=277&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2013/05/20/compare-sharepoint-2013-editions-on-premise-and-online/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>
	</item>
		<item>
		<title>Microsoft TechDays 2013</title>
		<link>http://bramdejager.wordpress.com/2013/03/14/microsoft-techdays-2013/</link>
		<comments>http://bramdejager.wordpress.com/2013/03/14/microsoft-techdays-2013/#comments</comments>
		<pubDate>Thu, 14 Mar 2013 14:50:39 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/?p=271</guid>
		<description><![CDATA[Last week I presented at the Microsoft TechDays 2013 in The Hague, Netherlands. I want to thank the attendees for joining my session on Developing SharePoint 2013 Apps with Visual Studio 2012. The last session before the weekend after 2 days filled with sessions, big shout out to them! You can find my slides and [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=271&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Last week I presented at the <a href="http://www.techdays.nl" target="_blank">Microsoft TechDays 2013</a> in The Hague, Netherlands. I want to thank the attendees for joining my session on <a href="http://www.microsoft.com/netherlands/techdays/SessionDetail.aspx?sessionId=3542">Developing SharePoint 2013 Apps with Visual Studio 2012</a>. The last session before the weekend after 2 days filled with sessions, big shout out to them! </p>
<p>You can find my <strong>slides</strong> and <strong>demo source code</strong> on <a title="Bram de Jager on TechDays" href="http://www.macaw.nl/weblog/2012/12/bram-de-jager" target="_blank">Bram de Jager on TechDays</a> on <a href="http://www.macaw.nl">www.macaw.nl</a>.&#160; </p>
<p>Other colleague speakers are <a title="Arie Leeuwesteijn" href="http://www.macaw.nl/weblog/2012/12/arie-leeuwesteijn" target="_blank">Arie Leeuwesteijn</a> with <em>Async and parallel patterns and application design (level 200 in Dutch)</em> and <a title="Dion Olsthoorn" href="http://www.macaw.nl/weblog/2012/12/dion-olsthoorn" target="_blank">Dion Olsthoorn</a> with <em>Bouw cross-platform mobiele apps met PhoneGap (level 200 in Dutch).</em> </p>
<p><img src="http://bramdejager.files.wordpress.com/2013/01/techdays2013_speakersbadge.png?w=600" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/271/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=271&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2013/03/14/microsoft-techdays-2013/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2013/01/techdays2013_speakersbadge.png" medium="image" />
	</item>
		<item>
		<title>Error installing Workflow Manager: Add-WFHost raises exception</title>
		<link>http://bramdejager.wordpress.com/2013/02/25/error-installing-workflow-manager-add-wfhost-raises-exception/</link>
		<comments>http://bramdejager.wordpress.com/2013/02/25/error-installing-workflow-manager-add-wfhost-raises-exception/#comments</comments>
		<pubDate>Mon, 25 Feb 2013 19:38:42 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Deployment]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SharePoint 2013]]></category>
		<category><![CDATA[Workflow]]></category>
		<category><![CDATA[Workflow Manager]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/?p=269</guid>
		<description><![CDATA[Workflow Manager 1.0 (a.k.a. Azure Workflow) is the new workflow engine to support workflow in SharePoint 2013. This allows for a more scalable workflow engine which can be hosted on a separate (workflow) farm. The other option is hosting the workflow engine on the same server where SharePoint 2013 is hosted. To deploy my environment(s) [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=269&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><a href="http://msdn.microsoft.com/en-us/library/windowsazure/jj193528(v=azure.10).aspx" target="_blank">Workflow Manager 1.0</a> (a.k.a. Azure Workflow) is the new workflow engine to support workflow in SharePoint 2013. This allows for a more scalable workflow engine which can be hosted on a separate (workflow) farm. The other option is hosting the workflow engine on the same server where SharePoint 2013 is hosted. </p>
<p>To deploy my environment(s) I use PowerShell. This is the same with configuring Workflow Manager 1.0. When running the Workflow Manager Configuration it generates the PowerShell command for you (see <a href="http://msdn.microsoft.com/en-us/library/windowsazure/jj193464(v=azure.10).aspx" target="_blank">sample script</a>).</p>
<h4>Add-WFHost exception when configuring Workflow Manager</h4>
<p>Although I use PowerShell scripts, it’s very likely to have the same issue and errors when running the <em>Workflow Manager Configuration</em>. When running my, slightly adjusted, script I got this error:</p>
<p>
<div id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:bec4cbc0-3e83-49fc-a1d8-adf7fe728b80" class="wlWriterEditableSmartContent" style="float:none;margin:0;display:inline;padding:0;">
<pre style="width:602px;height:313px;background-color:#DFEAF6;white-space:-moz-pre-wrap;word-wrap:break-word;overflow:auto;"><div><span style="color:#000000;">Add</span><span style="color:#000000;">-</span><span style="color:#000000;">WFHost : Could not successfully create management Service Bus entity 'WF_Management</span><span style="color:#000000;">/</span><span style="color:#000000;">WFTOPIC' with multiple retries within a timespan of </span><span style="color:#000000;">00</span><span style="color:#000000;">:</span><span style="color:#000000;">02</span><span style="color:#000000;">:</span><span style="color:#000000;">05.7093984</span><span style="color:#000000;">.. 
The exception of the last retry is: The token provider service was not avaliable when obtaining a token </span><span style="color:#0000FF;">for</span><span style="color:#000000;"> 'https:</span><span style="color:#000000;">//</span><span style="color:#000000;">vm</span><span style="color:#000000;">-</span><span style="color:#000000;">sp</span><span style="color:#000000;">-</span><span style="color:#000000;">01</span><span style="color:#000000;">.contoso.com:</span><span style="color:#000000;">9355</span><span style="color:#000000;">/</span><span style="color:#000000;">WorkflowDefaultNamespace</span><span style="color:#000000;">/</span><span style="color:#800080;">$STS</span><span style="color:#000000;">/</span><span style="color:#000000;">Windows</span><span style="color:#000000;">/</span><span style="color:#000000;">'..
At C:\SPInstall\McwModules\mcwspinstall.wfm1.</span><span style="color:#000000;">0</span><span style="color:#000000;">\Ensure</span><span style="color:#000000;">-</span><span style="color:#000000;">WorkflowManager.ps1:</span><span style="color:#000000;">117</span><span style="color:#000000;"> char:</span><span style="color:#000000;">19</span><span style="color:#000000;">
</span><span style="color:#000000;">+</span><span style="color:#000000;"> </span><span style="color:#800080;">$wfHost</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> Add</span><span style="color:#000000;">-</span><span style="color:#000000;">WFHost </span><span style="color:#000000;">-</span><span style="color:#000000;">WFFarmDBConnectionString </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">Data Source=$wfDBServer; ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  + CategoryInfo : OperationStopped: (:) [Add-WFHost], TimeoutException
  + FullyQualifiedErrorId : WFRuntimeSettingFailed,Microsoft.Workflow.Deployment.Commands.AddWFHost
</span></div></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
</p>
<h4>Solution to “token service provider not available” issue</h4>
<p>It seems the service bus is not available, which is a local server address. I tried disabling the loopback adaptor, but that didn’t work out. After digging around some more I realized my environment has a proxy server. The checkbox “Bypass proxy server for local addresses” was unchecked in the Internet Settings (<em>Control Panel » Internet Options » Connections tab » LAN settings</em>). </p>
<p>After ensuring the local addresses are bypassed, the PowerShell script worked as a charm!</p>
<br /> Tagged: <a href='http://bramdejager.wordpress.com/tag/deployment/'>Deployment</a>, <a href='http://bramdejager.wordpress.com/tag/powershell/'>PowerShell</a>, <a href='http://bramdejager.wordpress.com/tag/sharepoint-2013/'>SharePoint 2013</a>, <a href='http://bramdejager.wordpress.com/tag/workflow/'>Workflow</a>, <a href='http://bramdejager.wordpress.com/tag/workflow-manager/'>Workflow Manager</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/269/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=269&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2013/02/25/error-installing-workflow-manager-add-wfhost-raises-exception/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>
	</item>
		<item>
		<title>Resolve conflict Domain Control SID and member SID</title>
		<link>http://bramdejager.wordpress.com/2013/02/21/resolve-conflict-domain-control-sid-and-member-sid/</link>
		<comments>http://bramdejager.wordpress.com/2013/02/21/resolve-conflict-domain-control-sid-and-member-sid/#comments</comments>
		<pubDate>Thu, 21 Feb 2013 07:27:36 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Windows Server]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/?p=267</guid>
		<description><![CDATA[To play around with SharePoint 2013 I need a decent setup of a Domain Controller, SQL Server 2012 and SharePoint 2013 Server. To achieve this I use Hyper-V and want to reuse as much as possible, but it has it limits… Every machine, virtual of physical, has it’s own SID. This can be retrieved via [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=267&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>To play around with SharePoint 2013 I need a decent setup of a Domain Controller, SQL Server 2012 and SharePoint 2013 Server. To achieve this I use Hyper-V and want to reuse as much as possible, but it has it limits…</p>
<p><a href="http://bramdejager.files.wordpress.com/2013/02/sharepoint-2013-server-topology.png"><img title="SharePoint 2013 Server Topology" style="float:right;margin:0 0 0 10px;display:inline;" alt="SharePoint 2013 Server Topology" align="right" src="http://bramdejager.files.wordpress.com/2013/02/sharepoint-2013-server-topology_thumb.png?w=303&#038;h=278" width="303" height="278" /></a></p>
<p align="justify">Every machine, virtual of physical, has it’s own SID. This can be retrieved via <a href="http://live.sysinternals.com/psgetsid.exe" target="_blank">PsGetSid.exe</a> from <a href="http://technet.microsoft.com/en-us/sysinternals/bb897417.aspx" target="_blank">Sysinternals.com</a>. The thing is, it seems that the Domain Controller needs to have an unique SID within the domain. Although the domain members are allowed to have similar SIDs. </p>
<p align="justify">When I setup my topology I use a base image for every machine. Meaning these all have the same SID. After I installed my Domain Controller and second machine which I wanted to join to the domain I got this error “<em>The domain join cannot be completed because the SID of the domain you attempted to join was identical to the SID of this machine</em>”. </p>
<p><a href="http://bramdejager.files.wordpress.com/2013/02/joindomainmembertodomaincontrollersiderror.png"><img title="JoinDomainMemberToDomainControllerSIDError" style="border-top:0;border-right:0;background-image:none;border-bottom:0;float:none;padding-top:0;padding-left:0;margin-left:auto;border-left:0;display:block;padding-right:0;margin-right:auto;" border="0" alt="JoinDomainMemberToDomainControllerSIDError" src="http://bramdejager.files.wordpress.com/2013/02/joindomainmembertodomaincontrollersiderror_thumb.png?w=501&#038;h=279" width="501" height="279" /></a></p>
<p>The solution to this is renewing the SID of the member machine. I needed to run <em>sysprep.exe</em> to change the SID of my base image, which I use to create the SQL Server 2012 and SharePoint 2013 machines. After running sysprep everything worked as expected! </p>
<br /> Tagged: <a href='http://bramdejager.wordpress.com/tag/active-directory/'>Active Directory</a>, <a href='http://bramdejager.wordpress.com/tag/windows-server/'>Windows Server</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/267/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=267&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2013/02/21/resolve-conflict-domain-control-sid-and-member-sid/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2013/02/sharepoint-2013-server-topology_thumb.png" medium="image">
			<media:title type="html">SharePoint 2013 Server Topology</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2013/02/joindomainmembertodomaincontrollersiderror_thumb.png" medium="image">
			<media:title type="html">JoinDomainMemberToDomainControllerSIDError</media:title>
		</media:content>
	</item>
		<item>
		<title>When setting the MySiteHostUrl I get a UserProfileApplicationNotAvailableException</title>
		<link>http://bramdejager.wordpress.com/2013/02/14/when-setting-the-mysitehosturl-i-get-a-userprofileapplicationnotavailableexception/</link>
		<comments>http://bramdejager.wordpress.com/2013/02/14/when-setting-the-mysitehosturl-i-get-a-userprofileapplicationnotavailableexception/#comments</comments>
		<pubDate>Thu, 14 Feb 2013 19:57:49 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Service Application]]></category>
		<category><![CDATA[SharePoint 2013]]></category>
		<category><![CDATA[User Profiles]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/?p=259</guid>
		<description><![CDATA[When I’m trying to set the MySiteHostUrl via PowerShell it throws an error. Taking a closer look it seems after initializing the UserProfileManager class an UserProfileApplicationNotAvailableException is raised. The exception you receive is New-Object : Exception calling &#34;.ctor&#34; with &#34;1&#34; argument(s): &#34;UserProfileApplicationNotAvailableException_Logging :: UserProfileApplicationProxy.ApplicationProperties ProfilePropertyCache does not have 458839b6-4979-413a-a7a3-41d8564faea3&#34; The PowerShell script I’m using is [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=259&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>When I’m trying to set the <a href="http://msdn.microsoft.com/en-us/library/microsoft.office.server.userprofiles.userprofilemanager.mysitehosturl.aspx" target="_blank">MySiteHostUrl</a> via PowerShell it throws an error. Taking a closer look it seems after initializing the <a href="http://msdn.microsoft.com/en-us/library/microsoft.office.server.userprofiles.userprofilemanager.aspx" target="_blank">UserProfileManager</a> class an UserProfileApplicationNotAvailableException is raised. </p>
<p>The exception you receive is </p>
<blockquote><p>New-Object : Exception calling &quot;.ctor&quot; with &quot;1&quot; argument(s): &quot;UserProfileApplicationNotAvailableException_Logging :: UserProfileApplicationProxy.ApplicationProperties ProfilePropertyCache does not have 458839b6-4979-413a-a7a3-41d8564faea3&quot;</p>
</blockquote>
<p>The PowerShell script I’m using is retrieving the current context and initializing the UserProfileManager object. This should provide me access to the MySiteHostUrl.</p>
<div id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:08dd642f-01ff-4255-90e3-f06690e0f8bf" class="wlWriterEditableSmartContent" style="float:none;margin:0;display:inline;padding:0;">
<pre style="width:602px;height:172px;background-color:#DFEAF6;white-space:-moz-pre-wrap;word-wrap:break-word;overflow:auto;"><div><span style="color:#000000;">Add</span><span style="color:#000000;">-</span><span style="color:#000000;">PSSnapin Microsoft.SharePoint.PowerShell </span><span style="color:#000000;">-</span><span style="color:#000000;">ea </span><span style="color:#000000;">0</span><span style="color:#000000;">
</span><span style="color:#800080;">$site</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> Get</span><span style="color:#000000;">-</span><span style="color:#000000;">SPSite “http:</span><span style="color:#000000;">//</span><span style="color:#000000;">my.contoso.com” 
</span><span style="color:#800080;">$context</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> Get</span><span style="color:#000000;">-</span><span style="color:#000000;">SPServiceContext(</span><span style="color:#800080;">$site</span><span style="color:#000000;">) 
</span><span style="color:#800080;">$upm</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> New</span><span style="color:#000000;">-</span><span style="color:#000000;">Object </span><span style="color:#000000;">-</span><span style="color:#000000;">TypeName  Microsoft.Office.Server.UserProfiles.UserProfileManager </span><span style="color:#000000;">-</span><span style="color:#000000;">ArgumentList </span><span style="color:#800080;">$context</span><span style="color:#000000;"> 
</span><span style="color:#800080;">$upm</span><span style="color:#000000;">.MySiteHostURL </span><span style="color:#000000;">=</span><span style="color:#000000;"> “http:</span><span style="color:#000000;">//</span><span style="color:#000000;">my.contoso.com” </span></div></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<p>The solution to this is providing the account running the PowerShell script sharing permissions “Full Control” on the User Profile Service Application.</p>
<ul>
<li>Open <em>Central Administration</em></li>
<li>Click <em>Service Applications</em></li>
<li>Select “User Profile Service Application”</li>
<li>Click in ribbon the <em>Permissions </em>button</li>
<li>Add account which is running PS script, in this example “xxx-spinstall”</li>
<li>Select “Full Control” and click <em>OK</em></li>
<li>Run the PS-script again!</li>
</ul>
<p><a href="http://bramdejager.files.wordpress.com/2013/02/image.png"><img title="Permissions User Profile Application" style="border-top:0;border-right:0;background-image:none;border-bottom:0;padding-top:0;padding-left:0;border-left:0;display:inline;padding-right:0;" border="0" alt="Permissions User Profile Application" src="http://bramdejager.files.wordpress.com/2013/02/image_thumb.png?w=644&#038;h=382" width="644" height="382" /></a></p>
<br /> Tagged: <a href='http://bramdejager.wordpress.com/tag/powershell/'>PowerShell</a>, <a href='http://bramdejager.wordpress.com/tag/service-application/'>Service Application</a>, <a href='http://bramdejager.wordpress.com/tag/sharepoint-2013/'>SharePoint 2013</a>, <a href='http://bramdejager.wordpress.com/tag/user-profiles/'>User Profiles</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/259/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=259&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2013/02/14/when-setting-the-mysitehosturl-i-get-a-userprofileapplicationnotavailableexception/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2013/02/image_thumb.png" medium="image">
			<media:title type="html">Permissions User Profile Application</media:title>
		</media:content>
	</item>
		<item>
		<title>Language packs for SharePoint 2013</title>
		<link>http://bramdejager.wordpress.com/2013/01/12/language-packs-for-sharepoint-2013/</link>
		<comments>http://bramdejager.wordpress.com/2013/01/12/language-packs-for-sharepoint-2013/#comments</comments>
		<pubDate>Sat, 12 Jan 2013 13:37:58 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Deployment]]></category>
		<category><![CDATA[SharePoint 2013]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/?p=245</guid>
		<description><![CDATA[This week I was looking for the Dutch language pack for SharePoint 2013 Server. Most bits are available and I was surprised I couldn’t find the language packs for Server. The language pack for Foundation is easy to find on Microsoft Download Center: Language Packs for SharePoint Foundation 2013. It seems Microsoft has named the [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=245&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>This week I was looking for the Dutch language pack for SharePoint 2013 Server. Most bits are available and I was surprised I couldn’t find the language packs for Server. The language pack for Foundation is easy to find on Microsoft Download Center: <a href="http://www.microsoft.com/en-us/download/details.aspx?id=35492" target="_blank">Language Packs for SharePoint Foundation 2013</a>. </p>
<p>It seems Microsoft has named the Language Pack for SharePoint: <strong>Office Server 2013 Language Pack</strong>. Without any reference to SharePoint at all! </p>
<p>For now it’s only available via MSDN, TechNet and Volume License Center, try searching for “Office Server 2013 Language Pack”.</p>
<blockquote><p>TIP: Make sure you select the preferred language before clicking the Download-button!</p>
</blockquote>
<p>Downloads: </p>
<ul>
<li><a href="http://www.microsoft.com/en-us/download/details.aspx?id=35492" target="_blank">Language Packs for SharePoint Foundation 2013</a> on Microsoft Download Center</li>
<li><a href="http://msdn.microsoft.com/en-us/subscriptions/downloads/hh442898.aspx#FileId=50889" target="_blank">Office Server 2013 Language Pack</a> on MSDN Subscriber Downloads</li>
</ul>
<br /> Tagged: <a href='http://bramdejager.wordpress.com/tag/deployment/'>Deployment</a>, <a href='http://bramdejager.wordpress.com/tag/sharepoint-2013/'>SharePoint 2013</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/245/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/245/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=245&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2013/01/12/language-packs-for-sharepoint-2013/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>
	</item>
		<item>
		<title>DIWUG: Extending the My Site activity feed with external blog posts</title>
		<link>http://bramdejager.wordpress.com/2012/10/26/diwug-extending-the-my-site-activity-feed-with-external-blog-posts/</link>
		<comments>http://bramdejager.wordpress.com/2012/10/26/diwug-extending-the-my-site-activity-feed-with-external-blog-posts/#comments</comments>
		<pubDate>Fri, 26 Oct 2012 06:49:47 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Activity Feed]]></category>
		<category><![CDATA[Community]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[Social]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/?p=243</guid>
		<description><![CDATA[Yesterday enjoyed another DIWUG user group meeting and presented the Extending the My Site activity feed with external blog posts. You can find the presentation here and I’ll make sure to create a Codeplex project soon. For now you can download the sources here. DIWUG thanks again for arranging the event and Sogetti thanks for [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=243&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Yesterday enjoyed another DIWUG user group meeting and presented the <a href="http://www.diwug.nl/pages/event-history.aspx?event=14" target="_blank">Extending the My Site activity feed with external blog posts</a>. You can find the presentation here and I’ll make sure to create a Codeplex project soon. For now you can download the sources here.</p>
<p>DIWUG thanks again for arranging the event and Sogetti thanks for hosting. </p>
<p><a title="Extending the My Site activity feed with external blog posts - Bram de Jager - DIWUG Oct 2012" href="http://bramdejager.files.wordpress.com/2012/10/extending-the-my-site-activity-feed-with-external-blog-posts-bram-de-jager-diwug-oct-2012-public.pptx"><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="Download PowerPoint" border="0" alt="Download PowerPoint" src="http://bramdejager.files.wordpress.com/2012/10/download-powerpoint.png?w=100&#038;h=100" width="100" height="100" /></a><a title="Download sources MACAW.SP2010.ActivityFeed.zip" href="https://skydrive.live.com/embed?cid=DA68101BA15036FF&amp;resid=DA68101BA15036FF%211243&amp;authkey=AMhRU5Nwu18CHnw"><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="Download" border="0" alt="Download" src="http://bramdejager.files.wordpress.com/2012/10/download.png?w=100&#038;h=100" width="100" height="100" /></a></p>
<br /> Tagged: <a href='http://bramdejager.wordpress.com/tag/activity-feed/'>Activity Feed</a>, <a href='http://bramdejager.wordpress.com/tag/community/'>Community</a>, <a href='http://bramdejager.wordpress.com/tag/development/'>Development</a>, <a href='http://bramdejager.wordpress.com/tag/sharepoint-2010/'>SharePoint 2010</a>, <a href='http://bramdejager.wordpress.com/tag/social/'>Social</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/243/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/243/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=243&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2012/10/26/diwug-extending-the-my-site-activity-feed-with-external-blog-posts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2012/10/download-powerpoint.png" medium="image">
			<media:title type="html">Download PowerPoint</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2012/10/download.png" medium="image">
			<media:title type="html">Download</media:title>
		</media:content>
	</item>
		<item>
		<title>Presenting at DIWUG, 25th of October</title>
		<link>http://bramdejager.wordpress.com/2012/10/11/presenting-at-diwug/</link>
		<comments>http://bramdejager.wordpress.com/2012/10/11/presenting-at-diwug/#comments</comments>
		<pubDate>Thu, 11 Oct 2012 05:49:40 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Activity Feed]]></category>
		<category><![CDATA[Community]]></category>
		<category><![CDATA[Social]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/?p=234</guid>
		<description><![CDATA[In two weeks I’ll be presenting at the DIWUG. I’ll talk about “Extending the My Site activity feed with external blog posts”. Feel free to come and join the evening at Sogeti (Vianen). Subscribe via www.diwug.nl. Enter your email address at the top of the page and click the button Subscribe. Tagged: Activity Feed, Community, [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=234&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>In two weeks I’ll be presenting at the DIWUG. I’ll talk about “Extending the My Site activity feed with external blog posts”. Feel free to come and join the evening at Sogeti (Vianen). </p>
<p>Subscribe via <a href="http://www.diwug.nl">www.diwug.nl</a>. Enter your email address at the top of the page and click the button <em>Subscribe</em>.</p>
<br /> Tagged: <a href='http://bramdejager.wordpress.com/tag/activity-feed/'>Activity Feed</a>, <a href='http://bramdejager.wordpress.com/tag/community/'>Community</a>, <a href='http://bramdejager.wordpress.com/tag/social/'>Social</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/234/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=234&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2012/10/11/presenting-at-diwug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>
	</item>
		<item>
		<title>Can&#8217;t install Office Web Apps on SharePoint trial license</title>
		<link>http://bramdejager.wordpress.com/2012/07/10/cant-install-office-web-apps-on-sharepoint-trial-license/</link>
		<comments>http://bramdejager.wordpress.com/2012/07/10/cant-install-office-web-apps-on-sharepoint-trial-license/#comments</comments>
		<pubDate>Tue, 10 Jul 2012 05:20:43 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Deployment]]></category>
		<category><![CDATA[Office Web Apps]]></category>
		<category><![CDATA[SharePoint 2010]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/?p=231</guid>
		<description><![CDATA[Installing SharePoint Server 2010 with a trial license is something that doesn’t happen often. Since we did install SharePoint trial edition we ran into an issue which I wasn’t aware of: Trial editions and licensed editions of SharePoint, Project Server, and Office Web Apps products may not be installed on the same server. The screenshot [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=231&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Installing SharePoint Server 2010 with a trial license is something that doesn’t happen often. Since we did install SharePoint trial edition we ran into an issue which I wasn’t aware of: </p>
<blockquote><p>Trial editions and licensed editions of SharePoint, Project Server, and Office Web Apps products may not be installed on the same server.</p>
</blockquote>
<p>The screenshot below shows the error message you get, directly after running the setup.exe. </p>
<p><a href="http://bramdejager.files.wordpress.com/2012/07/errorinstallowaontrial.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="Error installing Office Web Apps on SharePoint trial edition" border="0" alt="Error installing Office Web Apps on SharePoint trial edition" src="http://bramdejager.files.wordpress.com/2012/07/errorinstallowaontrial_thumb.png?w=644&#038;h=478" width="644" height="478" /></a></p>
<p>For those who are wondering how to work around this, you can’t. The only solution is getting a license key and upgrade the Trial license to a Standard or Enterprise license. Afterwards you can install Office Web Apps. </p>
<blockquote><p><strong>Tip: </strong>Being aware of this I strongly recommend using the Standard or Enterprise license during installation instead of afterwards. </p>
</blockquote>
<br /> Tagged: <a href='http://bramdejager.wordpress.com/tag/deployment/'>Deployment</a>, <a href='http://bramdejager.wordpress.com/tag/office-web-apps/'>Office Web Apps</a>, <a href='http://bramdejager.wordpress.com/tag/sharepoint-2010/'>SharePoint 2010</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/231/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=231&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2012/07/10/cant-install-office-web-apps-on-sharepoint-trial-license/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2012/07/errorinstallowaontrial_thumb.png" medium="image">
			<media:title type="html">Error installing Office Web Apps on SharePoint trial edition</media:title>
		</media:content>
	</item>
		<item>
		<title>Extending the My Site activity feed with external blog posts (SPSNL)</title>
		<link>http://bramdejager.wordpress.com/2012/05/10/extending-the-my-site-activity-feed-with-external-blog-posts-spsnl/</link>
		<comments>http://bramdejager.wordpress.com/2012/05/10/extending-the-my-site-activity-feed-with-external-blog-posts-spsnl/#comments</comments>
		<pubDate>Thu, 10 May 2012 06:05:41 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Activity Feed]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[Social]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/?p=223</guid>
		<description><![CDATA[A bit more than a month ago I presented at SharePoint Saturday Holland (SPSNL). Unfortunately I didn’t got to writing this post and providing my slide deck and demo. SPSNL was a great of SharePoint and I enjoyed it. Quite a bunch of national and international speakers gathered in Vianen. Thank you DIWUG for organizing [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=223&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>A bit more than a month ago I presented at SharePoint Saturday Holland (SPSNL). Unfortunately I didn’t got to writing this post and providing my slide deck and demo. SPSNL was a great of SharePoint and I enjoyed it. Quite a bunch of national and international speakers gathered in <a href="http://www.hotelvianen.nl" target="_blank">Vianen</a>. Thank you DIWUG for organizing this day of SharePoint madness. You’ll find evidence <a href="https://www.facebook.com/SharePointSaturdayNL" target="_blank">here</a>.</p>
<p>I did a session on extending the activity feed. Preparing the session was quite a challenge since I had to put in a large amount of hours due to <a href="http://msdn.microsoft.com/en-us/library/system.notimplementedexception.aspx" target="_blank">NotImplementedException</a> exceptions and other hassle. I hope it made the session worthwhile.</p>
<p>Below you can find my slide deck and demo code.</p>
<p><a href="http://bramdejager.files.wordpress.com/2012/05/extending-the-my-site-activity-feed-with-external-blog-posts-bram-de-jager-sharepoint-saturday-2012.pptx"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="Download PowerPoint" border="0" alt="Download PowerPoint" src="http://bramdejager.files.wordpress.com/2012/05/download-powerpoint.png?w=100&#038;h=100" width="100" height="100" /></a>&#160;<a href="https://skydrive.live.com/embed?cid=DA68101BA15036FF&amp;resid=DA68101BA15036FF%211243&amp;authkey=AMhRU5Nwu18CHnw"><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="Download Demo" border="0" alt="Download Demo" src="http://bramdejager.files.wordpress.com/2012/05/download.png?w=100&#038;h=100" width="100" height="100" /></a></p>
<br /> Tagged: <a href='http://bramdejager.wordpress.com/tag/activity-feed/'>Activity Feed</a>, <a href='http://bramdejager.wordpress.com/tag/sharepoint-2010/'>SharePoint 2010</a>, <a href='http://bramdejager.wordpress.com/tag/social/'>Social</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/223/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/223/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=223&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2012/05/10/extending-the-my-site-activity-feed-with-external-blog-posts-spsnl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2012/05/download-powerpoint.png" medium="image">
			<media:title type="html">Download PowerPoint</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2012/05/download.png" medium="image">
			<media:title type="html">Download Demo</media:title>
		</media:content>
	</item>
		<item>
		<title>In search of PowerShell environment variables</title>
		<link>http://bramdejager.wordpress.com/2012/05/01/in-search-of-powershell-environment-variables/</link>
		<comments>http://bramdejager.wordpress.com/2012/05/01/in-search-of-powershell-environment-variables/#comments</comments>
		<pubDate>Tue, 01 May 2012 06:44:27 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/?p=219</guid>
		<description><![CDATA[When working with PowerShell I’m searching for the same variables over and over again. Every time when I found them again I think the same “Oh yeah, I knew that!”. To minimize my search next time I thought about writing it down. First question, how do I use these variables? This is pretty straightforward. $Env:username [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=219&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>When working with PowerShell I’m searching for the same variables over and over again. Every time when I found them again I think the same “Oh yeah, I knew that!”. To minimize my search next time I thought about writing it down. </p>
<p>First question, how do I use these variables? This is pretty straightforward. </p>
<div style="margin:0;display:inline;float:none;padding:0;" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:70aff721-a95d-422b-afe3-9e11f0f27c38" class="wlWriterEditableSmartContent">
<pre style="width:594px;height:33px;background-color:Silver;overflow:auto;"><div><span style="color:#800080;">$Env:username</span><span style="color:#000000;">
</span></div></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<p>Second question, which environment variables can I use? Use the following cmdlet:</p>
<p><div style="margin:0;display:inline;float:none;padding:0;" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:da70b99d-d8d1-4742-bdba-7f0d69639544" class="wlWriterEditableSmartContent">
<pre style="width:594px;height:849px;background-color:Silver;overflow:auto;"><div><span style="color:#000000;">Get</span><span style="color:#000000;">-</span><span style="color:#000000;">Item Env: </span><span style="color:#000000;">|</span><span style="color:#000000;"> sort Name

Name                           Value                                                                                      
</span><span style="color:#000000;">----</span><span style="color:#000000;">                           </span><span style="color:#000000;">-----</span><span style="color:#000000;">                                                                                      
COMPUTERNAME                   &lt;computername</span><span style="color:#000000;">&gt;</span><span style="color:#000000;">                                                                              
HOMEPATH                       \Users\sa</span><span style="color:#000000;">-</span><span style="color:#000000;">sp2010</span><span style="color:#000000;">-</span><span style="color:#000000;">Install                                                                   
LOCALAPPDATA                   C:\Users\sa</span><span style="color:#000000;">-</span><span style="color:#000000;">sp2010</span><span style="color:#000000;">-</span><span style="color:#000000;">Install\AppData\Local                                                   
PSModulePath                   D:\SPInstall\SPModule;D:\SPInstall\SPModule;C:\Users\sa</span><span style="color:#000000;">-</span><span style="color:#000000;">sp2010</span><span style="color:#000000;">-</span><span style="color:#000000;">Install\Documents\Windows...
PROCESSOR_ARCHITECTURE         AMD64                                                                                      
CommonProgramW6432             C:\Program Files\Common Files                                                              
CommonProgramFiles(x86)        C:\Program Files (x86)\Common Files                                                        
ProgramFiles(x86)              C:\Program Files (x86)                                                                     
PROCESSOR_LEVEL                </span><span style="color:#000000;">6</span><span style="color:#000000;">                                                                                          
windows_tracing_flags          </span><span style="color:#000000;">3</span><span style="color:#000000;">                                                                                          
USERNAME                       sa</span><span style="color:#000000;">-</span><span style="color:#000000;">sp2010</span><span style="color:#000000;">-</span><span style="color:#000000;">Install                                                                          
HOMEDRIVE                      C:                                                                                         
USERPROFILE                    C:\Users\sa</span><span style="color:#000000;">-</span><span style="color:#000000;">sp2010</span><span style="color:#000000;">-</span><span style="color:#000000;">Install                                                                 
SystemRoot                     C:\Windows                                                                                 
TEMP                           C:\Users\SA</span><span style="color:#000000;">-</span><span style="color:#000000;">SP2~</span><span style="color:#000000;">1</span><span style="color:#000000;">\AppData\Local\Temp                                                       
PUBLIC                         C:\Users\Public                                                                            
ALLUSERSPROFILE                C:\ProgramData                                                                             
APPDATA                        C:\Users\sa</span><span style="color:#000000;">-</span><span style="color:#000000;">sp2010</span><span style="color:#000000;">-</span><span style="color:#000000;">Install\AppData\Roaming                                                 
ProgramData                    C:\ProgramData                                                                             
PATHEXT                        .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC                                      
OS                             Windows_NT                                                                                 
CommonProgramFiles             C:\Program Files\Common Files                                                              
PROCESSOR_IDENTIFIER           Intel64 Family </span><span style="color:#000000;">6</span><span style="color:#000000;"> Model </span><span style="color:#000000;">23</span><span style="color:#000000;"> Stepping </span><span style="color:#000000;">10</span><span style="color:#000000;">, GenuineIntel                                        
ComSpec                        C:\Windows\system32\cmd.exe                                                                
SystemDrive                    C:                                                                                         
PROCESSOR_REVISION             170a                                                                                       
ProgramFiles                   C:\Program Files                                                                           
NUMBER_OF_PROCESSORS           </span><span style="color:#000000;">2</span><span style="color:#000000;">                                                                                          
windows_tracing_logfile        C:\BVTBin\Tests\installpackage\csilogfile.log                                              
TMP                            C:\Users\SA</span><span style="color:#000000;">-</span><span style="color:#000000;">SP2~</span><span style="color:#000000;">1</span><span style="color:#000000;">\AppData\Local\Temp                                                       
ProgramW6432                   C:\Program Files                                                                           
Path                           C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPower...
USERDOMAIN                     &lt;DOMAIN</span><span style="color:#000000;">&gt;</span><span style="color:#000000;">                                                                                      
VS100COMNTOOLS                 C:\Program Files (x86)\Microsoft Visual Studio </span><span style="color:#000000;">10.0</span><span style="color:#000000;">\Common7\Tools\                         
windir                         C:\Windows             </span></div></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div></p>
<br /> Tagged: <a href='http://bramdejager.wordpress.com/tag/powershell/'>PowerShell</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/219/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=219&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2012/05/01/in-search-of-powershell-environment-variables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>
	</item>
		<item>
		<title>Hide &#8220;Fabulous 40&#8221; templates</title>
		<link>http://bramdejager.wordpress.com/2012/04/13/hide-fabulous-40-templates/</link>
		<comments>http://bramdejager.wordpress.com/2012/04/13/hide-fabulous-40-templates/#comments</comments>
		<pubDate>Fri, 13 Apr 2012 16:05:41 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[Upgrade]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/?p=216</guid>
		<description><![CDATA[The Fabulous 40 (a.k.a. Fab40 or Application Templates) are a set of 40 application templates for Windows SharePoint Services 3.0. These were installed on a lot of SharePoint 2007 environments. When upgrading to SharePoint 2010 these templates become a challenge. The sites based on the Site Admin Templates (.STP) will be upgraded. After the upgrade [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=216&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>The Fabulous 40 (a.k.a. <em>Fab40</em> or <em>Application Templates</em>) are a set of <a href="http://www.microsoft.com/download/en/details.aspx?id=12088" target="_blank">40 application templates for Windows SharePoint Services 3.0</a>. These were installed on a lot of SharePoint 2007 environments. </p>
<p>When upgrading to SharePoint 2010 these templates become a challenge. The sites based on the Site Admin Templates (.STP) will be upgraded. After the upgrade these will likely work, but you can’t create any new sites based the STP templates, because SharePoint 2010 does not support STP files for site templates. </p>
<p>Sites which are based on the Server Admin Templates (.WSP) are more challenging because some Fab40 templates cannot be used for creating new sites in SharePoint 2010. To perform an upgrade you need to install the templates which are currently in use in the SharePoint 2007 environment. </p>
<p>To keep the new SharePoint 2010 environment as clean as possible you want to disable the creation of new sites based on the Fab40. You could choose to update the XML files on the file system (webtemp files in 14-hive), but the downside of this is you need to update all servers in the farm and when a new server is added this needs to be adjusted manually. </p>
<p>So I started looking into the order SharePoint reads the webtemp files when the application pool process (W3WP.exe) spins up on initial load. I used <a href="http://technet.microsoft.com/en-us/sysinternals/bb896645" target="_blank">Process Monitor</a> to research the file access in the “C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\1033\XML\” folder. Based on the order shown in the screenshot below, it seems the “webtemp???.xml” files are loaded on alphabetical order.&#160; </p>
<p><a href="http://bramdejager.files.wordpress.com/2012/04/image.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="Process Monitor - Capturing the W3WP.exe process" border="0" alt="Process Monitor - Capturing the W3WP.exe process" src="http://bramdejager.files.wordpress.com/2012/04/image_thumb.png?w=644&#038;h=350" width="644" height="350" /></a></p>
<p>Meaning if I would place a webtemp XML file which filename starts with “webtempaaa” it would load first and equally the filename “webtempzzz” would load at the end. Since underscores “_” are often used I wanted to check that particular filename as well. It seems a filename “webtemp_” is loaded at the end, instead of at the start (what I assumed). </p>
<p>The next question is: “Does SharePoint keep the settings which it reads in the first files or do these settings get overridden by settings in files loaded afterwards?”. The answer to this is it only stores the settings which it reads first. Meaning if I want to hide the templates I need to add a webtemp file with the name “webtempaaaHideFab40.xml”. Within the file I need to hide all the Fabulous 40 Server Admin Templates. </p>
<p>The XML file below shows the contents of the “webtempaaaHideFab40.xml” file:</p>
<div style="margin:0;display:inline;float:none;padding:0;" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:e95f5ecd-2656-4af7-8cda-3c72fa854040" class="wlWriterEditableSmartContent">
<pre style="width:594px;height:519px;background-color:White;overflow:auto;"><div><span style="color:#0000FF;">&lt;?</span><span style="color:#FF00FF;">xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; </span><span style="color:#0000FF;">?&gt;</span><span style="color:#000000;">
</span><span style="color:#008000;">&lt;!--</span><span style="color:#008000;"> Hides all Fabulous 40 templates, filename needs to begin with &quot;webtempaaa...&quot; to be loaded as the first one </span><span style="color:#008000;">--&gt;</span><span style="color:#000000;">
</span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Templates </span><span style="color:#FF0000;">xmlns:ows</span><span style="color:#0000FF;">=&quot;Microsoft SharePoint&quot;</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Template </span><span style="color:#FF0000;">Name</span><span style="color:#0000FF;">=&quot;absence&quot;</span><span style="color:#FF0000;"> ID</span><span style="color:#0000FF;">=&quot;75811&quot;</span><span style="color:#FF0000;"> SetupPath</span><span style="color:#0000FF;">=&quot;SiteTemplates\absence&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
    </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Configuration </span><span style="color:#FF0000;">ID</span><span style="color:#0000FF;">=&quot;0&quot;</span><span style="color:#FF0000;"> Title</span><span style="color:#0000FF;">=&quot;Absence and Vacation Schedule &quot;</span><span style="color:#FF0000;"> Hidden</span><span style="color:#0000FF;">=&quot;True&quot;</span><span style="color:#FF0000;"> DisplayCategory</span><span style="color:#0000FF;">=&quot;Application Templates&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">/&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;/</span><span style="color:#800000;">Template</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Template </span><span style="color:#FF0000;">Name</span><span style="color:#0000FF;">=&quot;projmulti&quot;</span><span style="color:#FF0000;"> ID</span><span style="color:#0000FF;">=&quot;75819&quot;</span><span style="color:#FF0000;"> SetupPath</span><span style="color:#0000FF;">=&quot;SiteTemplates\projmulti&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
    </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Configuration </span><span style="color:#FF0000;">ID</span><span style="color:#0000FF;">=&quot;0&quot;</span><span style="color:#FF0000;"> Title</span><span style="color:#0000FF;">=&quot;Budgeting and Tracking Multiple Projects&quot;</span><span style="color:#FF0000;"> Hidden</span><span style="color:#0000FF;">=&quot;True&quot;</span><span style="color:#FF0000;"> DisplayCategory</span><span style="color:#0000FF;">=&quot;Application Templates&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">/&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;/</span><span style="color:#800000;">Template</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Template </span><span style="color:#FF0000;">Name</span><span style="color:#0000FF;">=&quot;BT&quot;</span><span style="color:#FF0000;"> ID</span><span style="color:#0000FF;">=&quot;75801&quot;</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
    </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Configuration </span><span style="color:#FF0000;">ID</span><span style="color:#0000FF;">=&quot;0&quot;</span><span style="color:#FF0000;"> Title</span><span style="color:#0000FF;">=&quot;Bug Database&quot;</span><span style="color:#FF0000;"> Hidden</span><span style="color:#0000FF;">=&quot;True&quot;</span><span style="color:#FF0000;"> DisplayCategory</span><span style="color:#0000FF;">=&quot;Application Templates&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">/&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;/</span><span style="color:#800000;">Template</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Template </span><span style="color:#FF0000;">Name</span><span style="color:#0000FF;">=&quot;callcenter&quot;</span><span style="color:#FF0000;"> ID</span><span style="color:#0000FF;">=&quot;75812&quot;</span><span style="color:#FF0000;"> SetupPath</span><span style="color:#0000FF;">=&quot;SiteTemplates\callcenter&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
    </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Configuration </span><span style="color:#FF0000;">ID</span><span style="color:#0000FF;">=&quot;0&quot;</span><span style="color:#FF0000;"> Title</span><span style="color:#0000FF;">=&quot;Call Center&quot;</span><span style="color:#FF0000;"> Hidden</span><span style="color:#0000FF;">=&quot;True&quot;</span><span style="color:#FF0000;"> DisplayCategory</span><span style="color:#0000FF;">=&quot;Application Templates&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">/&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;/</span><span style="color:#800000;">Template</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Template </span><span style="color:#FF0000;">Name</span><span style="color:#0000FF;">=&quot;projchange&quot;</span><span style="color:#FF0000;"> ID</span><span style="color:#0000FF;">=&quot;75818&quot;</span><span style="color:#FF0000;"> SetupPath</span><span style="color:#0000FF;">=&quot;SiteTemplates\projchange&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
    </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Configuration </span><span style="color:#FF0000;">ID</span><span style="color:#0000FF;">=&quot;0&quot;</span><span style="color:#FF0000;"> Title</span><span style="color:#0000FF;">=&quot;Change Request Management&quot;</span><span style="color:#FF0000;"> Hidden</span><span style="color:#0000FF;">=&quot;True&quot;</span><span style="color:#FF0000;"> DisplayCategory</span><span style="color:#0000FF;">=&quot;Application Templates&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">/&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;/</span><span style="color:#800000;">Template</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Template </span><span style="color:#FF0000;">Name</span><span style="color:#0000FF;">=&quot;comproc&quot;</span><span style="color:#FF0000;"> ID</span><span style="color:#0000FF;">=&quot;75813&quot;</span><span style="color:#FF0000;"> SetupPath</span><span style="color:#0000FF;">=&quot;SiteTemplates\compproc&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
    </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Configuration </span><span style="color:#FF0000;">ID</span><span style="color:#0000FF;">=&quot;0&quot;</span><span style="color:#FF0000;"> Title</span><span style="color:#0000FF;">=&quot;Compliance Process Support Site&quot;</span><span style="color:#FF0000;"> Hidden</span><span style="color:#0000FF;">=&quot;True&quot;</span><span style="color:#FF0000;"> DisplayCategory</span><span style="color:#0000FF;">=&quot;Application Templates&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">/&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;/</span><span style="color:#800000;">Template</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Template </span><span style="color:#FF0000;">Name</span><span style="color:#0000FF;">=&quot;CM&quot;</span><span style="color:#FF0000;"> ID</span><span style="color:#0000FF;">=&quot;75802&quot;</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
    </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Configuration </span><span style="color:#FF0000;">ID</span><span style="color:#0000FF;">=&quot;0&quot;</span><span style="color:#FF0000;"> Title</span><span style="color:#0000FF;">=&quot;Contacts Management&quot;</span><span style="color:#FF0000;"> Hidden</span><span style="color:#0000FF;">=&quot;True&quot;</span><span style="color:#FF0000;"> DisplayCategory</span><span style="color:#0000FF;">=&quot;Application Templates&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">/&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;/</span><span style="color:#800000;">Template</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Template </span><span style="color:#FF0000;">Name</span><span style="color:#0000FF;">=&quot;DR&quot;</span><span style="color:#FF0000;"> ID</span><span style="color:#0000FF;">=&quot;75803&quot;</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
    </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Configuration </span><span style="color:#FF0000;">ID</span><span style="color:#0000FF;">=&quot;0&quot;</span><span style="color:#FF0000;"> Title</span><span style="color:#0000FF;">=&quot;Document Library and Review&quot;</span><span style="color:#FF0000;"> Hidden</span><span style="color:#0000FF;">=&quot;True&quot;</span><span style="color:#FF0000;"> DisplayCategory</span><span style="color:#0000FF;">=&quot;Application Templates&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">/&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;/</span><span style="color:#800000;">Template</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Template </span><span style="color:#FF0000;">Name</span><span style="color:#0000FF;">=&quot;eventplan&quot;</span><span style="color:#FF0000;"> ID</span><span style="color:#0000FF;">=&quot;75814&quot;</span><span style="color:#FF0000;"> SetupPath</span><span style="color:#0000FF;">=&quot;SiteTemplates\eventplan&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
    </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Configuration </span><span style="color:#FF0000;">ID</span><span style="color:#0000FF;">=&quot;0&quot;</span><span style="color:#FF0000;"> Title</span><span style="color:#0000FF;">=&quot;Event Planning&quot;</span><span style="color:#FF0000;"> Hidden</span><span style="color:#0000FF;">=&quot;True&quot;</span><span style="color:#FF0000;"> DisplayCategory</span><span style="color:#0000FF;">=&quot;Application Templates&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">/&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;/</span><span style="color:#800000;">Template</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Template </span><span style="color:#FF0000;">Name</span><span style="color:#0000FF;">=&quot;exreports&quot;</span><span style="color:#FF0000;"> ID</span><span style="color:#0000FF;">=&quot;75815&quot;</span><span style="color:#FF0000;"> SetupPath</span><span style="color:#0000FF;">=&quot;SiteTemplates\exreport&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
    </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Configuration </span><span style="color:#FF0000;">ID</span><span style="color:#0000FF;">=&quot;0&quot;</span><span style="color:#FF0000;"> Title</span><span style="color:#0000FF;">=&quot;Expense Reimbursement and Approval Site&quot;</span><span style="color:#FF0000;"> Hidden</span><span style="color:#0000FF;">=&quot;True&quot;</span><span style="color:#FF0000;"> DisplayCategory</span><span style="color:#0000FF;">=&quot;Application Templates&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">/&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;/</span><span style="color:#800000;">Template</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Template </span><span style="color:#FF0000;">Name</span><span style="color:#0000FF;">=&quot;helpdesk&quot;</span><span style="color:#FF0000;"> ID</span><span style="color:#0000FF;">=&quot;75816&quot;</span><span style="color:#FF0000;"> SetupPath</span><span style="color:#0000FF;">=&quot;SiteTemplates\helpdesk&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
    </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Configuration </span><span style="color:#FF0000;">ID</span><span style="color:#0000FF;">=&quot;0&quot;</span><span style="color:#FF0000;"> Title</span><span style="color:#0000FF;">=&quot;Help Desk&quot;</span><span style="color:#FF0000;"> Hidden</span><span style="color:#0000FF;">=&quot;True&quot;</span><span style="color:#FF0000;"> DisplayCategory</span><span style="color:#0000FF;">=&quot;Application Templates&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">/&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;/</span><span style="color:#800000;">Template</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Template </span><span style="color:#FF0000;">Name</span><span style="color:#0000FF;">=&quot;IT&quot;</span><span style="color:#FF0000;"> ID</span><span style="color:#0000FF;">=&quot;75804&quot;</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
    </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Configuration </span><span style="color:#FF0000;">ID</span><span style="color:#0000FF;">=&quot;0&quot;</span><span style="color:#FF0000;"> Title</span><span style="color:#0000FF;">=&quot;Inventory Tracking&quot;</span><span style="color:#FF0000;"> Hidden</span><span style="color:#0000FF;">=&quot;True&quot;</span><span style="color:#FF0000;"> DisplayCategory</span><span style="color:#0000FF;">=&quot;Application Templates&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">/&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;/</span><span style="color:#800000;">Template</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Template </span><span style="color:#FF0000;">Name</span><span style="color:#0000FF;">=&quot;itteam&quot;</span><span style="color:#FF0000;"> ID</span><span style="color:#0000FF;">=&quot;75817&quot;</span><span style="color:#FF0000;"> SetupPath</span><span style="color:#0000FF;">=&quot;SiteTemplates\itteam&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
    </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Configuration </span><span style="color:#FF0000;">ID</span><span style="color:#0000FF;">=&quot;0&quot;</span><span style="color:#FF0000;"> Title</span><span style="color:#0000FF;">=&quot;IT Team Workspace&quot;</span><span style="color:#FF0000;"> Hidden</span><span style="color:#0000FF;">=&quot;True&quot;</span><span style="color:#FF0000;"> DisplayCategory</span><span style="color:#0000FF;">=&quot;Application Templates&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">/&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;/</span><span style="color:#800000;">Template</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Template </span><span style="color:#FF0000;">Name</span><span style="color:#0000FF;">=&quot;JRIM&quot;</span><span style="color:#FF0000;"> ID</span><span style="color:#0000FF;">=&quot;75805&quot;</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
    </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Configuration </span><span style="color:#FF0000;">ID</span><span style="color:#0000FF;">=&quot;0&quot;</span><span style="color:#FF0000;"> Title</span><span style="color:#0000FF;">=&quot;Job Requisition and Interview Management&quot;</span><span style="color:#FF0000;"> Hidden</span><span style="color:#0000FF;">=&quot;True&quot;</span><span style="color:#FF0000;"> DisplayCategory</span><span style="color:#0000FF;">=&quot;Application Templates&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">/&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;/</span><span style="color:#800000;">Template</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Template </span><span style="color:#FF0000;">Name</span><span style="color:#0000FF;">=&quot;KB&quot;</span><span style="color:#FF0000;"> ID</span><span style="color:#0000FF;">=&quot;75806&quot;</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
    </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Configuration </span><span style="color:#FF0000;">ID</span><span style="color:#0000FF;">=&quot;0&quot;</span><span style="color:#FF0000;"> Title</span><span style="color:#0000FF;">=&quot;Knowledge Base&quot;</span><span style="color:#FF0000;"> Hidden</span><span style="color:#0000FF;">=&quot;True&quot;</span><span style="color:#FF0000;"> DisplayCategory</span><span style="color:#0000FF;">=&quot;Application Templates&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">/&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;/</span><span style="color:#800000;">Template</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Template </span><span style="color:#FF0000;">Name</span><span style="color:#0000FF;">=&quot;LL&quot;</span><span style="color:#FF0000;"> ID</span><span style="color:#0000FF;">=&quot;75807&quot;</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
    </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Configuration </span><span style="color:#FF0000;">ID</span><span style="color:#0000FF;">=&quot;0&quot;</span><span style="color:#FF0000;"> Title</span><span style="color:#0000FF;">=&quot;Lending Library&quot;</span><span style="color:#FF0000;"> Hidden</span><span style="color:#0000FF;">=&quot;True&quot;</span><span style="color:#FF0000;"> DisplayCategory</span><span style="color:#0000FF;">=&quot;Application Templates&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">/&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;/</span><span style="color:#800000;">Template</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Template </span><span style="color:#FF0000;">Name</span><span style="color:#0000FF;">=&quot;PATM&quot;</span><span style="color:#FF0000;"> ID</span><span style="color:#0000FF;">=&quot;75808&quot;</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
    </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Configuration </span><span style="color:#FF0000;">ID</span><span style="color:#0000FF;">=&quot;0&quot;</span><span style="color:#FF0000;"> Title</span><span style="color:#0000FF;">=&quot;Physical Asset Tracking and Management&quot;</span><span style="color:#FF0000;"> Hidden</span><span style="color:#0000FF;">=&quot;True&quot;</span><span style="color:#FF0000;"> DisplayCategory</span><span style="color:#0000FF;">=&quot;Application Templates&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">/&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;/</span><span style="color:#800000;">Template</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Template </span><span style="color:#FF0000;">Name</span><span style="color:#0000FF;">=&quot;projsing&quot;</span><span style="color:#FF0000;"> ID</span><span style="color:#0000FF;">=&quot;75820&quot;</span><span style="color:#FF0000;"> SetupPath</span><span style="color:#0000FF;">=&quot;SiteTemplates\projsing&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
    </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Configuration </span><span style="color:#FF0000;">ID</span><span style="color:#0000FF;">=&quot;0&quot;</span><span style="color:#FF0000;"> Title</span><span style="color:#0000FF;">=&quot;Project Tracking Workspace&quot;</span><span style="color:#FF0000;"> Hidden</span><span style="color:#0000FF;">=&quot;True&quot;</span><span style="color:#FF0000;"> DisplayCategory</span><span style="color:#0000FF;">=&quot;Application Templates&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">/&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;/</span><span style="color:#800000;">Template</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Template </span><span style="color:#FF0000;">Name</span><span style="color:#0000FF;">=&quot;RER&quot;</span><span style="color:#FF0000;"> ID</span><span style="color:#0000FF;">=&quot;75809&quot;</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
    </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Configuration </span><span style="color:#FF0000;">ID</span><span style="color:#0000FF;">=&quot;0&quot;</span><span style="color:#FF0000;"> Title</span><span style="color:#0000FF;">=&quot;Room and Equipment Reservations&quot;</span><span style="color:#FF0000;"> Hidden</span><span style="color:#0000FF;">=&quot;True&quot;</span><span style="color:#FF0000;"> DisplayCategory</span><span style="color:#0000FF;">=&quot;Application Templates&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">/&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;/</span><span style="color:#800000;">Template</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Template </span><span style="color:#FF0000;">Name</span><span style="color:#0000FF;">=&quot;ST&quot;</span><span style="color:#FF0000;"> ID</span><span style="color:#0000FF;">=&quot;75810&quot;</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
    </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Configuration </span><span style="color:#FF0000;">ID</span><span style="color:#0000FF;">=&quot;0&quot;</span><span style="color:#FF0000;"> Title</span><span style="color:#0000FF;">=&quot;Sales Lead Pipeline&quot;</span><span style="color:#FF0000;"> Hidden</span><span style="color:#0000FF;">=&quot;True&quot;</span><span style="color:#FF0000;"> DisplayCategory</span><span style="color:#0000FF;">=&quot;Application Templates&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">/&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;/</span><span style="color:#800000;">Template</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
</span><span style="color:#0000FF;">&lt;/</span><span style="color:#800000;">Templates</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
</span></div></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<br /> Tagged: <a href='http://bramdejager.wordpress.com/tag/development/'>Development</a>, <a href='http://bramdejager.wordpress.com/tag/sharepoint-2010/'>SharePoint 2010</a>, <a href='http://bramdejager.wordpress.com/tag/upgrade/'>Upgrade</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/216/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=216&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2012/04/13/hide-fabulous-40-templates/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2012/04/image_thumb.png" medium="image">
			<media:title type="html">Process Monitor - Capturing the W3WP.exe process</media:title>
		</media:content>
	</item>
		<item>
		<title>Wait for WSP solution to deploy</title>
		<link>http://bramdejager.wordpress.com/2012/04/13/wait-for-wsp-solution-to-deploy/</link>
		<comments>http://bramdejager.wordpress.com/2012/04/13/wait-for-wsp-solution-to-deploy/#comments</comments>
		<pubDate>Fri, 13 Apr 2012 06:20:58 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Deployment]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SharePoint 2010]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/?p=211</guid>
		<description><![CDATA[Trying to install a WSP solution via scripting and wanting to wait for the solution to be installed? This is a common scenario I’m facing quite a lot. Every time trying to find the script again, made me decide to blog about it. This PowerShell script checks if the solution exists in the Solution Store [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=211&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Trying to install a WSP solution via scripting and wanting to wait for the solution to be installed? This is a common scenario I’m facing quite a lot. Every time trying to find the script again, made me decide to blog about it. </p>
<p>This PowerShell script checks if the solution exists in the Solution Store and waits for it to finish its deployment job. </p>
<div style="margin:0;display:inline;float:none;padding:0;" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:2119306a-a863-45b7-b6fb-d8277e6ba781" class="wlWriterEditableSmartContent">
<pre style="width:610px;height:676px;background-color:White;white-space:-moz-pre-wrap;word-wrap:break-word;overflow:hidden;"><div><span style="color:#0000FF;">function</span><span style="color:#000000;"> WaitForSolutionToFinish([string]</span><span style="color:#800080;">$SolutionFileName</span><span style="color:#000000;">)
{
    </span><span style="color:#800080;">$solution</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> Get</span><span style="color:#000000;">-</span><span style="color:#000000;">SPSolution </span><span style="color:#800080;">$SolutionFileName</span><span style="color:#000000;">
    
    </span><span style="color:#0000FF;">if</span><span style="color:#000000;"> (</span><span style="color:#800080;">$solution</span><span style="color:#000000;"> </span><span style="color:#008080;">-eq</span><span style="color:#000000;"> </span><span style="color:#800080;">$null</span><span style="color:#000000;">) {
        Write</span><span style="color:#000000;">-</span><span style="color:#000000;">Host </span><span style="color:#800000;">&quot;</span><span style="color:#800000;"> -solution '$SolutionFileName' not found in solution store</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">
    }
    
    </span><span style="color:#0000FF;">if</span><span style="color:#000000;"> (</span><span style="color:#000000;">!</span><span style="color:#800080;">$solution</span><span style="color:#000000;">.JobExists) {
        Write</span><span style="color:#000000;">-</span><span style="color:#000000;">Host </span><span style="color:#800000;">&quot;</span><span style="color:#800000;"> -there are no solution jobs waiting</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">
    }
    </span><span style="color:#0000FF;">else</span><span style="color:#000000;"> {
        Write</span><span style="color:#000000;">-</span><span style="color:#000000;">Host </span><span style="color:#000000;">-</span><span style="color:#000000;">NoNewLine </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">Waiting for solution job</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">
         
        </span><span style="color:#800080;">$now</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> Get</span><span style="color:#000000;">-</span><span style="color:#000000;">Date
        </span><span style="color:#800080;">$timeout</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> (Get</span><span style="color:#000000;">-</span><span style="color:#000000;">Date).AddMinutes(</span><span style="color:#000000;">5</span><span style="color:#000000;">)
        
        </span><span style="color:#0000FF;">while</span><span style="color:#000000;"> (</span><span style="color:#800080;">$solution</span><span style="color:#000000;">.JobExists </span><span style="color:#008080;">-and</span><span style="color:#000000;"> </span><span style="color:#800080;">$now</span><span style="color:#000000;"> </span><span style="color:#008080;">-le</span><span style="color:#000000;"> </span><span style="color:#800080;">$timeout</span><span style="color:#000000;">) {
            Write</span><span style="color:#000000;">-</span><span style="color:#000000;">Host </span><span style="color:#000000;">-</span><span style="color:#000000;">NoNewLine </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">.</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">
            Start</span><span style="color:#000000;">-</span><span style="color:#000000;">Sleep </span><span style="color:#000000;">-</span><span style="color:#000000;">s </span><span style="color:#000000;">3</span><span style="color:#000000;">
        }
        
        </span><span style="color:#0000FF;">if</span><span style="color:#000000;"> (</span><span style="color:#000000;">!</span><span style="color:#800080;">$solution</span><span style="color:#000000;">.JobExists) {
            Write</span><span style="color:#000000;">-</span><span style="color:#000000;">Host </span><span style="color:#800000;">&quot;</span><span style="color:#800000;"> finished!</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">
        }
        </span><span style="color:#0000FF;">else</span><span style="color:#000000;"> {
            Write</span><span style="color:#000000;">-</span><span style="color:#000000;">Error </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">Waiting for solution job timed out! Check the Admin Timer Job status and ULS logs</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">
        }
    }
}</span></div></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<br /> Tagged: <a href='http://bramdejager.wordpress.com/tag/deployment/'>Deployment</a>, <a href='http://bramdejager.wordpress.com/tag/powershell/'>PowerShell</a>, <a href='http://bramdejager.wordpress.com/tag/sharepoint-2010/'>SharePoint 2010</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/211/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=211&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2012/04/13/wait-for-wsp-solution-to-deploy/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>
	</item>
		<item>
		<title>Visio Services application development</title>
		<link>http://bramdejager.wordpress.com/2012/03/16/visio-services-application-development/</link>
		<comments>http://bramdejager.wordpress.com/2012/03/16/visio-services-application-development/#comments</comments>
		<pubDate>Fri, 16 Mar 2012 07:13:57 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[Visio 2010]]></category>
		<category><![CDATA[Visio Services]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/?p=206</guid>
		<description><![CDATA[Most people will know Visio as a client application for drawing diagrams like the Network Diagram, Floor Plan or Flowcharts. SharePoint 2010 introduced Visio as a server component with which diagrams drawn in Visio 2010 can easily be displayed within SharePoint and integrated into webpages. This article discusses the new Visio Services service application and [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=206&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Most people will know Visio as a client application for drawing diagrams like the Network Diagram, Floor Plan or Flowcharts. SharePoint 2010 introduced Visio as a server component with which diagrams drawn in Visio 2010 can easily be displayed within SharePoint and integrated into webpages. This article discusses the new Visio Services service application and possibilities for development with the Visio Services Mash-Up API. </p>
<h2>Visio 2010 and Visio Services</h2>
<p>The advanced diagramming tools of Microsoft Visio 2010 helps you to simplify complex (business) processes with dynamic, data-driven visuals and new ways to share on the Web. Visio 2010 visualizes processes by creating (process)diagrams, sharing these with colleagues and turn it into business intelligence. With the 2010 edition of Visio the product can be divided into a client and a server product. The client application is installed on the local computer of the information worker and provides powerful tooling for viewing and creating diagrams. Visio Services is a service application, which integrates with SharePoint Server 2010 and provides possibilities for viewing diagrams in a web browser. </p>
<p>Visio 2010 consists of three editions: Standard, Professional en Premium (<a href="http://office.microsoft.com/en-us/visio/visio-edition-comparison-FX101838162.aspx">http://office.microsoft.com/en-us/visio/visio-edition-comparison-FX101838162.aspx</a>). The Standard edition has some basic features and focuses on View Only functionality. The Professional edition has most of the available features. It is likely this edition is most commonly used, because it supports a wide range of templates like floor plans for creating evacuation plans, pivot diagrams supporting hierarchical organizational structures and network diagrams for visualizing network topologies. The Premium edition has a specific set of features for Business Process Modeling Notation (BPMN), SharePoint workflow integration and Six Sigma templates. </p>
<p>Visio Services is part of SharePoint Server 2010 Enterprise edition. Visio Services is a service application that lets users share and view Visio Web drawings (*.vdw files). The service also enables data-connected Microsoft Visio 2010 Web drawings to be refreshed and updated from various data sources. Because diagrams are shown in the web browser there is no need for installing Visio 2010 on your local computer. Only “power users” will need Visio 2010 on their local computer for creating and changing diagrams. After the diagram is finished, the power users can easily share the drawing with the organization. Basic exploration and navigation of these rendered web drawings are supported within the Visio Web Access (VWA) web part. Page designers can configure the user interface and functionality of the web part. The diagram renders in full fidelity in the browser if the person viewing the diagram has Silverlight installed on their machine or as a PNG if not; Visio Services renders seamlessly anything you can draw in Visio. Take a look below to get a feel for the experience: </p>
<p><a href="http://bramdejager.files.wordpress.com/2012/03/supplychaininbrowser.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="Supply Chain in browser" border="0" alt="Supply Chain in browser" src="http://bramdejager.files.wordpress.com/2012/03/supplychaininbrowser_thumb.png?w=644&#038;h=442" width="644" height="442" /></a> </p>
<p>Figure 1: Visio drawing rendered in web browser by Visio Web Access web part </p>
<h2>Integrating Visio diagrams into SharePoint Applications</h2>
<p>Visio Services enables you to embed Visio Web Diagrams into SharePoint applications. There are no limitations whether the diagram is static or dynamic. Depending on your skill level there are three ways of doing so (see Table 1). No matter your skill level, with very little effort you can add visualization to your dashboards and with a bit more page authoring or some coding you can add rich interactivity between Visio Services and other components on the page.<br />
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="195">
<p><b>Integration method</b></p>
</td>
<td valign="top" width="283">
<p><b>Scenario enabled</b></p>
</td>
<td valign="top" width="265">
<p><b>Skill set required</b></p>
</td>
</tr>
<tr>
<td valign="top" width="197">
<p><b>The Visio Web Access web part</b></p>
</td>
<td valign="top" width="283">
<p>You can embed Visio diagrams into SharePoint pages. </p>
</td>
<td valign="top" width="265">
<p>You should know how to create a web part page in SharePoint.</p>
</td>
</tr>
<tr>
<td valign="top" width="199">
<p><b>Web Part Connections</b></p>
</td>
<td valign="top" width="283">
<p>You can enable limited interactivity between the Visio Web Access web part and another web part on the page, without code. A typical example of this type of interactivity is to trigger one web part to show extra relevant information about a particular shape, when it’s clicked in the Visio web part. </p>
</td>
<td valign="top" width="265">
<p>You should know how to create a web part page in SharePoint as well as how to set-up web part Connections.</p>
</td>
</tr>
<tr>
<td valign="top" width="200">
<p><b>The Visio Services Mash-up API</b></p>
</td>
<td valign="top" width="283">
<p>You can enable rich interactivity on your web part page by manipulating the different Visio web diagram objects programmatically. A typical example of this type of interactivity is to show custom visual overlays when the person viewing the diagram hovers over a particular shape. </p>
</td>
<td valign="top" width="265">
<p>You should know how to code JavaScript and/or ASPX pages.</p>
</td>
</tr>
</tbody>
</table>
<p>Table 1: Integration Visio and SharePoint</p>
<h2>The Visio Services Mash-Up API</h2>
<p>The Visio Services Mash-Up API is the most advance integration method of all and requires development skills. It enables developers to access and manipulate the Visio web drawing, its pages and shapes. Some key scenarios are: </p>
<ul>
<li>Interacting with web page elements that don’t expose web part connections. </li>
<li>Creating visual markup on the Visio drawing canvas. </li>
<li>Writing custom handlers for mouse events within the drawing. </li>
<li>Exposing diagram data, such as shape names and shape data, to your solution. </li>
<li>Combining data from inside and outside a diagram to build dynamic composite mash-ups. </li>
</ul>
<p>The Mash-Up API consists of four major classes, which reside in the Microsoft SharePoint Server 2010 ECMAScript (JavaScript, JScript) Vwa namespace (<a href="http://msdn.microsoft.com/en-us/library/ff394600.aspx">http://msdn.microsoft.com/en-us/library/ff394600.aspx</a>). The <i><a href="http://msdn.microsoft.com/en-us/library/ff394435.aspx" target="_blank">Vwa.VwaControl</a></i> class represents the Visio Web Access (VWA) web part on the page. This is the starting point for development. The VWA web part contains a link to the Visio Web Drawing and shows the drawing on the web page. Like many JavaScript APIs, the Visio Services JavaScript API is event-based. The <i><a href="http://msdn.microsoft.com/en-us/library/ff394435.aspx" target="_blank">VwaControl</a></i> exposes a number of events, which a developer can use to write event handlers. Important to note is the event handlers can only be accessed from within the <i><a href="http://msdn.microsoft.com/en-us/library/ff394611.aspx" target="_blank">onDiagramComplete</a></i> event. So typically when the <i><a href="http://msdn.microsoft.com/en-us/library/bb310856.aspx" target="_blank">onApplicationLoad</a></i> event fires, a reference to the <i><a href="http://msdn.microsoft.com/en-us/library/ff394435.aspx" target="_blank">VwaControl</a></i> can be instantiated. This is where you want to set-up the handlers for the <i><a href="http://msdn.microsoft.com/en-us/library/ff394611.aspx" target="_blank">onDiagramComplete</a></i> event and other various (mouse) events. Only then, when the <i><a href="http://msdn.microsoft.com/en-us/library/ff394611.aspx" target="_blank">onDiagramComplete</a></i> event fires references to the complete object model are available. </p>
<p>Most of the business logic starts from the <i><a href="http://msdn.microsoft.com/en-us/library/ff394611.aspx" target="_blank">onDiagramComplete</a></i> event where the (active) page is accessed. The page is represented by the <i><a href="http://msdn.microsoft.com/en-us/library/ff394637.aspx" target="_blank">Vwa.Page</a></i> class which contains a collection of Shapes (<i><a href="http://msdn.microsoft.com/en-us/library/ff394526.aspx" target="_blank">Vwa.ShapeCollection</a> </i>class). You can either retrieve the current selected shape or iterate the shapes collection to get a particular shape (<i><a href="http://msdn.microsoft.com/en-us/library/ff394662.aspx" target="_blank">Vwa.Shape</a></i> class). </p>
<h4>Microsoft floor plan</h4>
<p>Microsoft Netherlands invites customer and partners to visit their building located in Schiphol on a daily basis. The building is split up into a public community area (first floor) and a private area for employees only. The community area holds room for 15 conference rooms, with different capacity and facilities like a beamer and a Roundtable. </p>
<p>Microsoft wanted to improve the process for booking a room, by visualizing the community area and support the room selection process by highlighting rooms, which comply with given selection criteria. Selecting a room is based on availability, capacity and beamer and/or Roundtable availability. </p>
<p>The basics for starting development is creating the Visio web diagram. The community area diagram is created by importing a CAD drawing. This resulted in a Visio diagram showing the community area. By importing the CAD drawing the diagram was overloaded with a huge number of shapes. Every wall resulted in a one or more shapes. When joining shapes together shapes representing one room are created. This is a very important step because in Visio it is all about shapes! </p>
<blockquote><p>In Visio it is all about shapes!</p>
</blockquote>
<p>A single shape contains shape data. The <i>Shape Data Window</i>, showing all shape data, is accessed via the <i>Data</i> tab in the Visio ribbon. Figure 2 is showing the selected shape “Het Kantoor” and its shape data on the right in the <i>Shape Data Window</i>. </p>
<p>The next step in creating our floor plan application is adding data to the shapes. Microsoft provided an Excel sheet with information about capacity and facilities. This information is easily imported into the drawing and bound to the shapes. Visio supports importing data from different sources like Excel, Access, SharePoint, SQL and other sources by clicking the <i>Link Data to Shapes </i>button in the <i>Data</i> tab. The imported data has become a part of the diagram and is stored within the diagram. It is even supported to update the data in the Excel sheet and refresh the corresponding data within the Visio drawing. After the import the <i>External Data </i>window is shown. By dragging a row onto a shape the shape is linked with external data. In Figure 2 the row “Het Atelier” is dragged to the corresponding shape for linking the data to the shape. We will link all rows to the corresponding shapes. </p>
<p><a href="http://bramdejager.files.wordpress.com/2012/03/shapedatadatalinking.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="ShapeDataDataLinking" border="0" alt="ShapeDataDataLinking" src="http://bramdejager.files.wordpress.com/2012/03/shapedatadatalinking_thumb.png?w=641&#038;h=484" width="641" height="484" /></a> </p>
<p>Figure 2: Floor plan zoomed in on &quot;Het Kantoor&quot; conference room </p>
<p>At this stage the Visio diagram is ready. It is saved to a SharePoint site as a Visio Web Diagram (.vwd) file. This is a new Visio file format to support a data-refreshable drawing for use with Visio Services. With the SharePoint site up and running and our Visio diagram saved to a document library, a web part page is needed to display the diagram. A basic web part page with “Header, Right Column, Body” layout is created. Two web parts are added. The Visio Web Access web part is added in the “Body” web part zone and a Content Editor web part is added to the “Right” zone (Figure 3). </p>
<p><a href="http://bramdejager.files.wordpress.com/2012/03/webpartpagewithvwa.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="WebPartPageWithVWA" border="0" alt="WebPartPageWithVWA" src="http://bramdejager.files.wordpress.com/2012/03/webpartpagewithvwa_thumb.png?w=644&#038;h=393" width="644" height="393" /></a> </p>
<p>Figure 3: Web part page with Visio Web Access web part added to Body web part zone </p>
<p>The VWA web part needs to be configured by selecting the Visio diagram, which is stored in the document library. All other properties of the web part are unchecked in this case, because they will be set via JavaScript later in this article. </p>
<p><a href="http://bramdejager.files.wordpress.com/2012/03/visiowebpartproperties.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="VisioWebPartProperties" border="0" alt="VisioWebPartProperties" src="http://bramdejager.files.wordpress.com/2012/03/visiowebpartproperties_thumb.png?w=644&#038;h=393" width="644" height="393" /></a> </p>
<p>Figure 4: Visio Web Access web part properties </p>
<p>The Content Editor web part will be pointed to a JavaScript file containing the HTML markup for the panel on the right and all JavaScript business logic. The panel is used by the end user for interaction with the diagram (Figure 5). It shows room information when hovering the different conference rooms (<i>shapemouseenter</i> and <i>shapemouseleave</i> events). Users can use the Filter Options section to highlight in red the matching conference rooms. The Meeting Rooms section will list all available conference rooms by iterating the diagram and building a bulleted list. When clicking an item in the list the conference room is highlighted in light blue. </p>
<p><a href="http://bramdejager.files.wordpress.com/2012/03/floorplan.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="FloorPlan" border="0" alt="FloorPlan" src="http://bramdejager.files.wordpress.com/2012/03/floorplan_thumb.png?w=635&#038;h=484" width="635" height="484" /></a> </p>
<p>Figure 5: Screenshot of Floor Plan Application </p>
<blockquote><p>Change the Visio Services service application configuration setting <i>Cache Age</i> to 0 minutes. This will reload the Visio drawing on a page refresh. Don’t use this setting in Production environment! </p>
</blockquote>
<h5>Getting started with the mash-up API</h5>
<p>Finally we can start working on our JavaScript skills. First step is to hook up the Application event handlers and get a reference to the <i>VwaControl</i> object (Listing 1). The <i>VwaControl</i> object can be retrieved via the web part instance. Open the SharePoint web part page in source mode (in IE, right click and “View Source”) and search for “class=’VisioWebAccess’”,then back track to the immediate parent &lt;div&gt; tag and look for an attribute of the form id=&quot;WebPartWPQ?&quot;. Use this ID for retrieving the <i>VwaControl</i>. </p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:e0b4acde-d69d-4082-b41e-81bc77804d91" class="wlWriterEditableSmartContent">
<pre style="width:610px;height:422px;background-color:White;white-space:pre-wrap;word-wrap:break-word;overflow:hidden;"><div><span style="color:#008000;">//</span><span style="color:#008000;"> hook up Application event handlers </span><span style="color:#008000;">
</span><span style="color:#0000FF;">var</span><span style="color:#000000;"> app </span><span style="color:#000000;">=</span><span style="color:#000000;"> Sys.Application; 
app.add_load(onApplicationLoad); 
app.add_unload(onApplicationUnload); 

</span><span style="color:#008000;">//</span><span style="color:#008000;"> hold an instance of the Visio VWA control </span><span style="color:#008000;">
</span><span style="color:#0000FF;">var</span><span style="color:#000000;"> vwaControl; 

</span><span style="color:#008000;">//</span><span style="color:#008000;">---------------------------------------------------------- </span><span style="color:#008000;">
//</span><span style="color:#008000;"> Create a VwaControl Object and add handlers. </span><span style="color:#008000;">
//</span><span style="color:#008000;">---------------------------------------------------------- </span><span style="color:#008000;">
</span><span style="color:#0000FF;">function</span><span style="color:#000000;"> onApplicationLoad() { 
  </span><span style="color:#008000;">//</span><span style="color:#008000;"> this is the name of the visio web part instance on the web part page </span><span style="color:#008000;">
</span><span style="color:#000000;">  vwaControl </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#0000FF;">new</span><span style="color:#000000;"> Vwa.VwaControl(</span><span style="color:#000000;">&quot;</span><span style="color:#000000;">WebPartWPQ3</span><span style="color:#000000;">&quot;</span><span style="color:#000000;">); 
  vwaControl.addHandler(</span><span style="color:#000000;">&quot;</span><span style="color:#000000;">diagramcomplete</span><span style="color:#000000;">&quot;</span><span style="color:#000000;">, onDiagramComplete); 
  vwaControl.addHandler(</span><span style="color:#000000;">&quot;</span><span style="color:#000000;">shapeselectionchanged</span><span style="color:#000000;">&quot;</span><span style="color:#000000;">, shapeSelectionChangedHandler); 
  vwaControl.addHandler(</span><span style="color:#000000;">&quot;</span><span style="color:#000000;">shapemouseenter</span><span style="color:#000000;">&quot;</span><span style="color:#000000;">, onShapeMouseEnter); 
  vwaControl.addHandler(</span><span style="color:#000000;">&quot;</span><span style="color:#000000;">shapemouseleave</span><span style="color:#000000;">&quot;</span><span style="color:#000000;">, onShapeMouseLeave); 
}</span></div></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<p>Listing 1: Hook up the Application event handlers and reference VwaControl object </p>
<p>After setting up the basics, it’s coding the event handlers. The most important event is the <i>onDiagramComplete</i> event (Listing 2). This is where the active page is retrieved and initial zoom level is set. To make sure the end user does not click the buttons before Visio Services is ready with loading the diagram, the buttons are enabled here in this event. </p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:0e9a8fdc-ec29-40ff-9126-943742a40a2c" class="wlWriterEditableSmartContent">
<pre style="width:610px;height:408px;background-color:White;white-space:pre-wrap;word-wrap:break-word;overflow:hidden;"><div><span style="color:#008000;">//</span><span style="color:#008000;">----------------------------------------------------------</span><span style="color:#008000;">
//</span><span style="color:#008000;"> Visio page events</span><span style="color:#008000;">
//</span><span style="color:#008000;">----------------------------------------------------------</span><span style="color:#008000;">
</span><span style="color:#0000FF;">function</span><span style="color:#000000;"> onDiagramComplete() {
  </span><span style="color:#0000FF;">var</span><span style="color:#000000;"> vwaPage </span><span style="color:#000000;">=</span><span style="color:#000000;"> vwaControl.getActivePage();
  vwaPage.setZoom(</span><span style="color:#000000;">-</span><span style="color:#000000;">1</span><span style="color:#000000;">); </span><span style="color:#008000;">//</span><span style="color:#008000;"> force the initial zoom level</span><span style="color:#008000;">
</span><span style="color:#000000;">
  </span><span style="color:#008000;">//</span><span style="color:#008000;"> Enable filter buttons</span><span style="color:#008000;">
</span><span style="color:#000000;">  document.getElementById(</span><span style="color:#000000;">'</span><span style="color:#000000;">btClear</span><span style="color:#000000;">'</span><span style="color:#000000;">).disabled </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#0000FF;">false</span><span style="color:#000000;">;
  document.getElementById(</span><span style="color:#000000;">'</span><span style="color:#000000;">btFilter</span><span style="color:#000000;">'</span><span style="color:#000000;">).disabled </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#0000FF;">false</span><span style="color:#000000;">;

  </span><span style="color:#008000;">//</span><span style="color:#008000;"> Get all meeting rooms based on drawing.</span><span style="color:#008000;">
</span><span style="color:#000000;">  GetRooms();

  </span><span style="color:#008000;">//</span><span style="color:#008000;"> Select shape when querystring has parameter 'room'</span><span style="color:#008000;">
</span><span style="color:#000000;">  </span><span style="color:#0000FF;">var</span><span style="color:#000000;"> roomName </span><span style="color:#000000;">=</span><span style="color:#000000;"> getQuerystring(</span><span style="color:#000000;">'</span><span style="color:#000000;">room</span><span style="color:#000000;">'</span><span style="color:#000000;">, </span><span style="color:#000000;">''</span><span style="color:#000000;">);
  </span><span style="color:#0000FF;">if</span><span style="color:#000000;"> (</span><span style="color:#000000;">!</span><span style="color:#000000;">roomName.isNullOrEmpty())
    setSelectedShapeByLabelAndName(labelRoomName, roomName);
}

shapeSelectionChangedHandler </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#0000FF;">function</span><span style="color:#000000;"> (source, args) {
  GetShapeInformation(args);
}

onShapeMouseEnter </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#0000FF;">function</span><span style="color:#000000;"> (source, args) {
  GetShapeInformation(args);
}

onShapeMouseLeave </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#0000FF;">function</span><span style="color:#000000;"> (source, args) {
  </span><span style="color:#008000;">//</span><span style="color:#008000;"> Could add logic for mouse leave event</span><span style="color:#008000;">
</span><span style="color:#000000;">}</span></div></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<p>Listing 2: onDiagramComplete event </p>
<p>The <i>setSelectedShapeByLabelAndName</i> and <i>GetShapeInformation</i> methods are not described in this article. Both are based on the same principles as described in the following paragraph. </p>
<h5>Iterate shapes and retrieving shape data</h5>
<p>As mentioned earlier, all shapes on the diagram are iterated to get all conference rooms and list those in the Meeting Rooms section. This is initiated by calling the <i>GetRooms()</i> method. </p>
<p>The room name is displayed in the bulleted list on the web page, this is stored in the shape data collection as shown in Figure 2. The shape data is a label/value pair collection which is accessed by the <i>nextShape.getShapeData();</i> statement. To get the <i>Shape</i> object, the <i>ShapeCollection</i> needs to be iterated. This is an important approach to retrieve shape data in the Visio Mash-Up API. This is shown in Listing 3. </p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:5604a49e-548b-409d-b4c1-5c0908a37e84" class="wlWriterEditableSmartContent">
<pre style="width:610px;height:939px;background-color:White;white-space:pre-wrap;word-wrap:break-word;overflow:hidden;"><div><span style="color:#008000;">//</span><span style="color:#008000;">----------------------------------------------------------</span><span style="color:#008000;">
//</span><span style="color:#008000;"> Get all rooms from the diagram and provision in DIV-element</span><span style="color:#008000;">
//</span><span style="color:#008000;">----------------------------------------------------------</span><span style="color:#008000;">
</span><span style="color:#0000FF;">var</span><span style="color:#000000;"> labelRoomName </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#000000;">&quot;</span><span style="color:#000000;">naam</span><span style="color:#000000;">&quot;</span><span style="color:#000000;">;

</span><span style="color:#0000FF;">function</span><span style="color:#000000;"> GetRooms() {
  </span><span style="color:#008000;">//</span><span style="color:#008000;"> Get visio objects</span><span style="color:#008000;">
</span><span style="color:#000000;">  </span><span style="color:#0000FF;">var</span><span style="color:#000000;"> vwaPage </span><span style="color:#000000;">=</span><span style="color:#000000;"> vwaControl.getActivePage();
  </span><span style="color:#0000FF;">var</span><span style="color:#000000;"> vwaShapes </span><span style="color:#000000;">=</span><span style="color:#000000;"> vwaPage.getShapes();
  </span><span style="color:#0000FF;">var</span><span style="color:#000000;"> vwaShapeCount </span><span style="color:#000000;">=</span><span style="color:#000000;"> vwaShapes.getCount();

  </span><span style="color:#008000;">//</span><span style="color:#008000;"> Search shape based on label and value</span><span style="color:#008000;">
</span><span style="color:#000000;">  </span><span style="color:#0000FF;">var</span><span style="color:#000000;"> strHtml </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#000000;">&quot;</span><span style="color:#000000;">&lt;ul class=\&quot;visioRooms\&quot;&gt;</span><span style="color:#000000;">&quot;</span><span style="color:#000000;">;
  </span><span style="color:#0000FF;">for</span><span style="color:#000000;"> (</span><span style="color:#0000FF;">var</span><span style="color:#000000;"> nextShapeIndex </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#000000;">0</span><span style="color:#000000;">; nextShapeIndex </span><span style="color:#000000;">&lt;</span><span style="color:#000000;"> vwaShapeCount; nextShapeIndex</span><span style="color:#000000;">++</span><span style="color:#000000;">) {
    </span><span style="color:#0000FF;">var</span><span style="color:#000000;"> nextShape </span><span style="color:#000000;">=</span><span style="color:#000000;"> vwaShapes.getItemAtIndex(nextShapeIndex);

    </span><span style="color:#0000FF;">if</span><span style="color:#000000;"> (nextShape </span><span style="color:#000000;">!=</span><span style="color:#000000;"> </span><span style="color:#0000FF;">null</span><span style="color:#000000;">) {
      </span><span style="color:#0000FF;">var</span><span style="color:#000000;"> data </span><span style="color:#000000;">=</span><span style="color:#000000;"> nextShape.getShapeData();
      </span><span style="color:#0000FF;">var</span><span style="color:#000000;"> strRoomName </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#000000;">&quot;&quot;</span><span style="color:#000000;">;

      </span><span style="color:#0000FF;">for</span><span style="color:#000000;"> (</span><span style="color:#0000FF;">var</span><span style="color:#000000;"> j </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#000000;">0</span><span style="color:#000000;">; j </span><span style="color:#000000;">&lt;</span><span style="color:#000000;"> data.length; j</span><span style="color:#000000;">++</span><span style="color:#000000;">) {
        </span><span style="color:#0000FF;">if</span><span style="color:#000000;"> (data[j].label </span><span style="color:#000000;">==</span><span style="color:#000000;"> labelRoomName) {
          strRoomName </span><span style="color:#000000;">=</span><span style="color:#000000;"> data[j].value;
          </span><span style="color:#0000FF;">continue</span><span style="color:#000000;">;
        }
      }

      </span><span style="color:#0000FF;">if</span><span style="color:#000000;"> (</span><span style="color:#000000;">!</span><span style="color:#000000;">strRoomName.isNullOrEmpty())
        strHtml </span><span style="color:#000000;">+=</span><span style="color:#000000;"> </span><span style="color:#000000;">&quot;</span><span style="color:#000000;">&lt;li&gt;&lt;a href=\&quot;javascript:setSelectedShapeById('</span><span style="color:#000000;">&quot;</span><span style="color:#000000;"> </span><span style="color:#000000;">+</span><span style="color:#000000;"> nextShape.getId() </span><span style="color:#000000;">+</span><span style="color:#000000;"> </span><span style="color:#000000;">&quot;</span><span style="color:#000000;">');\&quot;&gt;</span><span style="color:#000000;">&quot;</span><span style="color:#000000;"> </span><span style="color:#000000;">+</span><span style="color:#000000;"> strRoomName </span><span style="color:#000000;">+</span><span style="color:#000000;"> </span><span style="color:#000000;">&quot;</span><span style="color:#000000;">&lt;/a&gt;&lt;/li&gt;</span><span style="color:#000000;">&quot;</span><span style="color:#000000;">;
    }
  }
  strHtml </span><span style="color:#000000;">+=</span><span style="color:#000000;"> </span><span style="color:#000000;">&quot;</span><span style="color:#000000;">&lt;/ul&gt;</span><span style="color:#000000;">&quot;</span><span style="color:#000000;">;
}

</span><span style="color:#008000;">//</span><span style="color:#008000;">----------------------------------------------------------</span><span style="color:#008000;">
//</span><span style="color:#008000;"> Sets the selected shape by shape ID</span><span style="color:#008000;">
//</span><span style="color:#008000;">----------------------------------------------------------</span><span style="color:#008000;">
</span><span style="color:#0000FF;">function</span><span style="color:#000000;"> setSelectedShapeById(shapeId) {
  </span><span style="color:#008000;">//</span><span style="color:#008000;"> Get page and set shape</span><span style="color:#008000;">
</span><span style="color:#000000;">  </span><span style="color:#0000FF;">var</span><span style="color:#000000;"> vwaPage </span><span style="color:#000000;">=</span><span style="color:#000000;"> vwaControl.getActivePage();
  vwaPage.setSelectedShape(shapeId);
}
</span></div></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<p>Listing 3: Iterate all shapes </p>
<h5>Highlight shapes</h5>
<p>When a user clicks the “Highlight”-button all shapes which comply with given selection criteria will be highlighted in red. This is achieved with the out-of-the-box method <i>Shape.addHighLight</i> object. An example is shown in Listing 4 which is a fragment of the custom <i>Highlight</i> method. </p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:74e0ff9d-e718-45ee-90ae-ac8ae4892d25" class="wlWriterEditableSmartContent">
<pre style="width:610px;height:96px;background-color:White;white-space:pre-wrap;word-wrap:break-word;overflow:hidden;"><div><span style="color:#0000FF;">var</span><span style="color:#000000;"> selectShape </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#0000FF;">true</span><span style="color:#000000;">;

</span><span style="color:#0000FF;">if</span><span style="color:#000000;"> (selectShape) {
  nextShape.addHighlight(</span><span style="color:#000000;">4</span><span style="color:#000000;">, </span><span style="color:#000000;">'</span><span style="color:#000000;">red</span><span style="color:#000000;">'</span><span style="color:#000000;">);</span></div></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<p>Listing 4: Highlight shape </p>
<h4>Conclusion</h4>
<p>In this article we have looked at developing Visio applications running on top of Visio Services. The article provides background information about Visio 2010 and the new SharePoint 2010 Visio Services service application. Visio Services supports displaying a Visio Web Drawing (.vwd file extension) in the Visio Web Access web part. A developer can easily interact with the Visio drawing by using the Visio Services Mash-Up API. This is demonstrated with the Microsoft floor plan example. Hopefully this has given you an understanding of the Visio development basics and an example approach to creating your own Visio mash-up application. </p>
<br /> Tagged: <a href='http://bramdejager.wordpress.com/tag/development/'>Development</a>, <a href='http://bramdejager.wordpress.com/tag/sharepoint-2010/'>SharePoint 2010</a>, <a href='http://bramdejager.wordpress.com/tag/visio-2010/'>Visio 2010</a>, <a href='http://bramdejager.wordpress.com/tag/visio-services/'>Visio Services</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/206/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=206&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2012/03/16/visio-services-application-development/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2012/03/supplychaininbrowser_thumb.png" medium="image">
			<media:title type="html">Supply Chain in browser</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2012/03/shapedatadatalinking_thumb.png" medium="image">
			<media:title type="html">ShapeDataDataLinking</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2012/03/webpartpagewithvwa_thumb.png" medium="image">
			<media:title type="html">WebPartPageWithVWA</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2012/03/visiowebpartproperties_thumb.png" medium="image">
			<media:title type="html">VisioWebPartProperties</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2012/03/floorplan_thumb.png" medium="image">
			<media:title type="html">FloorPlan</media:title>
		</media:content>
	</item>
		<item>
		<title>Get features grouped by solution package</title>
		<link>http://bramdejager.wordpress.com/2012/03/13/get-features-grouped-by-solution-package/</link>
		<comments>http://bramdejager.wordpress.com/2012/03/13/get-features-grouped-by-solution-package/#comments</comments>
		<pubDate>Tue, 13 Mar 2012 07:04:27 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/?p=192</guid>
		<description><![CDATA[I needed an overview of all features related to their solution package. This can be achieved by using PowerShell. Because this could be useful for others as well, here is the script. Add-PSSnapin Microsoft.SharePoint.PowerShell -ea 0 foreach ($grp in Get-SPFeature &#124; Group-Object SolutionId) { $sol = Get-SPSolution -Identity $grp.Name Write-Host $sol.Name '(ID:' $grp.Name '), Count:' [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=192&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I needed an overview of all features related to their solution package. This can be achieved by using PowerShell. Because this could be useful for others as well, here is the script.</p>
<p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:27364ace-f020-4735-b259-c4b2708d7003" class="wlWriterEditableSmartContent">
<pre style="width:598px;height:236px;background-color:White;white-space:pre-wrap;word-wrap:break-word;overflow:hidden;"><div><span style="color:#000000;">Add</span><span style="color:#000000;">-</span><span style="color:#000000;">PSSnapin Microsoft.SharePoint.PowerShell </span><span style="color:#000000;">-</span><span style="color:#000000;">ea </span><span style="color:#000000;">0</span><span style="color:#000000;">

</span><span style="color:#0000FF;">foreach</span><span style="color:#000000;"> (</span><span style="color:#800080;">$grp</span><span style="color:#000000;"> </span><span style="color:#0000FF;">in</span><span style="color:#000000;"> Get</span><span style="color:#000000;">-</span><span style="color:#000000;">SPFeature </span><span style="color:#000000;">|</span><span style="color:#000000;"> Group</span><span style="color:#000000;">-</span><span style="color:#000000;">Object SolutionId) {
    </span><span style="color:#800080;">$sol</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> Get</span><span style="color:#000000;">-</span><span style="color:#000000;">SPSolution </span><span style="color:#000000;">-</span><span style="color:#000000;">Identity </span><span style="color:#800080;">$grp</span><span style="color:#000000;">.Name
    Write</span><span style="color:#000000;">-</span><span style="color:#000000;">Host </span><span style="color:#800080;">$sol</span><span style="color:#000000;">.Name '(ID:' </span><span style="color:#800080;">$grp</span><span style="color:#000000;">.Name '), Count:' </span><span style="color:#800080;">$grp</span><span style="color:#000000;">.Count </span><span style="color:#000000;">-</span><span style="color:#000000;">ForegroundColor Blue
    </span><span style="color:#0000FF;">foreach</span><span style="color:#000000;"> (</span><span style="color:#800080;">$fd</span><span style="color:#000000;"> </span><span style="color:#0000FF;">in</span><span style="color:#000000;"> </span><span style="color:#800080;">$grp</span><span style="color:#000000;">.Group </span><span style="color:#000000;">|</span><span style="color:#000000;"> sort DisplayName ) {
        Write</span><span style="color:#000000;">-</span><span style="color:#000000;">Host </span><span style="color:#800080;">$fd</span><span style="color:#000000;">.DisplayName '(' </span><span style="color:#800080;">$fd</span><span style="color:#000000;">.Scope ')'
    }
    Write</span><span style="color:#000000;">-</span><span style="color:#000000;">Host
}</span></div></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<p>The output looks like this</p>
<p><a href="http://bramdejager.files.wordpress.com/2012/03/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="Output PowerShell ISE" border="0" alt="Output PowerShell ISE" src="http://bramdejager.files.wordpress.com/2012/03/image_thumb.png?w=644&#038;h=232" width="644" height="232" /></a></p>
<br /> Tagged: <a href='http://bramdejager.wordpress.com/tag/powershell/'>PowerShell</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/192/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=192&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2012/03/13/get-features-grouped-by-solution-package/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2012/03/image_thumb.png" medium="image">
			<media:title type="html">Output PowerShell ISE</media:title>
		</media:content>
	</item>
		<item>
		<title>Integrate Beyond Compare with Visual Studio Source Control</title>
		<link>http://bramdejager.wordpress.com/2011/12/21/integrate-beyond-compare-with-visual-studio-source-control/</link>
		<comments>http://bramdejager.wordpress.com/2011/12/21/integrate-beyond-compare-with-visual-studio-source-control/#comments</comments>
		<pubDate>Wed, 21 Dec 2011 07:38:32 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[Tooling]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/?p=180</guid>
		<description><![CDATA[Like everyone else, I have my own preferences to configure my development environment. One of the tools I’m using is Beyond Compare. Besides the main features of the tool, I like the integration with Visual Studio and Visual Studio Team Foundation (TFS) the best and it’s really simple! But I always forget the command and [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=180&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Like everyone else, I have my own preferences to configure my development environment. One of the tools I’m using is <a href="http://www.scootersoftware.com" target="_blank">Beyond Compare</a>. Besides the main features of the tool, I like the integration with Visual Studio and Visual Studio Team Foundation (TFS) the best and it’s really simple! But I always forget the command and arguments to use. This is why I’m writing this post.</p>
<p>Configure Beyond Compare as version history compare tool for Visual Studio 2010:</p>
<ol>
<li>Open Visual Studio </li>
<li>Open <em>Tools » Options…</em> </li>
<li>In the tree on the left go to <em>Source Control » Visual Studio Team Foundation</em> </li>
<li>Click <em>Configure User Tools…</em> </li>
<li>Click <em>Add…</em> </li>
<li>Set the following fields
<ol>
<li>Extention: * </li>
<li>Operation: Compare </li>
<li>Command: C:\Program Files (x86)\Beyond Compare 3\BComp.exe </li>
<li>Arguments: %1 %2 /readonly /lefttitle=%6 /righttitle=%7 </li>
</ol>
</li>
</ol>
<p>The arguments allow you to control the behavior of Beyond Compare. Labels to use:</p>
<ul>
<li>%1: Original file </li>
<li>%2: Modified file </li>
<li>%5: Diff command-line options </li>
<li>%6: Original file label </li>
<li>%7: Modified file label </li>
</ul>
<br /> Tagged: <a href='http://bramdejager.wordpress.com/tag/development/'>Development</a>, <a href='http://bramdejager.wordpress.com/tag/tooling/'>Tooling</a>, <a href='http://bramdejager.wordpress.com/tag/visual-studio/'>Visual Studio</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/180/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=180&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2011/12/21/integrate-beyond-compare-with-visual-studio-source-control/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>
	</item>
		<item>
		<title>Export WSP solution packages</title>
		<link>http://bramdejager.wordpress.com/2011/11/30/export-wsp-solution-packages/</link>
		<comments>http://bramdejager.wordpress.com/2011/11/30/export-wsp-solution-packages/#comments</comments>
		<pubDate>Wed, 30 Nov 2011 07:53:17 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[IT Pro]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[WSP]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/?p=175</guid>
		<description><![CDATA[When WSP packages are added to a SharePoint farm they are stored in the config database. This is done to ensure new servers added to the farm can be synchronized with the specific farm configuration including WSP solution package deployment. Because solution packages are stored in the config database, it’s possible to download/export the WSP [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=175&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>When WSP packages are added to a SharePoint farm they are stored in the config database. This is done to ensure new servers added to the farm can be synchronized with the specific farm configuration including WSP solution package deployment. </p>
<p>Because solution packages are stored in the config database, it’s possible to download/export the WSP package with PowerShell. </p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:3847bca7-ba87-4a72-8b55-52c5206956e6" class="wlWriterEditableSmartContent">
<pre style="width:598px;height:43px;background-color:White;white-space:pre-wrap;word-wrap:break-word;overflow:hidden;"><div><span style="color:#000000;">Get</span><span style="color:#000000;">-</span><span style="color:#000000;">SPSolution </span><span style="color:#000000;">|</span><span style="color:#000000;"> </span><span style="color:#0000FF;">ForEach</span><span style="color:#000000;">-</span><span style="color:#000000;">Object { </span><span style="color:#800080;">$_</span><span style="color:#000000;">.SolutionFile.SaveAs(</span><span style="color:#800080;">$_</span><span style="color:#000000;">.SolutionFile.Name) }</span></div></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<p>The WSP packages are stored in the current directory.</p>
<br /> Tagged: <a href='http://bramdejager.wordpress.com/tag/it-pro/'>IT Pro</a>, <a href='http://bramdejager.wordpress.com/tag/powershell/'>PowerShell</a>, <a href='http://bramdejager.wordpress.com/tag/wsp/'>WSP</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/175/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=175&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2011/11/30/export-wsp-solution-packages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>
	</item>
		<item>
		<title>Approaches to migrating your service applications</title>
		<link>http://bramdejager.wordpress.com/2011/10/10/approaches-to-migrating-your-service-applications/</link>
		<comments>http://bramdejager.wordpress.com/2011/10/10/approaches-to-migrating-your-service-applications/#comments</comments>
		<pubDate>Mon, 10 Oct 2011 19:11:57 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[IT Pro]]></category>
		<category><![CDATA[Service Application]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[Upgrade]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/?p=171</guid>
		<description><![CDATA[While working my way through TechNet documentation, I came across this very interesting table! It describes supported methods for service application migration. The forth column shows the support for read-only database. You can find more information on read-only databases here: Run a farm that uses read-only databases (SharePoint Server 2010) [http://technet.microsoft.com/en-us/library/dd793608.aspx]. Service application Database Supported [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=171&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>While working my way through <a href="http://technet.microsoft.com/en-us/library/hh495476.aspx#APPENDIXE" target="_blank">TechNet documentation</a>, I came across this very interesting table! It describes supported methods for service application migration.</p>
<p>The forth column shows the support for read-only database. You can find more information on read-only databases here: <a href="http://technet.microsoft.com/en-us/library/dd793608.aspx" target="_blank">Run a farm that uses read-only databases (SharePoint Server 2010)</a> [<a href="http://technet.microsoft.com/en-us/library/dd793608.aspx">http://technet.microsoft.com/en-us/library/dd793608.aspx</a>].</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top">
<p><strong>Service application </strong></p>
</td>
<td valign="top">
<p><strong>Database </strong></p>
</td>
<td valign="top">
<p><strong>Supported approach </strong></p>
</td>
<td valign="top">
<p><strong>Supports read-only </strong></p>
</td>
<td valign="top">
<p><strong>Notes </strong></p>
</td>
</tr>
<tr>
<td valign="top">
<p><font size="1">Access Services</font></p>
</td>
<td valign="top">
<p><font size="1">None</font></p>
</td>
<td valign="top">
<p><font size="1">not available</font></p>
</td>
<td valign="top">
<p><font size="1">not available</font></p>
</td>
<td valign="top">&#160;</td>
</tr>
<tr>
<td valign="top">
<p><font size="2">Application Discovery and Load Balancing</font></p>
</td>
<td valign="top">
<p><font size="2">None</font></p>
</td>
<td valign="top">
<p><font size="2">not available</font></p>
</td>
<td valign="top">
<p><font size="2">not available</font></p>
</td>
<td valign="top"><font size="2"></font></td>
</tr>
<tr>
<td valign="top">
<p><font size="2">Application Registry Service</font></p>
</td>
<td valign="top">
<p><font size="2">Application Registry Service</font></p>
</td>
<td valign="top">
<p><font size="2">Recreate</font></p>
</td>
<td valign="top">
<p><font size="2">No</font></p>
</td>
<td valign="top"><font size="2"></font></td>
</tr>
<tr>
<td valign="top">
<p><font size="2">Business Data Connectivity</font></p>
</td>
<td valign="top">
<p><font size="2">Business Data Connectivity</font></p>
</td>
<td valign="top">
<p><font size="2">· Database attach</font></p>
<p><font size="2">· Recreate</font></p>
</td>
<td valign="top"><font size="2"></font></td>
<td valign="top"><font size="2"></font></td>
</tr>
<tr>
<td valign="top">
<p><font size="2">Excel Services </font></p>
</td>
<td valign="top">
<p><font size="2">none</font></p>
</td>
<td valign="top">
<p><font size="2">not available</font></p>
</td>
<td valign="top">
<p><font size="2">not available</font></p>
</td>
<td valign="top"><font size="2"></font></td>
</tr>
<tr>
<td valign="top">
<p><font size="2">Microsoft SharePoint Foundation Subscription Settings</font></p>
</td>
<td valign="top">
<p><font size="2">Subscription</font></p>
</td>
<td valign="top">
<p><font size="2">Database attach</font></p>
</td>
<td valign="top"><font size="2"></font></td>
<td valign="top"><font size="2"></font></td>
</tr>
<tr>
<td valign="top">
<p><font size="2">Managed Metadata Service</font></p>
</td>
<td valign="top">
<p><font size="2">Managed Metadata Service</font></p>
</td>
<td valign="top">
<p><font size="2">· Database attach</font></p>
<p><font size="2">· Recreate</font></p>
</td>
<td valign="top"><font size="2"></font></td>
<td valign="top"><font size="2"></font></td>
</tr>
<tr>
<td valign="top">
<p><font size="2">PerformancePoint Services </font></p>
</td>
<td valign="top">
<p><font size="2">PerformancePoint Services </font></p>
</td>
<td valign="top">
<p><font size="2">Recreate</font></p>
</td>
<td valign="top"><font size="2"></font></td>
<td valign="top"><font size="2"></font></td>
</tr>
<tr>
<td valign="top">
<p><font size="2">PowerPoint Service</font></p>
</td>
<td valign="top">
<p><font size="2">None</font></p>
</td>
<td valign="top">
<p><font size="2">not available</font></p>
</td>
<td valign="top">
<p><font size="2">not available</font></p>
</td>
<td valign="top"><font size="2"></font></td>
</tr>
<tr>
<td valign="top">
<p><font size="2">Project Server service application</font></p>
</td>
<td valign="top">
<p><font size="2">· Draft</font></p>
<p><font size="2">· Published</font></p>
<p><font size="2">· Archive</font></p>
<p><font size="2">· Reporting</font></p>
</td>
<td valign="top">
<p><font size="2">Database attach</font></p>
</td>
<td valign="top">
<p><font size="2">No</font></p>
</td>
<td valign="top">
<p><font size="2">· Requires synchronization between the databases</font></p>
<p><font size="2">· Need to configure time stamps or log marking</font></p>
<p><font size="2">For more information, see </font><a href="http://technet.microsoft.com/en-us/library/ee662500.aspx"><font size="2">Database-attach full upgrade to Project Server 2010</font></a></p>
</td>
</tr>
<tr>
<td valign="top">
<p><font size="2">SharePoint Server Search</font></p>
</td>
<td valign="top">
<p><font size="2">· Search Administration</font></p>
<p><font size="2">· Crawl</font></p>
<p><font size="2">· Property</font></p>
</td>
<td valign="top">
<p><font size="2">· Recreate</font></p>
<p><font size="2">· SharePoint backup and restore</font></p>
</td>
<td valign="top">
<p><font size="2">No</font></p>
</td>
<td valign="top">
<p><font size="2">· The index partitions are copied to the new farm and then restored on the new database server.</font></p>
<p><font size="2">· The search topology is exported and then restored to the new server.</font></p>
</td>
</tr>
<tr>
<td valign="top">
<p><font size="2">Secure Store </font></p>
</td>
<td valign="top">
<p><font size="2">Secure Store</font></p>
</td>
<td valign="top">
<p><font size="2">· Database attach</font></p>
<p><font size="2">· Recreate</font></p>
</td>
<td valign="top"><font size="2"></font></td>
<td valign="top">
<p><font size="2">The pass phrase for the new database must be identical to the source database. </font></p>
</td>
</tr>
<tr>
<td valign="top">
<p><font size="2">Security Token Service</font></p>
</td>
<td valign="top"><font size="2"></font></td>
<td valign="top">
<p><font size="2">Recreate</font></p>
</td>
<td valign="top"><font size="2"></font></td>
<td valign="top"><font size="2"></font></td>
</tr>
<tr>
<td valign="top">
<p><font size="2">State Service</font></p>
</td>
<td valign="top">
<p><font size="2">State</font></p>
</td>
<td valign="top">
<p><font size="2">Recreate</font></p>
</td>
<td valign="top">
<p><font size="2">No</font></p>
</td>
<td valign="top"><font size="2"></font></td>
</tr>
<tr>
<td valign="top">
<p><font size="2">Usage and Health Data Collection</font></p>
</td>
<td valign="top">
<p><font size="2">Logging</font></p>
</td>
<td valign="top">
<p><font size="2">Recreate</font></p>
</td>
<td valign="top">
<p><font size="2">No</font></p>
</td>
<td valign="top"><font size="2"></font></td>
</tr>
<tr>
<td valign="top">
<p><font size="2">User Profile</font></p>
</td>
<td valign="top">
<p><font size="2">· Profile</font></p>
<p><font size="2">· Synchronization</font></p>
<p><font size="2">· Social tagging</font></p>
</td>
<td valign="top">
<p><font size="2">· Database attach</font></p>
<p><font size="2">· Recreate</font></p>
</td>
<td valign="top"><font size="2"></font></td>
<td valign="top">
<p><font size="2">Profile requires the restoration of an encrypted FIM key</font></p>
</td>
</tr>
<tr>
<td valign="top">
<p><font size="2">Visio Graphics Service</font></p>
</td>
<td valign="top">
<p><font size="2">None</font></p>
</td>
<td valign="top">
<p><font size="2">not available</font></p>
</td>
<td valign="top">
<p><font size="2">not available</font></p>
</td>
<td valign="top"><font size="2"></font></td>
</tr>
<tr>
<td valign="top">
<p><font size="2">Web Analytics Service</font></p>
</td>
<td valign="top">
<p><font size="2">· Staging</font></p>
<p><font size="2">· Reporting</font></p>
</td>
<td valign="top">
<p><font size="2">· Database attach</font></p>
<p><font size="2">· Recreate</font></p>
</td>
<td valign="top"><font size="2"></font></td>
<td valign="top"><font size="2"></font></td>
</tr>
<tr>
<td valign="top">
<p><font size="2">Word Automation Service</font></p>
</td>
<td valign="top">
<p><font size="2">Word Automation Services</font></p>
</td>
<td valign="top">
<p><font size="2">Recreate</font></p>
</td>
<td valign="top">
<p><font size="2">not available</font></p>
</td>
<td valign="top"><font size="2"></font></td>
</tr>
<tr>
<td valign="top">
<p><font size="2">Word Viewing Service</font></p>
</td>
<td valign="top">
<p><font size="2">None</font></p>
</td>
<td valign="top">
<p><font size="2">not available</font></p>
</td>
<td valign="top">
<p><font size="2">not available</font></p>
</td>
<td valign="top">&#160;</td>
</tr>
</tbody>
</table>
<br /> Tagged: <a href='http://bramdejager.wordpress.com/tag/it-pro/'>IT Pro</a>, <a href='http://bramdejager.wordpress.com/tag/service-application/'>Service Application</a>, <a href='http://bramdejager.wordpress.com/tag/sharepoint-2010/'>SharePoint 2010</a>, <a href='http://bramdejager.wordpress.com/tag/upgrade/'>Upgrade</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/171/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=171&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2011/10/10/approaches-to-migrating-your-service-applications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>
	</item>
		<item>
		<title>Display exceptions in application pages</title>
		<link>http://bramdejager.wordpress.com/2011/10/05/display-exceptions-in-application-pages/</link>
		<comments>http://bramdejager.wordpress.com/2011/10/05/display-exceptions-in-application-pages/#comments</comments>
		<pubDate>Wed, 05 Oct 2011 06:50:07 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[SharePoint 2010]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/2011/10/05/display-exceptions-in-application-pages/</guid>
		<description><![CDATA[SharePoint OOTB displays user friendly an error page to end users. As a developer we want the .NET error page displaying detailed information about the exception thrown. By updating the web.config file with the following parameters the detailed information is displayed. &#60;configuration&#62; &#60;SharePoint&#62; &#60;SafeMode CallStack=&#34;true&#34; /&#62; &#60;/SharePoint&#62; &#60;system.web&#62; &#60;customErrors mode=&#34;Off&#34; /&#62; &#60;compilation debug=&#34;true&#34; /&#62; &#60;/system.web&#62; [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=170&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>SharePoint OOTB displays user friendly an error page to end users. As a developer we want the .NET error page displaying detailed information about the exception thrown. By updating the <em>web.config</em> file with the following parameters the detailed information is displayed. </p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:ddd8e636-2f4a-4abe-9ef7-97d8eea92f59" class="wlWriterEditableSmartContent">
<pre style="width:598px;height:200px;background-color:White;overflow:hidden;"><div><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">configuration</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
    </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">SharePoint</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
        </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">SafeMode </span><span style="color:#FF0000;">CallStack</span><span style="color:#0000FF;">=&quot;true&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">/&gt;</span><span style="color:#000000;">
    </span><span style="color:#0000FF;">&lt;/</span><span style="color:#800000;">SharePoint</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
    </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">system.web</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
        </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">customErrors </span><span style="color:#FF0000;">mode</span><span style="color:#0000FF;">=&quot;Off&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">/&gt;</span><span style="color:#000000;">
        </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">compilation </span><span style="color:#FF0000;">debug</span><span style="color:#0000FF;">=&quot;true&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">/&gt;</span><span style="color:#000000;">
    </span><span style="color:#0000FF;">&lt;/</span><span style="color:#800000;">system.web</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
</span><span style="color:#0000FF;">&lt;/</span><span style="color:#800000;">configuration</span><span style="color:#0000FF;">&gt;</span></div></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<p>By only changing the <em>web.config</em> file in the web application root, located in “C:\inetpub\wwwRoot\wss\&lt;webapp&gt;”, will not display detailed information in application pages (a.k.a. layouts pages). </p>
<blockquote>
<p>There is more than one web.config file! Check your SharePoint Root folder.</p>
</blockquote>
<p>Update the configuration show above in the “…\14\TEMPLATE\LAYOUTS\web.config” file and this will result in a .NET error page for application pages.</p>
<br /> Tagged: <a href='http://bramdejager.wordpress.com/tag/development/'>Development</a>, <a href='http://bramdejager.wordpress.com/tag/sharepoint-2010/'>SharePoint 2010</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/170/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=170&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2011/10/05/display-exceptions-in-application-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>
	</item>
		<item>
		<title>Build your own custom administration</title>
		<link>http://bramdejager.wordpress.com/2011/09/30/build-your-own-custom-administration/</link>
		<comments>http://bramdejager.wordpress.com/2011/09/30/build-your-own-custom-administration/#comments</comments>
		<pubDate>Fri, 30 Sep 2011 07:34:13 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[CustomAction]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[Web Template]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/?p=144</guid>
		<description><![CDATA[Managing application specific configuration is mostly done within an application page (aka layouts page). Navigating to these pages is done via custom actions, which adds links to for example the Site Settings page. The challenge starts when the number of application pages grows. Do you keep adding them to the Site Settings page? Do you [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=144&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Managing application specific configuration is mostly done within an application page (aka layouts page). Navigating to these pages is done via custom actions, which adds links to for example the Site Settings page. The challenge starts when the number of application pages grows. Do you keep adding them to the Site Settings page? Do you show them on all Site Settings pages in the web application of every web? </p>
<p>What you need is a centralized administration, like the Central Administration, controlling your application configuration. The Central Administration in SharePoint has two sorts of pages. The homepage (default.aspx) providing an overview and pages like <em>Application Management </em>showing a collection of links related to <em>Application Management</em>. </p>
<p><a href="http://bramdejager.files.wordpress.com/2011/10/centraladministration_homepage.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="CentralAdministration_Homepage" border="0" alt="CentralAdministration_Homepage" src="http://bramdejager.files.wordpress.com/2011/10/centraladministration_homepage_thumb.png?w=244&#038;h=153" width="244" height="153" /></a>&#160;<a href="http://bramdejager.files.wordpress.com/2011/10/centraladministration_applicationmanagement.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="CentralAdministration_ApplicationManagement" border="0" alt="CentralAdministration_ApplicationManagement" src="http://bramdejager.files.wordpress.com/2011/10/centraladministration_applicationmanagement_thumb.png?w=244&#038;h=153" width="244" height="153" /></a></p>
<p>It’s easy to build your own custom administration site. The image below shows my own administration site. Do you see the resemblance?</p>
<p><a href="http://bramdejager.files.wordpress.com/2011/10/applicationadministration_homepage.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="ApplicationAdministration_Homepage" border="0" alt="ApplicationAdministration_Homepage" src="http://bramdejager.files.wordpress.com/2011/10/applicationadministration_homepage_thumb.png?w=244&#038;h=153" width="244" height="153" /></a>&#160;<a href="http://bramdejager.files.wordpress.com/2011/10/applicationadministration_security.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="ApplicationAdministration_Security" border="0" alt="ApplicationAdministration_Security" src="http://bramdejager.files.wordpress.com/2011/10/applicationadministration_security_thumb.png?w=244&#038;h=153" width="244" height="153" /></a></p>
<p>Creating these pages is pretty straightforward when using the <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.featurelinksections.aspx" target="_blank">FeatureLinkSections</a> class together with “LinkSectionLevel1.ascx” and “LinkSectionLevel2.ascx” controls. This web control handles the rendering of the links based on enabled features in the current context. The links are provisioned by custom actions as part of a (enabled) feature. </p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:0b6a0400-08da-45d9-b74b-b4fb27af511d" class="wlWriterEditableSmartContent">
<pre style="width:526px;height:127px;background-color:White;overflow:auto;"><div><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">SharePoint:FeatureLinkSections </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;SettingLinksV4&quot;</span><span style="color:#FF0000;">
    CellPadding</span><span style="color:#0000FF;">=&quot;4&quot;</span><span style="color:#FF0000;"> CellSpacing</span><span style="color:#0000FF;">=&quot;4&quot;</span><span style="color:#FF0000;">
    Location</span><span style="color:#0000FF;">=&quot;Contoso.SharePoint.AdminPage&quot;</span><span style="color:#FF0000;">
    LinkSectionControl</span><span style="color:#0000FF;">=&quot;LinkSectionLevel1.ascx&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">/&gt;</span></div></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<p>The <em>Location </em>attribute is an unique identifier indicating the location where links are provisioned. The location is used in the custom action XML (shown below) to point to the location in the <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.featurelinksections.aspx" target="_blank">FeatureLinkSections</a> control.</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:6df023c5-3a5a-40cc-bd29-87cf27b8dc4a" class="wlWriterEditableSmartContent">
<pre style="width:598px;height:448px;background-color:White;overflow:auto;"><div><span style="color:#000000;">  </span><span style="color:#008000;">&lt;!--</span><span style="color:#008000;"> Admin Page - Security </span><span style="color:#008000;">--&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">CustomActionGroup
     </span><span style="color:#FF0000;">Id</span><span style="color:#0000FF;">=&quot;ContosoSecurity&quot;</span><span style="color:#FF0000;">
     Title</span><span style="color:#0000FF;">=&quot;Contoso Security&quot;</span><span style="color:#FF0000;">
     Location</span><span style="color:#0000FF;">=&quot;Contoso.SharePoint.AdminPage&quot;</span><span style="color:#FF0000;">
     Sequence</span><span style="color:#0000FF;">=&quot;10&quot;</span><span style="color:#FF0000;">
     Description</span><span style="color:#0000FF;">=&quot;&quot;</span><span style="color:#FF0000;">
     ImageUrl</span><span style="color:#0000FF;">=&quot;/_layouts/images/
         SiteSettings_UsersAndPermissions_48x48.png&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">/&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">CustomAction
    </span><span style="color:#FF0000;">Id</span><span style="color:#0000FF;">=&quot;ContosoAdmins&quot;</span><span style="color:#FF0000;">
    GroupId</span><span style="color:#0000FF;">=&quot;ContosoSecurity&quot;</span><span style="color:#FF0000;">
    Location</span><span style="color:#0000FF;">=&quot;Contoso.SharePoint.AdminPage&quot;</span><span style="color:#FF0000;">
    Rights</span><span style="color:#0000FF;">=&quot;EnumeratePermissions,BrowseUserInfo&quot;</span><span style="color:#FF0000;">
    Sequence</span><span style="color:#0000FF;">=&quot;10&quot;</span><span style="color:#FF0000;">
    Title</span><span style="color:#0000FF;">=&quot;Contoso Administrators&quot;</span><span style="color:#FF0000;">
    Description</span><span style="color:#0000FF;">=&quot;...&quot;</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
    </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">UrlAction
        </span><span style="color:#FF0000;">Url</span><span style="color:#0000FF;">=&quot;_layouts/people.aspx&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">/&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;/</span><span style="color:#800000;">CustomAction</span><span style="color:#0000FF;">&gt;</span></div></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<p>The <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.featurelinksections.aspx" target="_blank">FeatureLinkSections</a> control uses two views controlled by the <em>LinkSectionControl</em> attribute.</p>
<h5><strong>LinkSectionLinks1.ascx</strong></h5>
<p>Shows a 48&#215;48 icon for the group and links are placed below each other. </p>
<p><a href="http://bramdejager.files.wordpress.com/2011/10/linksectionlinks1.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="LinkSectionLinks1" border="0" alt="LinkSectionLinks1" src="http://bramdejager.files.wordpress.com/2011/10/linksectionlinks1_thumb.png?w=244&#038;h=58" width="244" height="58" /></a></p>
<h5><strong>LinkSectionLinks2.ascx</strong></h5>
<p>Shows a 32&#215;32 icon for the group and links are delimited by the “|” character. <a href="http://bramdejager.files.wordpress.com/2011/10/linksectionlinks2.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;float:left;border-top:0;border-right:0;padding-top:0;" title="LinkSectionLinks2" border="0" alt="LinkSectionLinks2" align="left" src="http://bramdejager.files.wordpress.com/2011/10/linksectionlinks2_thumb.png?w=244&#038;h=42" width="244" height="42" /></a> </p>
<p>&#160;</p>
<h2>Visual Studio solution</h2>
<p>I included the Visual Studio project containing the following components:</p>
<ul>
<li>AdminPages_Web feature: Web scoped feature with event receiver updating the welcome page and quicklaunch. The feature contains the following components:
<ul>
<li>AdminPage module </li>
<li>AdminPageActions custom actions </li>
<li>PBWebTemplate element </li>
<li>Event receiver </li>
</ul>
</li>
<li>AdminSite_Site feature: Site collection scoped feature containing the web template for creating the web. The feature contains the following components:
<ul>
<li>AdminWebTemplate web template </li>
</ul>
</li>
<li>AdminPageActions custom actions: All custom actions containing all links displayed in the central adminstration. </li>
<li>AdminPages module: Provisions the adminpage.aspx and security.aspx pages in the web root folder. </li>
<li>AdminWebTemplate web template: Contains the web template for creating the web. </li>
<li>PBWebTemplate element: Property bag element with unique web template id </li>
</ul>
<p><a href="http://sp2010admin.codeplex.com/" target="_blank"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;float:left;border-top:0;border-right:0;padding-top:0;" title="Download" border="0" alt="Download" align="left" src="http://bramdejager.files.wordpress.com/2011/10/download1.png?w=71&#038;h=71" width="71" height="71" /></a>You can download the WSP package and source code at <a href="http://sp2010admin.codeplex.com/" target="_blank">http://sp2010admin.codeplex.com/</a>.</p>
<br /> Tagged: <a href='http://bramdejager.wordpress.com/tag/customaction/'>CustomAction</a>, <a href='http://bramdejager.wordpress.com/tag/development/'>Development</a>, <a href='http://bramdejager.wordpress.com/tag/sharepoint-2010/'>SharePoint 2010</a>, <a href='http://bramdejager.wordpress.com/tag/web-template/'>Web Template</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/144/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=144&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2011/09/30/build-your-own-custom-administration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2011/10/centraladministration_homepage_thumb.png" medium="image">
			<media:title type="html">CentralAdministration_Homepage</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2011/10/centraladministration_applicationmanagement_thumb.png" medium="image">
			<media:title type="html">CentralAdministration_ApplicationManagement</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2011/10/applicationadministration_homepage_thumb.png" medium="image">
			<media:title type="html">ApplicationAdministration_Homepage</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2011/10/applicationadministration_security_thumb.png" medium="image">
			<media:title type="html">ApplicationAdministration_Security</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2011/10/linksectionlinks1_thumb.png" medium="image">
			<media:title type="html">LinkSectionLinks1</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2011/10/linksectionlinks2_thumb.png" medium="image">
			<media:title type="html">LinkSectionLinks2</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2011/10/download1.png" medium="image">
			<media:title type="html">Download</media:title>
		</media:content>
	</item>
		<item>
		<title>Setting Taxonomy field value from a Sandboxed Solution</title>
		<link>http://bramdejager.wordpress.com/2011/08/31/setting-taxonomy-field-value-from-a-sandboxed-solution/</link>
		<comments>http://bramdejager.wordpress.com/2011/08/31/setting-taxonomy-field-value-from-a-sandboxed-solution/#comments</comments>
		<pubDate>Wed, 31 Aug 2011 19:48:03 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Managed Metadata Service]]></category>
		<category><![CDATA[Sandbox Solution]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[Taxonomy]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/2011/08/31/setting-taxonomy-field-value-from-a-sandboxed-solution/</guid>
		<description><![CDATA[Taxonomy is one of those topics which has been extensively discussed. Andrew Connell did a series of posts about SharePoint 2010 Managed Metadata which is worth reading. Although the huge number of blog posts and forum discussions you can’t find much regarding updating a taxonomy field value for a list item from a sandboxed solution. [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=108&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Taxonomy is one of those topics which has been extensively discussed. Andrew Connell did a series of posts about <a href="http://www.andrewconnell.com/blog/archive/2011/06/15/sharepoint-2010-managed-metadata-about-the-series.aspx" target="_blank">SharePoint 2010 Managed Metadata</a> which is worth reading. Although the huge number of blog posts and forum discussions you can’t find much regarding updating a taxonomy field value for a list item from a sandboxed solution. </p>
<p>I wanted to create a sandboxed solution which loops all lists and updates the field values of items. Among these field values are taxonomy fields. Normally you would use <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.taxonomy.taxonomyfield.setfieldvalue.aspx" target="_blank">TaxonomyField.SetFieldValue()</a> for updating the field value. But within a sandboxed solution you are not allowed to use the <a href="http://msdn.microsoft.com/en-us/library/ee583437.aspx" target="_blank">Microsoft.SharePoint.Taxonomy</a> namespace. </p>
<blockquote><p>If you are interested in the outcome: You <u>CAN’T </u>set the taxonomy field value for an item from a sandboxed solution. When updating a taxonomy field value <u>always</u> use the TaxonomyField.SetFieldValue() method. If you want to know why, enjoy reading!</p>
</blockquote>
<h1>Research</h1>
<p>After reading about taxonomy and taking a closer look at what is actually stored in a list, I noticed a couple of things:</p>
<ul>
<li>When creating a taxonomy field, it actually creates 2 fields </li>
<ul>
<li><a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfieldmultilinetext.aspx" target="_blank">Note</a> (SPFieldMultiLineText) field: Shown in the list as value</li>
<li><a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.taxonomy.taxonomyfield.aspx" target="_blank">TaxonomyField</a> field: Hidden field in the list</li>
</ul>
<li>The actual value stored in the hidden TaxonomyField should look like “&lt;wssid&gt;;#&lt;guid&gt;|&lt;label&gt;”</li>
<li>The <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.taxonomy.taxonomyfieldvalue.wssid.aspx" target="_blank">WssId</a> is the list item ID for the local stored TaxonomyHiddenList, which is located at <u><a href="http://&lt;applicationurl&gt;/sites/&lt;sitecollection&gt;/lists/taxonomyhiddenlist/" rel="nofollow">http://&lt;applicationurl&gt;/sites/&lt;sitecollection&gt;/lists/taxonomyhiddenlist/</a></u></li>
<li>When WssId is –1 it means the term is not provisioned in the TaxonomyHiddenList</li>
<li>Calling <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.taxonomy.taxonomyfieldvalue.validatedstring.aspx" target="_blank">TaxonomyFieldValue.ValidatedString</a> triggers an update on the TaxonomyHiddenList to provision the term and returns the validated string “&lt;wssid&gt;;#&lt;guid&gt;|&lt;label&gt;”</li>
<li>‘The guid and label are those of an existing term in the Term Store</li>
<li>The delimiter “;#” between wssid and guid is <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfieldmulticolumnvalue.delimiter.aspx" target="_blank">SPFieldMultiColumnValue.Delimiter</a></li>
<li>The delimiter “|” between guid and label is <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.taxonomy.taxonomyfield.taxonomyguidlabeldelimiter.aspx" target="_blank">TaxonomyField.TaxonomyGuidLabelDelimiter</a>.</li>
</ul>
<h2></h2>
<h2>Testing approach</h2>
<p>The general idea for figuring it this out was creating a farm solution first and get everything up and running. When successful completing the farm solution, rework everything to a sandboxed solution.</p>
<p>The approach for testing is split up into 2 parts and every part has 4 tests. Part 1 is updating list item properties, part 2 is updating document properties. The pre-requisite for the test is a valid term (guid and label) and the term exists in the TaxonomyHiddenList. </p>
<p>During the tests I’ll talk about the two fields mentioned earlier. For ease of reading let’s name the Note field “taxField” and the TaxonomyField “taxHiddenField”.</p>
<p>Every part consist of 4 tests:</p>
<ol>
<li>TaxonomyField.SetFieldValue(item, term)</li>
<li>item[taxField.Title] with value “&lt;wssid&gt;;#&lt;guid&gt;|&lt;label&gt;”</li>
<li>item[taxHiddenField.Title] with value “&lt;wssid&gt;;#&lt;guid&gt;|&lt;label&gt;”</li>
<li>item[taxHiddenField.Title] with value “&lt;guid&gt;|&lt;label&gt;”</li>
</ol>
<p>I’ll spare the details and focus on the outcome. </p>
<h2>Part 1: Updating list item properties</h2>
<p>When updating a list item the assumption is that the TaxonomyField.SetFieldValue() is the preferred way of updating a taxonomy field value. When updating a list item this results in updating both the taxField and taxHiddenField. </p>
<p>All four tests result in updating both fields. Although it seems to exclude the WssId in the field value of taxField and taxHiddenField for tests #1 and #4. This looks weird to me for test #1, because looking internally to the decompiled sources, Microsoft uses the ValidatedString value which includes the WssId. </p>
<p>The same result as test #1 is only achieved with test #4, because tests #2 &amp; #3 includes the WssId in the taxHiddenField. This makes sense because we are explicitly updating the field value with the WssId. </p>
<p>For now it look like we are able to update the taxonomy field value in different ways. This is what we would like, because we could use the    <br /><em>item[taxField.Title] = “&lt;wssid&gt;;#&lt;guid&gt;|&lt;label&gt;” </em>within a sandboxed solution. Although it’s not completely consistent behavior.</p>
<h2>Part 2: Updating document properties</h2>
<p>Once again the assumption is updating a document via TaxonomyField.SetFieldValue() is the preferred way of updating the taxonomy field value. This results in both updating the taxField and taxHiddenField. </p>
<p>When running tests #2, #3 and #4 we run into issues. After the first run of the test everything looks OK. When running the test for a second and third time the taxField and taxHiddenField are out of sync. Both contain different values resulting in unexpected behavior!</p>
<h2>Conclusion</h2>
<p>I had planned to test the sandboxed solution, but didn’t got to it because the results of updating the document properties (part 2) from a farm solution were pretty clear. I could not find out what magic happens during the TaxonomyField.SetFieldValue(). But I did find out that something is happening, which is important for updating the list item or document properties! </p>
<blockquote><p>In other words there is no other way of updating the document properties for taxonomy fields than      <br />TaxonomyField.SetFieldValue(). </p>
</blockquote>
<p>Remember don’t ever use the <em>item[“&lt;taxonomy field name”] = “&lt;wssid&gt;;#&lt;guid&gt;|&lt;label&gt;”</em> statement for updating a taxonomy field value because you can’t rely on it!</p>
<br /> Tagged: <a href='http://bramdejager.wordpress.com/tag/managed-metadata-service/'>Managed Metadata Service</a>, <a href='http://bramdejager.wordpress.com/tag/sandbox-solution/'>Sandbox Solution</a>, <a href='http://bramdejager.wordpress.com/tag/sharepoint-2010/'>SharePoint 2010</a>, <a href='http://bramdejager.wordpress.com/tag/taxonomy/'>Taxonomy</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/108/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=108&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2011/08/31/setting-taxonomy-field-value-from-a-sandboxed-solution/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>
	</item>
		<item>
		<title>Word text generator for Lorem Ipsum</title>
		<link>http://bramdejager.wordpress.com/2011/08/22/word-text-generator-for-lorem-ipsum/</link>
		<comments>http://bramdejager.wordpress.com/2011/08/22/word-text-generator-for-lorem-ipsum/#comments</comments>
		<pubDate>Mon, 22 Aug 2011 07:35:48 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/2011/08/22/word-text-generator-for-lorem-ipsum/</guid>
		<description><![CDATA[Regularly I need Word documents with example text. Word has a example text generator feature which creates text like “Lorem ipsum dolor sit amet, consectetuer …” or “On the Insert tab, the galleries include items that are designed …” or “The quick brown fox jumps over the lazy dog. The quick brown fox …”. Simply [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=107&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Regularly I need Word documents with example text. Word has a example text generator feature which creates text like “<em>Lorem ipsum dolor sit amet, consectetuer …</em>” or “<em>On the Insert tab, the galleries include items that are designed …</em>” or “<em>The quick brown fox jumps over the lazy dog. The quick brown fox …</em>”.</p>
<p>Simply start Word and type <em>=lorem(3,10)</em> and press <em>Enter</em>.&#160; </p>
<p><a href="http://bramdejager.files.wordpress.com/2011/08/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="Word 2010, lorem ipsum function" border="0" alt="Word 2010, lorem ipsum function" src="http://bramdejager.files.wordpress.com/2011/08/image_thumb.png?w=644&#038;h=233" width="644" height="233" /></a></p>
<p>This results in:</p>
<p><a href="http://bramdejager.files.wordpress.com/2011/08/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="Word 2010, lorem ipsum result" border="0" alt="Word 2010, lorem ipsum result" src="http://bramdejager.files.wordpress.com/2011/08/image_thumb1.png?w=644&#038;h=416" width="644" height="416" /></a></p>
<p>There are some options you can use:</p>
<ul>
<li><strong>=lorem(p, l)</strong> where p is the number of paragraphs and l the number of lines per paragraph. </li>
<li><strong>=rand(p,l)</strong> provides the same functionality but using different text “<em>On the Insert tab, the galleries include items that are designed …</em>”</li>
<li><strong>=rand.old(p,l)</strong> also provides the same functionality using different text “<em>The quick brown fox jumps over the lazy dog. The quick brown fox …</em>”</li>
</ul>
<p>Maybe you already knew, maybe not. I was looking for the “<em>The quick brown fox jumps over the lazy dog. The quick brown fox …</em>” text and thought lets share! </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/107/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=107&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2011/08/22/word-text-generator-for-lorem-ipsum/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2011/08/image_thumb.png" medium="image">
			<media:title type="html">Word 2010, lorem ipsum function</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2011/08/image_thumb1.png" medium="image">
			<media:title type="html">Word 2010, lorem ipsum result</media:title>
		</media:content>
	</item>
		<item>
		<title>Out of the box Field and ContentType IDs</title>
		<link>http://bramdejager.wordpress.com/2011/06/24/out-of-the-box-field-and-contenttype-ids/</link>
		<comments>http://bramdejager.wordpress.com/2011/06/24/out-of-the-box-field-and-contenttype-ids/#comments</comments>
		<pubDate>Fri, 24 Jun 2011 05:34:41 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[SharePoint 2010]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/2011/06/24/out-of-the-box-field-and-contenttype-ids/</guid>
		<description><![CDATA[SharePoint keeps amazing me, even after working more than 6 years with the product. The product is this big that’s it is almost impossible to know all. This is one of those things. I simply did see it before. When working on a “Yet Another SharePoint Gem” as Robin Meure called it. I stumbled on [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=101&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>SharePoint keeps amazing me, even after working more than 6 years with the product. The product is this big that’s it is almost impossible to know all. This is one of those things. I simply did see it before. </p>
<p>When working on a “<a href="http://community.zevenseas.com/Blogs/Robin/Lists/Posts/Post.aspx?ID=133" target="_blank">Yet Another SharePoint Gem</a>” as Robin Meure called it. I stumbled on the <a href="http://msdn.microsoft.com/en-us/library/ms435407.aspx" target="_blank"><strong>SPBuiltInFieldId</strong></a> class and <a href="http://msdn.microsoft.com/en-us/library/ms461338(v=office.14).aspx" target="_blank"><strong>SPBuiltInContentTypeId</strong></a> class. When retrieving information like the CreatedBy field (also known as Author) it is very useful. Also when checking whether a item is based on a out-of-the-box (OOTB) content type. See exaples below.</p>
<p><strong>Update</strong>: in addition to both SharePoint 2010 Foundation classes SharePoint Server has <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.publishing.contenttypeid.aspx" target="_blank"><strong>ContentTypeId</strong></a> class and <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.publishing.fieldid.aspx" target="_blank"><strong>FieldId</strong></a> class. Both are part of the Microsoft.SharePoint.Publishing namespace. Thanks to Jeffrey Schmitz (@DJeffa). </p>
<p>Here an example for the extension of the SPListItem class to retrieve the Author:</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:adab23b1-713b-4d0e-9181-1515f8192f90" class="wlWriterEditableSmartContent">
<pre style="width:515px;height:251px;background-color:#DADADA;white-space:pre-wrap;word-wrap:break-word;overflow:visible;"><div><span style="color:#0000FF;">public</span><span style="color:#000000;"> </span><span style="color:#0000FF;">static</span><span style="color:#000000;"> </span><span style="color:#0000FF;">class</span><span style="color:#000000;"> SPListItemExtentions
{
    </span><span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;summary&gt;</span><span style="color:#008000;">
    </span><span style="color:#808080;">///</span><span style="color:#008000;"> Gets the author of a list item.
    </span><span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;/summary&gt;</span><span style="color:#008000;">
    </span><span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;param name=&quot;item&quot;&gt;</span><span style="color:#008000;">Extended class.</span><span style="color:#808080;">&lt;/param&gt;</span><span style="color:#008000;">
    </span><span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;returns&gt;</span><span style="color:#008000;">Returns the author of the list item.</span><span style="color:#808080;">&lt;/returns&gt;</span><span style="color:#808080;">
</span><span style="color:#000000;">    </span><span style="color:#0000FF;">public</span><span style="color:#000000;"> </span><span style="color:#0000FF;">static</span><span style="color:#000000;"> SPUser GetAuthor(</span><span style="color:#0000FF;">this</span><span style="color:#000000;"> SPListItem item)
    {
        </span><span style="color:#0000FF;">string</span><span style="color:#000000;"> user </span><span style="color:#000000;">=</span><span style="color:#000000;"> item[SPBuiltInFieldId.Author].ToString();
        </span><span style="color:#0000FF;">int</span><span style="color:#000000;"> userId </span><span style="color:#000000;">=</span><span style="color:#000000;"> Convert.ToInt16(user.Split(</span><span style="color:#800000;">'</span><span style="color:#800000;">;</span><span style="color:#800000;">'</span><span style="color:#000000;">)[</span><span style="color:#800080;">0</span><span style="color:#000000;">]);
        </span><span style="color:#0000FF;">return</span><span style="color:#000000;"> item.Web.AllUsers.GetByID(userId);
    }
}
</span></div></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<p>Another example for checking the base content type:</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:1a631871-e65b-4dce-b629-5683206b4914" class="wlWriterEditableSmartContent">
<pre style="width:513px;height:144px;background-color:#DADADA;white-space:pre-wrap;word-wrap:break-word;overflow:visible;"><div><span style="color:#000000;">SPListItem item </span><span style="color:#000000;">=</span><span style="color:#000000;"> list.GetItemById(</span><span style="color:#800080;">1</span><span style="color:#000000;">);
SPListItem topic </span><span style="color:#000000;">=</span><span style="color:#000000;"> item;

</span><span style="color:#008000;">//</span><span style="color:#008000;"> If item isn't the dicussion topic, get topic!</span><span style="color:#008000;">
</span><span style="color:#0000FF;">if</span><span style="color:#000000;"> (</span><span style="color:#000000;">!</span><span style="color:#000000;">item.ContentType.Id.IsChildOf(SPBuiltInContentTypeId.Discussion))
    topic </span><span style="color:#000000;">=</span><span style="color:#000000;"> GetTopicItem(item);
</span></div></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<br /> Tagged: <a href='http://bramdejager.wordpress.com/tag/development/'>Development</a>, <a href='http://bramdejager.wordpress.com/tag/sharepoint-2010/'>SharePoint 2010</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/101/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=101&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2011/06/24/out-of-the-box-field-and-contenttype-ids/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>
	</item>
		<item>
		<title>Upgrading MOSS2007 to SharePoint 2010 results in navigation error</title>
		<link>http://bramdejager.wordpress.com/2011/06/06/upgrading-moss2007-to-sharepoint-2010-results-in-navigation-error/</link>
		<comments>http://bramdejager.wordpress.com/2011/06/06/upgrading-moss2007-to-sharepoint-2010-results-in-navigation-error/#comments</comments>
		<pubDate>Mon, 06 Jun 2011 18:12:11 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[Upgrade]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/2011/06/06/upgrading-moss2007-to-sharepoint-2010-results-in-navigation-error/</guid>
		<description><![CDATA[Having issues with navigation after an upgrade from MOSS2007 to SharePoint 2010 using the publishing template? We did! After an upgrade the navigation returned errors instead of menu items. We encountered these issues when the Dutch language pack was installed, because the Pages library has been translated/renamed to “Paginas”. Microsoft has provided a solution described [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=100&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Having issues with navigation after an upgrade from MOSS2007 to SharePoint 2010 using the publishing template? We did! After an upgrade the navigation returned errors instead of menu items. We encountered these issues when the Dutch language pack was installed, because the Pages library has been translated/renamed to “Paginas”.</p>
<p><a href="http://bramdejager.files.wordpress.com/2011/06/upgradenavigationerrorsdutchlanguagepack_small.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="SharePoint Upgrade navigation errors Dutch Language Pack" border="0" alt="SharePoint Upgrade navigation errors Dutch Language Pack" src="http://bramdejager.files.wordpress.com/2011/06/upgradenavigationerrorsdutchlanguagepack_small_thumb.png?w=644&#038;h=278" width="644" height="278" /></a></p>
<p>Microsoft has provided a solution described in <a href="http://support.microsoft.com/default.aspx?scid=kb;en-US;2484317" target="_blank">KB 2484317</a>. The root cause of the issue is described as: </p>
<blockquote><p>With Microsoft Office SharePoint Server 2007 we stored new Publishing Pages in a library called Pages. In SharePoint 2010 it has been translated to Paginas as the default for Dutch. The navigation code assumes that any changes from the default are noted in a specific property, which is not the case for upgraded Dutch sites that have been created with the 2007 default name.</p>
</blockquote>
<p>The solution to this problem is pretty easy, a simple PowerShell script will restore your navigation. </p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:9adb5669-cea4-43c3-9c93-640a1233618e" class="wlWriterEditableSmartContent">
<pre style="width:525px;height:420px;background-color:#DADADA;white-space:pre-wrap;word-wrap:break-word;overflow:visible;"><div><span style="color:#800080;">$site</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> Get</span><span style="color:#000000;">-</span><span style="color:#000000;">SPSite(</span><span style="color:#800000;">&quot;</span><span style="color:#800000;">http://WebApplicationURL</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">)
</span><span style="color:#0000FF;">foreach</span><span style="color:#000000;"> (</span><span style="color:#800080;">$web</span><span style="color:#000000;"> </span><span style="color:#0000FF;">in</span><span style="color:#000000;"> </span><span style="color:#800080;">$site</span><span style="color:#000000;">.AllWebs)
{
    Write</span><span style="color:#000000;">-</span><span style="color:#000000;">Output(</span><span style="color:#800000;">&quot;</span><span style="color:#800000;">web:</span><span style="color:#800000;">&quot;</span><span style="color:#000000;"> </span><span style="color:#000000;">+</span><span style="color:#000000;"> </span><span style="color:#800080;">$web</span><span style="color:#000000;">.ServerRelativeUrl);
    </span><span style="color:#800080;">$pageslistid</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$web</span><span style="color:#000000;">.AllProperties[</span><span style="color:#800000;">&quot;</span><span style="color:#800000;">__PagesListId</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">]

    </span><span style="color:#0000FF;">if</span><span style="color:#000000;"> ([String]</span><span style="color:#000000;">::</span><span style="color:#000000;">IsNullOrEmpty(</span><span style="color:#800080;">$pageslistid</span><span style="color:#000000;">))
    {
        Write</span><span style="color:#000000;">-</span><span style="color:#000000;">Output(</span><span style="color:#800080;">$web</span><span style="color:#000000;">.ServerRelativeUrl </span><span style="color:#000000;">+</span><span style="color:#800000;">&quot;</span><span style="color:#800000;"> doesn't have a pages list id set - skipping</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">);
    }
    </span><span style="color:#0000FF;">else</span><span style="color:#000000;">
    {
        </span><span style="color:#800080;">$pageslistguid</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> new</span><span style="color:#000000;">-</span><span style="color:#000000;">object System.Guid(</span><span style="color:#800080;">$pageslistid</span><span style="color:#000000;">)
        </span><span style="color:#800080;">$pageslist</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$web</span><span style="color:#000000;">.Lists[</span><span style="color:#800080;">$pageslistguid</span><span style="color:#000000;">]
        </span><span style="color:#800080;">$pagesurl</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$pageslist</span><span style="color:#000000;">.RootFolder.Url
        </span><span style="color:#800080;">$pb</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$web</span><span style="color:#000000;">.Properties;
        </span><span style="color:#800080;">$pb</span><span style="color:#000000;">.Add(</span><span style="color:#800000;">&quot;</span><span style="color:#800000;">__PagesListName</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">, </span><span style="color:#800080;">$pagesurl</span><span style="color:#000000;">);
        </span><span style="color:#800080;">$pb</span><span style="color:#000000;">.Update();
        Write</span><span style="color:#000000;">-</span><span style="color:#000000;">Output(</span><span style="color:#800080;">$web</span><span style="color:#000000;">.ServerRelativeUrl </span><span style="color:#000000;">+</span><span style="color:#800000;">&quot;</span><span style="color:#800000;"> set pages list to </span><span style="color:#800000;">&quot;</span><span style="color:#000000;"> </span><span style="color:#000000;">+</span><span style="color:#000000;"> </span><span style="color:#800080;">$pagesurl</span><span style="color:#000000;">);
    }
}

</span></div></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<br /> Tagged: <a href='http://bramdejager.wordpress.com/tag/powershell/'>PowerShell</a>, <a href='http://bramdejager.wordpress.com/tag/sharepoint-2007/'>SharePoint 2007</a>, <a href='http://bramdejager.wordpress.com/tag/sharepoint-2010/'>SharePoint 2010</a>, <a href='http://bramdejager.wordpress.com/tag/upgrade/'>Upgrade</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/100/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=100&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2011/06/06/upgrading-moss2007-to-sharepoint-2010-results-in-navigation-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2011/06/upgradenavigationerrorsdutchlanguagepack_small_thumb.png" medium="image">
			<media:title type="html">SharePoint Upgrade navigation errors Dutch Language Pack</media:title>
		</media:content>
	</item>
		<item>
		<title>PowerShell script for retrieving AD user attributes based on display name</title>
		<link>http://bramdejager.wordpress.com/2011/05/30/powershell-script-for-retrieving-ad-user-attributes-based-on-display-name/</link>
		<comments>http://bramdejager.wordpress.com/2011/05/30/powershell-script-for-retrieving-ad-user-attributes-based-on-display-name/#comments</comments>
		<pubDate>Mon, 30 May 2011 12:00:58 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/2011/05/30/powershell-script-for-retrieving-ad-user-attributes-based-on-display-name/</guid>
		<description><![CDATA[Populating more than 1.000 people picker values based on users display name can be quite challenging when doing it manually. PowerShell to the rescue! This script reads a TXT-file with 1 users’ display name per line. Per user it searches the local directory and outputs the displayName and sAMAccountName in a semicolon separated line (easy [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=95&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Populating more than 1.000 people picker values based on users display name can be quite challenging when doing it manually. PowerShell to the rescue! </p>
<p>This script reads a TXT-file with 1 users’ display name per line. Per user it searches the local directory and outputs the displayName and sAMAccountName in a semicolon separated line (easy for Excel extraction).</p>
<p><strong>PowerShell script:</strong></p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:55379fec-5ae9-4b43-b97f-7d31f84c4fea" class="wlWriterEditableSmartContent">
<pre style="width:525px;height:464px;background-color:#DADADA;white-space:pre-wrap;word-wrap:break-word;overflow:auto;"><div><span style="color:#0000FF;">function</span><span style="color:#000000;"> ConvertUser(</span><span style="color:#800080;">$user</span><span style="color:#000000;">)
{
    </span><span style="color:#800080;">$search</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> New</span><span style="color:#000000;">-</span><span style="color:#000000;">Object DirectoryServices.DirectorySearcher([ADSI]“”)
    </span><span style="color:#800080;">$search</span><span style="color:#000000;">.</span><span style="color:#0000FF;">filter</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> “(</span><span style="color:#000000;">&amp;</span><span style="color:#000000;">(objectClass</span><span style="color:#000000;">=</span><span style="color:#000000;">user)(displayName</span><span style="color:#000000;">=</span><span style="color:#800080;">$user</span><span style="color:#000000;">))”
    </span><span style="color:#800080;">$results</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$search</span><span style="color:#000000;">.Findall()

    </span><span style="color:#0000FF;">foreach</span><span style="color:#000000;">(</span><span style="color:#800080;">$result</span><span style="color:#000000;"> </span><span style="color:#0000FF;">in</span><span style="color:#000000;"> </span><span style="color:#800080;">$results</span><span style="color:#000000;">){
        </span><span style="color:#800080;">$userEntry</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$result</span><span style="color:#000000;">.GetDirectoryEntry()
        Write</span><span style="color:#000000;">-</span><span style="color:#000000;">Output('' </span><span style="color:#000000;">+</span><span style="color:#000000;"> </span><span style="color:#800080;">$userEntry</span><span style="color:#000000;">.displayName </span><span style="color:#000000;">+</span><span style="color:#000000;"> ';' </span><span style="color:#000000;">+</span><span style="color:#000000;"> </span><span style="color:#800080;">$userEntry</span><span style="color:#000000;">.sAMAccountName)
    }
}

</span><span style="color:#0000FF;">function</span><span style="color:#000000;"> ConvertUsers
{
    </span><span style="color:#0000FF;">process</span><span style="color:#000000;">{
        </span><span style="color:#0000FF;">foreach</span><span style="color:#000000;">(</span><span style="color:#800080;">$user</span><span style="color:#000000;"> </span><span style="color:#0000FF;">In</span><span style="color:#000000;"> </span><span style="color:#800080;">$_</span><span style="color:#000000;">){
            ConvertUser(</span><span style="color:#800080;">$user</span><span style="color:#000000;">)
        }
    }
}

Get</span><span style="color:#000000;">-</span><span style="color:#000000;">Content “.\Users.txt” </span><span style="color:#000000;">|</span><span style="color:#000000;"> ConvertUsers </span></div></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<p>TXT-file with users (filename: “Users.txt”):</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:50f45b94-0050-42e2-942f-b5e1f1e4f066" class="wlWriterEditableSmartContent">
<pre style="width:525px;height:103px;background-color:#DADADA;white-space:pre-wrap;word-wrap:break-word;overflow:auto;"><div><span style="color:#000000;">Aaron Painter
Adam Barr
Alan Brewer
Alan Steiner</span></div></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<p>Make a TXT-file with users display name (see example below). Then copy, paste and run the script above should do the trick. </p>
<p><a href="http://bramdejager.files.wordpress.com/2011/05/image.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://bramdejager.files.wordpress.com/2011/05/image_thumb.png?w=644&#038;h=204" width="644" height="204" /></a></p>
<br /> Tagged: <a href='http://bramdejager.wordpress.com/tag/active-directory/'>Active Directory</a>, <a href='http://bramdejager.wordpress.com/tag/powershell/'>PowerShell</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/95/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=95&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2011/05/30/powershell-script-for-retrieving-ad-user-attributes-based-on-display-name/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2011/05/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Removing Super User and Super Reader account</title>
		<link>http://bramdejager.wordpress.com/2011/05/18/removing-super-user-and-super-reader-account/</link>
		<comments>http://bramdejager.wordpress.com/2011/05/18/removing-super-user-and-super-reader-account/#comments</comments>
		<pubDate>Wed, 18 May 2011 17:33:55 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[WCM]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/2011/05/18/removing-super-user-and-super-reader-account/</guid>
		<description><![CDATA[A colleague of mine had issues with the object cache user accounts (Super User and Super Reader accounts). He used the blog post addressing the access denied errors. The post describes setting the Super User and Super Reader, but it did not describing removing both properties. My colleague needed to remove the properties, this PowerShell [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=91&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>A colleague of mine had issues with the <a href="http://technet.microsoft.com/en-us/library/ff758656.aspx" target="_blank">object cache user accounts</a> (<em>Super User</em> and <em>Super Reader</em> accounts). He used the <a href="http://blogs.msdn.com/b/andrasg/archive/2010/09/30/setting-the-super-user-account-on-sharepoint-2010-and-getting-access-denied-errors-afterwards.aspx" target="_blank">blog post</a> addressing the access denied errors. The post describes setting the <em>Super User</em> and <em>Super Reader</em>, but it did not describing removing both properties. </p>
<p>My colleague needed to remove the properties, this PowerShell script removes both properties:</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:57d94497-4627-4ee5-975d-01a6b18ef7df" class="wlWriterEditableSmartContent">
<pre style="width:518px;height:165px;background-color:#DADADA;white-space:pre-wrap;word-wrap:break-word;overflow:auto;"><div><span style="color:#008000;">#</span><span style="color:#008000;"> Remove properties</span><span style="color:#008000;">
</span><span style="color:#800080;">$wa</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> Get</span><span style="color:#000000;">-</span><span style="color:#000000;">SPWebApplication </span><span style="color:#000000;">-</span><span style="color:#000000;">Identity </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">&lt;WebApplication&gt;</span><span style="color:#800000;">&quot;</span><span style="color:#000000;"> 
</span><span style="color:#800080;">$wa</span><span style="color:#000000;">.Properties.Remove(</span><span style="color:#800000;">&quot;</span><span style="color:#800000;">portalsuperuseraccount</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">)
</span><span style="color:#800080;">$wa</span><span style="color:#000000;">.Properties.Remove(</span><span style="color:#800000;">&quot;</span><span style="color:#800000;">portalsuperreaderaccount</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">)
</span><span style="color:#800080;">$wa</span><span style="color:#000000;">.Update()

Write</span><span style="color:#000000;">-</span><span style="color:#000000;">Host(</span><span style="color:#800000;">&quot;</span><span style="color:#800000;">Properties count for </span><span style="color:#800000;">&quot;</span><span style="color:#000000;"> </span><span style="color:#000000;">+</span><span style="color:#000000;"> </span><span style="color:#800080;">$wa</span><span style="color:#000000;">.Url </span><span style="color:#000000;">+</span><span style="color:#000000;">  </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">: </span><span style="color:#800000;">&quot;</span><span style="color:#000000;"> </span><span style="color:#000000;">+</span><span style="color:#000000;"> </span><span style="color:#800080;">$wa</span><span style="color:#000000;">.Properties.Count)</span></div></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<p>I hope it helps those who want to undo their settings. To complete the script:</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:0ea3cb76-c0b6-4902-85d8-b0c511eb07ae" class="wlWriterEditableSmartContent">
<pre style="width:518px;height:223px;background-color:#DADADA;white-space:pre-wrap;word-wrap:break-word;overflow:auto;"><div><span style="color:#008000;">#</span><span style="color:#008000;"> Get current properties</span><span style="color:#008000;">
</span><span style="color:#800080;">$wa</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> Get</span><span style="color:#000000;">-</span><span style="color:#000000;">SPWebApplication </span><span style="color:#000000;">-</span><span style="color:#000000;">Identity </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">&lt;WebApplication&gt;</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">
</span><span style="color:#800080;">$user</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$wa</span><span style="color:#000000;">.Properties[</span><span style="color:#800000;">&quot;</span><span style="color:#800000;">portalsuperuseraccount</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">]
</span><span style="color:#800080;">$reader</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$wa</span><span style="color:#000000;">.Properties[</span><span style="color:#800000;">&quot;</span><span style="color:#800000;">portalsuperreaderaccount</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">]

</span><span style="color:#008000;">#</span><span style="color:#008000;"> Write current properties</span><span style="color:#008000;">
</span><span style="color:#000000;">Write</span><span style="color:#000000;">-</span><span style="color:#000000;">Host(</span><span style="color:#800000;">&quot;</span><span style="color:#800000;">Properties count for </span><span style="color:#800000;">&quot;</span><span style="color:#000000;"> </span><span style="color:#000000;">+</span><span style="color:#000000;"> </span><span style="color:#800080;">$wa</span><span style="color:#000000;">.Url </span><span style="color:#000000;">+</span><span style="color:#000000;">  </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">: </span><span style="color:#800000;">&quot;</span><span style="color:#000000;"> </span><span style="color:#000000;">+</span><span style="color:#000000;"> </span><span style="color:#800080;">$wa</span><span style="color:#000000;">.Properties.Count)
Write</span><span style="color:#000000;">-</span><span style="color:#000000;">Host(</span><span style="color:#800000;">&quot;</span><span style="color:#800000;">Super user (</span><span style="color:#800000;">&quot;</span><span style="color:#000000;"> </span><span style="color:#000000;">+</span><span style="color:#000000;"> </span><span style="color:#800080;">$wa</span><span style="color:#000000;">.Url </span><span style="color:#000000;">+</span><span style="color:#000000;">  </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">): '</span><span style="color:#800000;">&quot;</span><span style="color:#000000;"> </span><span style="color:#000000;">+</span><span style="color:#000000;"> </span><span style="color:#800080;">$user</span><span style="color:#000000;"> </span><span style="color:#000000;">+</span><span style="color:#000000;"> </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">'</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">)
Write</span><span style="color:#000000;">-</span><span style="color:#000000;">Host(</span><span style="color:#800000;">&quot;</span><span style="color:#800000;">Super reader (</span><span style="color:#800000;">&quot;</span><span style="color:#000000;"> </span><span style="color:#000000;">+</span><span style="color:#000000;"> </span><span style="color:#800080;">$wa</span><span style="color:#000000;">.Url </span><span style="color:#000000;">+</span><span style="color:#000000;">  </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">): '</span><span style="color:#800000;">&quot;</span><span style="color:#000000;"> </span><span style="color:#000000;">+</span><span style="color:#000000;"> </span><span style="color:#800080;">$reader</span><span style="color:#000000;"> </span><span style="color:#000000;">+</span><span style="color:#000000;"> </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">'</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">)
</span></div></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<br /> Tagged: <a href='http://bramdejager.wordpress.com/tag/powershell/'>PowerShell</a>, <a href='http://bramdejager.wordpress.com/tag/sharepoint-2010/'>SharePoint 2010</a>, <a href='http://bramdejager.wordpress.com/tag/wcm/'>WCM</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/91/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=91&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2011/05/18/removing-super-user-and-super-reader-account/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint Features and Solution Upgrading slide deck DevDays</title>
		<link>http://bramdejager.wordpress.com/2011/05/04/sharepoint-features-and-solution-upgrading-slide-deck-devdays/</link>
		<comments>http://bramdejager.wordpress.com/2011/05/04/sharepoint-features-and-solution-upgrading-slide-deck-devdays/#comments</comments>
		<pubDate>Wed, 04 May 2011 05:48:49 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Community]]></category>
		<category><![CDATA[Presentation]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[Upgrade]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/2011/05/04/sharepoint-features-and-solution-upgrading-slide-deck-devdays/</guid>
		<description><![CDATA[Last Thursday I presented at DevDays 2011 in The Hague (NL). All sessions are recorded and can be viewed on Channel 9. It was a great time! SharePoint features and solution upgrading This was a level 300 session about SharePoint features and solutions upgrading. The feature and solution framework used for the deployment of custom [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=84&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Last Thursday I presented at DevDays 2011 in The Hague (NL). All sessions are recorded and can be viewed on <a href="http://channel9.msdn.com/Events/DevDays/DevDays-2011-Netherlands" target="_blank">Channel 9</a>. It was a great time!</p>
<h4>SharePoint features and solution upgrading</h4>
<p>This was a level 300 session about SharePoint features and solutions upgrading. </p>
<blockquote><p>The feature and solution framework used for the deployment of custom SharePoint solutions was introduced in SharePoint 2007. With SharePoint 2010 some major improvements have been made to the framework to allow for feature versioning and upgradability. This provides new ways to deal with application lifecycle management. </p>
<p>This presentation covers the feature and solution framework, explains when to use the feature upgrade and talks about upgrading existing activated and non-activated features. During the session different demos will be build supporting the different scenarios.</p>
</blockquote>
<p><font color="#808080">You can download the slide deck here: </font></p>
<p><font color="#808080"><br />
<table border="0" cellspacing="0" cellpadding="2" width="494">
<tbody>
<tr>
<td valign="top" width="105"><a href="http://bramdejager.files.wordpress.com/2011/05/devdays-2011-bram_-de_-jager_-sharepoint-feature-and_-solution-upgrading.pptx"><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="Download PowerPoint" border="0" alt="Download PowerPoint" src="http://bramdejager.files.wordpress.com/2011/05/download-powerpoint1.png?w=100&#038;h=100" width="100" height="100" /></a></td>
<td width="387">
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:F60BB8FA-6F02-4999-8F5E-9DD4E92C4DA7:51cec4be-c41f-4fdb-a01c-b870008aa6a3" class="wlWriterEditableSmartContent">
<div><a href="http://bramdejager.files.wordpress.com/2011/05/devdays-2011-bram_-de_-jager_-sharepoint-feature-and_-solution-upgrading.pptx" target="_self">DevDays 2011 &#8211; Bram de Jager &#8211; SharePoint Feature and Solution upgrading.pptx</a></div>
</div>
</td>
</tr>
</tbody>
</table>
<p>&#160;</font><font color="#808080">Enjoy the video on my session on <a href="http://channel9.msdn.com/Events/DevDays/DevDays-2011-Netherlands/Devdays025" target="_blank">Channel 9</a>! </font></p>
<p><a title="SharePoint Features en Solution Upgrading video" href="http://channel9.msdn.com/Events/DevDays/DevDays-2011-Netherlands/Devdays025" target="_blank"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="Channel9 SharePoint Features en Solution Upgrading" border="0" alt="Channel9 SharePoint Features en Solution Upgrading" src="http://bramdejager.files.wordpress.com/2011/05/channel9-sharepoint-features-en-solution-upgrading.png?w=890&#038;h=467" width="890" height="467" /></a></p>
<br /> Tagged: <a href='http://bramdejager.wordpress.com/tag/community/'>Community</a>, <a href='http://bramdejager.wordpress.com/tag/presentation/'>Presentation</a>, <a href='http://bramdejager.wordpress.com/tag/sharepoint-2010/'>SharePoint 2010</a>, <a href='http://bramdejager.wordpress.com/tag/upgrade/'>Upgrade</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/84/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=84&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2011/05/04/sharepoint-features-and-solution-upgrading-slide-deck-devdays/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2011/05/download-powerpoint1.png" medium="image">
			<media:title type="html">Download PowerPoint</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2011/05/channel9-sharepoint-features-en-solution-upgrading.png" medium="image">
			<media:title type="html">Channel9 SharePoint Features en Solution Upgrading</media:title>
		</media:content>
	</item>
		<item>
		<title>How to recover a crashed VM</title>
		<link>http://bramdejager.wordpress.com/2011/04/21/how-to-recover-a-crashed-vm/</link>
		<comments>http://bramdejager.wordpress.com/2011/04/21/how-to-recover-a-crashed-vm/#comments</comments>
		<pubDate>Thu, 21 Apr 2011 16:59:25 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Windows Server]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/2011/04/21/how-to-recover-a-crashed-vm/</guid>
		<description><![CDATA[Last week it happened again, one of my virtual machines crashed. And I needed a way to repair the virtual machine or at least retrieve the files located on the virtual hard disk. Important note: This is (probably) not supported and I can’t guarantee your virtual machine is recovered. Please only use this how-to as [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=78&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Last week it happened again, one of my virtual machines crashed. And I needed a way to <u>repair the virtual machine</u> or at least <u>retrieve the files located on the virtual hard disk</u>. </p>
<blockquote><p><font color="#666666"><strong>Important note</strong>: This is (probably) not supported and I can’t guarantee your virtual machine is recovered. Please only use this how-to as your last resort! It <u>might</u> help you <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </font></p>
</blockquote>
<p><strong>What happened?: </strong>When the virtual machine (VM) crashed it needed a forced shutdown. When restarting the VM it came back with Recovery mode. I wasn’t able to start Windows normally! </p>
<p><strong>Solution: </strong>Within VirtualBox (I’m currently using Oracle VM VirtualBox), or any other virtualization software, you are able to mount multiple hard disks. You need to mount the hard disk of the crashed VM to another healthy VM (which works normally). Pay attention to snapshots, mount the latest snapshot! Start the healthy VM. </p>
<p><strong>What happens?:</strong> The healthy VM will pick up the crashed hard disk and starts scanning and repairing the hard disk. After repairing Windows will start normally and you are able to browse the hard disk and retrieve your files.</p>
<p>If you are having a lucky day? You could try to shutdown the healthy VM. Unmount the hard disk (which was repaired). And try starting your crashed VM. Now you know whether you are really lucky! It might start!? Good luck!</p>
<br /> Tagged: <a href='http://bramdejager.wordpress.com/tag/virtualization/'>Virtualization</a>, <a href='http://bramdejager.wordpress.com/tag/windows-server/'>Windows Server</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/78/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=78&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2011/04/21/how-to-recover-a-crashed-vm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>
	</item>
		<item>
		<title>Adding script like jQuery to your pages</title>
		<link>http://bramdejager.wordpress.com/2011/04/13/adding-script-like-jquery-to-your-pages/</link>
		<comments>http://bramdejager.wordpress.com/2011/04/13/adding-script-like-jquery-to-your-pages/#comments</comments>
		<pubDate>Wed, 13 Apr 2011 07:53:58 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[CustomAction]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[SharePoint 2010]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/2011/04/13/adding-script-like-jquery-to-your-pages/</guid>
		<description><![CDATA[When working with the post of Andrew Connell I faced some challenges with implementing my solution. I wanted to add multiple scripts with dependencies to my pages. When creating one elements.xml containing all three script links the order of the &#60;CustomAction Location=”X” ScriptScr=”Y” /&#62; elements is important. The following elements.xml is packaged in a feature. [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=75&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>When working with the <a href="http://www.andrewconnell.com/blog/archive/2011/04/11/adding-jquery-to-every-page-in-a-sharepoint.aspx" target="_blank">post</a> of <a href="http://www.andrewconnell.com/blog/Default.aspx" target="_blank">Andrew Connell</a> I faced some challenges with implementing my solution. I wanted to add multiple scripts with dependencies to my pages. When creating one elements.xml containing all three script links the order of the &lt;CustomAction Location=”X” ScriptScr=”Y” /&gt; elements is important. </p>
<p>The following elements.xml is packaged in a feature.</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:8f61eb67-24b7-40fa-be0b-c8def104ccf7" class="wlWriterEditableSmartContent">
<pre style="width:518px;height:302px;background-color:#DADADA;white-space:pre-wrap;word-wrap:break-word;overflow:auto;"><div><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">Elements </span><span style="color:#FF0000;">xmlns</span><span style="color:#0000FF;">=&quot;http://schemas.microsoft.com/sharepoint/&quot;</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">CustomAction 
    </span><span style="color:#FF0000;">Location</span><span style="color:#0000FF;">=&quot;ScriptLink&quot;</span><span style="color:#FF0000;"> 
    ScriptSrc</span><span style="color:#0000FF;">=&quot;~site/_layouts/project_name/js/custom-1.0.0.js?rev=20110413&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">/&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">CustomAction 
    </span><span style="color:#FF0000;">Location</span><span style="color:#0000FF;">=&quot;ScriptLink&quot;</span><span style="color:#FF0000;"> 
    ScriptSrc</span><span style="color:#0000FF;">=&quot;~sitecollection/_layouts/project_name/js/ jquery_query-2_1_7.js?rev=20110413&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">/&gt;</span><span style="color:#000000;">
  </span><span style="color:#0000FF;">&lt;</span><span style="color:#800000;">CustomAction 
    </span><span style="color:#FF0000;">Location</span><span style="color:#0000FF;">=&quot;ScriptLink&quot;</span><span style="color:#FF0000;"> 
    ScriptSrc</span><span style="color:#0000FF;">=&quot;~site/_layouts/project_name/js/jquery-1.5.1.min.js?rev=20110413&quot;</span><span style="color:#FF0000;"> </span><span style="color:#0000FF;">/&gt;</span><span style="color:#000000;">
</span><span style="color:#0000FF;">&lt;/</span><span style="color:#800000;">Elements</span><span style="color:#0000FF;">&gt;</span><span style="color:#000000;">
</span></div></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<p>This results in the following HTML in your pages.</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:0630ad60-8ff6-46fb-be61-17cb9a4aab78" class="wlWriterEditableSmartContent">
<pre style="width:518px;height:195px;background-color:#DADADA;white-space:pre-wrap;word-wrap:break-word;overflow:auto;"><div><span style="color:#000000;">document.write(</span><span style="color:#000000;">'</span><span style="color:#000000;">&lt;script type=&quot;text/javascript&quot; src=&quot;/_layouts/project_name/js/jquery-1.5.1.min.js?rev=20110413&quot;&gt;&lt;/</span><span style="color:#000000;">'</span><span style="color:#000000;"> </span><span style="color:#000000;">+</span><span style="color:#000000;"> </span><span style="color:#000000;">'</span><span style="color:#000000;">script&gt;</span><span style="color:#000000;">'</span><span style="color:#000000;">);
document.write(</span><span style="color:#000000;">'</span><span style="color:#000000;">&lt;script type=&quot;text/javascript&quot; src=&quot;/_layouts/project_name/js/jquery_query-2_1_7.js?rev=20110413&quot;&gt;&lt;/</span><span style="color:#000000;">'</span><span style="color:#000000;"> </span><span style="color:#000000;">+</span><span style="color:#000000;"> </span><span style="color:#000000;">'</span><span style="color:#000000;">script&gt;</span><span style="color:#000000;">'</span><span style="color:#000000;">);
document.write(</span><span style="color:#000000;">'</span><span style="color:#000000;">&lt;script type=&quot;text/javascript&quot; src=&quot;/_layouts/project_name/js/custom-1.0.0.js?rev=20110413&quot;&gt;&lt;/</span><span style="color:#000000;">'</span><span style="color:#000000;"> </span><span style="color:#000000;">+</span><span style="color:#000000;"> </span><span style="color:#000000;">'</span><span style="color:#000000;">script&gt;</span><span style="color:#000000;">'</span><span style="color:#000000;">);
</span></div></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<p>Important to know is the order in the elements.xml is the opposite sequence in the HTML. Meaning the script “jquery_query-2_1_7.js” is depending on “jquery-1.5.1.min.js” and needs to be the last item in the elements.xml.</p>
<p>In the script link I’m using “~site” and “~sitecollection” tokens to change the link according to the site or site collection where the user is located. This is important when creating a generic feature used on multiple sites. </p>
<p>By using the “?rev=20110413” at the end of your link you can force the browser to refresh its local cache. A (script) file is downloaded the first time accessing the page. As long as the link does not change the browser does not download the file. By changing the query string you can force a download of the script when changes are made. The actual value “20110413” is todays date, but can be your own versioning logic.</p>
<p>The example above also has a version number in the file name, this is another way of forcing a download. I simply wanted to illustrate the possibilities, you probably will use either query string or version number. </p>
<p>Lessons learned / best practices:</p>
<ul>
<li>Order in elements.xml for &lt;CustomAction /&gt; elements is of influence of the order of script links in the resulting HTML.</li>
<li>Use “~site” and “~sitecollection” tokens to control the script link.</li>
<li>Use “?rev=20110413” query string or version number in filename to force a download of the file. </li>
</ul>
<br /> Tagged: <a href='http://bramdejager.wordpress.com/tag/customaction/'>CustomAction</a>, <a href='http://bramdejager.wordpress.com/tag/javascript/'>JavaScript</a>, <a href='http://bramdejager.wordpress.com/tag/jquery/'>jQuery</a>, <a href='http://bramdejager.wordpress.com/tag/sharepoint-2010/'>SharePoint 2010</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/75/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=75&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2011/04/13/adding-script-like-jquery-to-your-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>
	</item>
		<item>
		<title>Speaking at DevDays 2011</title>
		<link>http://bramdejager.wordpress.com/2011/04/06/speaking-at-devdays-2011/</link>
		<comments>http://bramdejager.wordpress.com/2011/04/06/speaking-at-devdays-2011/#comments</comments>
		<pubDate>Wed, 06 Apr 2011 07:02:56 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Community]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/2011/04/06/speaking-at-devdays-2011/</guid>
		<description><![CDATA[I will be speaking at the DevDays 2011 in The Hague (NL) on April 28th. It’s a level 300 session about SharePoint Features en Solution Upgrading. More information on http://www.techdays.nl/SessieDetails.aspx?cid=1534. Session abstract: SharePoint Features en Solution Upgrading The session is held in Dutch: Het feature en solution framework dat gebruikt wordt voor deployment van custom [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=73&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I will be speaking at the <a href="http://www.techdays.nl/DevDays" target="_blank">DevDays 2011</a> in The Hague (NL) on April 28th. It’s a level 300 session about <strong>SharePoint Features en Solution Upgrading</strong>. More information on <a title="http://www.techdays.nl/SessieDetails.aspx?cid=1534" href="http://www.techdays.nl/SessieDetails.aspx?cid=1534" target="_blank">http://www.techdays.nl/SessieDetails.aspx?cid=1534</a>.</p>
<h1>Session abstract: SharePoint Features en Solution Upgrading</h1>
<p>The <a href="http://bramdejager.files.wordpress.com/2011/04/devdays_speaker.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;float:right;padding-top:0;border-width:0;margin:0 0 10px 20px;" title="devdays_speaker" src="http://bramdejager.files.wordpress.com/2011/04/devdays_speaker_thumb.png?w=146&#038;h=234" alt="devdays_speaker" width="146" height="234" align="right" border="0" /></a>session is held in Dutch:</p>
<blockquote>
<p align="left">Het feature en solution framework dat gebruikt wordt voor deployment van custom SharePoint solutions is geïntroduceerd als onderdeel van SharePoint 2007. In SharePoint 2010 is dit onderdeel verder uitgebreid met feature versioning en upgradability. Dit is van invloed op de application lifecycle management strategie.<br />
Deze presentatie gaat in op het feature en solution framework, wanneer pas je feature upgrade toe en hoe ga je om met het upgraden van bestaande geactiveerde en niet-geactiveerde features. Tijdens de sessie worden meerdere demo&#8217;s gebouwd op basis van verschillende scenario&#8217;s.</p>
</blockquote>
<br /> Tagged: <a href='http://bramdejager.wordpress.com/tag/community/'>Community</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/73/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=73&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2011/04/06/speaking-at-devdays-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2011/04/devdays_speaker_thumb.png" medium="image">
			<media:title type="html">devdays_speaker</media:title>
		</media:content>
	</item>
		<item>
		<title>Clear the folksonomy</title>
		<link>http://bramdejager.wordpress.com/2011/03/29/clear-the-folksonomy/</link>
		<comments>http://bramdejager.wordpress.com/2011/03/29/clear-the-folksonomy/#comments</comments>
		<pubDate>Tue, 29 Mar 2011 09:52:16 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Folksonomy]]></category>
		<category><![CDATA[Managed Metadata Service]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SharePoint 2010]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/2011/03/29/clear-the-folksonomy/</guid>
		<description><![CDATA[When performing a migration of the Managed Metadata Service (MMS) database from acceptance production environment the system keywords (folksonomy) are migrated too. As a results the folksonomy on production contains all system keywords from acceptance. This is not what you want! You can delete all keywords manually, but removing 100+ keyword results in a bad [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=70&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>When performing a migration of the Managed Metadata Service (MMS) database from acceptance production environment the system keywords (folksonomy) are migrated too. As a results the folksonomy on production contains all system keywords from acceptance. This is not what you want!</p>
<p>You can delete all keywords manually, but removing 100+ keyword results in a bad humor. With a nice PowerShell script the sun shines within seconds!</p>
<p>The script retrieves the MMS and loops the keywords and deletes them. When all keywords are deleted a <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.taxonomy.termstore.commitall.aspx" target="_blank">Commit</a> is needed to push all changes. Made a mistake? <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.taxonomy.termstore.rollbackall.aspx" target="_blank">Rollback</a> is also an option <img style="border-style:none;" class="wlEmoticon wlEmoticon-winkingsmile" alt="Winking smile" src="http://bramdejager.files.wordpress.com/2011/03/wlemoticon-winkingsmile.png?w=600" />.</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:3fcc3edd-f047-48c0-81ea-8d70feb798a9" class="wlWriterEditableSmartContent">
<pre style="width:509px;height:429px;background-color:#DADADA;white-space:pre-wrap;word-wrap:break-word;overflow:auto;"><div><span style="color:#008000;">#</span><span style="color:#008000;">Connect to Central Admin </span><span style="color:#008000;">
</span><span style="color:#800080;">$taxonomySite</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> Get</span><span style="color:#000000;">-</span><span style="color:#000000;">SPSite </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">http://CA-url/</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">

</span><span style="color:#008000;">#</span><span style="color:#008000;">Connect to Term Store in the Managed Metadata Service Application </span><span style="color:#008000;">
</span><span style="color:#800080;">$taxonomySession</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> Get</span><span style="color:#000000;">-</span><span style="color:#000000;">SPTaxonomySession </span><span style="color:#000000;">-</span><span style="color:#000000;">site </span><span style="color:#800080;">$taxonomySite</span><span style="color:#000000;"> 
</span><span style="color:#800080;">$termStore</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$taxonomySession</span><span style="color:#000000;">.TermStores[</span><span style="color:#800000;">&quot;</span><span style="color:#800000;">Managed Metadata Service Application</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">] 
Write</span><span style="color:#000000;">-</span><span style="color:#000000;">Host </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">Connection made with term store -</span><span style="color:#800000;">&quot;</span><span style="color:#800080;">$termStore</span><span style="color:#000000;">.Name 

</span><span style="color:#008000;">#</span><span style="color:#008000;">Connect to the Group and Term Set </span><span style="color:#008000;">
</span><span style="color:#800080;">$termStoreGroup</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$termStore</span><span style="color:#000000;">.Groups[</span><span style="color:#800000;">&quot;</span><span style="color:#800000;">System</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">] 
</span><span style="color:#800080;">$termSet</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$termStoreGroup</span><span style="color:#000000;">.TermSets[</span><span style="color:#800000;">&quot;</span><span style="color:#800000;">Keywords</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">] 

</span><span style="color:#008000;">#</span><span style="color:#008000;">Loop all keywords and delete</span><span style="color:#008000;">
</span><span style="color:#0000FF;">foreach</span><span style="color:#000000;">(</span><span style="color:#800080;">$keyWord</span><span style="color:#000000;"> </span><span style="color:#0000FF;">in</span><span style="color:#000000;"> </span><span style="color:#800080;">$termSet</span><span style="color:#000000;">.Terms) {
    </span><span style="color:#800080;">$keyWord</span><span style="color:#000000;">.Delete()
    Write</span><span style="color:#000000;">-</span><span style="color:#000000;">Host </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">Deleted keyword:</span><span style="color:#800000;">&quot;</span><span style="color:#000000;"> </span><span style="color:#800080;">$keyWord</span><span style="color:#000000;">.Name
}

</span><span style="color:#008000;">#</span><span style="color:#008000;">Update the Term Store </span><span style="color:#008000;">
</span><span style="color:#800080;">$termStore</span><span style="color:#000000;">.CommitAll()</span></div></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<br /> Tagged: <a href='http://bramdejager.wordpress.com/tag/folksonomy/'>Folksonomy</a>, <a href='http://bramdejager.wordpress.com/tag/managed-metadata-service/'>Managed Metadata Service</a>, <a href='http://bramdejager.wordpress.com/tag/powershell/'>PowerShell</a>, <a href='http://bramdejager.wordpress.com/tag/sharepoint-2010/'>SharePoint 2010</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/70/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=70&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2011/03/29/clear-the-folksonomy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2011/03/wlemoticon-winkingsmile.png" medium="image">
			<media:title type="html">Winking smile</media:title>
		</media:content>
	</item>
		<item>
		<title>Using SP.UI.Dialog and SP.UI.Notify from code behind</title>
		<link>http://bramdejager.wordpress.com/2011/03/21/using-sp-ui-dialog-and-sp-ui-notify-from-code-behind/</link>
		<comments>http://bramdejager.wordpress.com/2011/03/21/using-sp-ui-dialog-and-sp-ui-notify-from-code-behind/#comments</comments>
		<pubDate>Mon, 21 Mar 2011 06:52:30 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SP.UI]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/2011/03/21/using-sp-ui-dialog-and-sp-ui-notify-from-code-behind/</guid>
		<description><![CDATA[SharePoint 2010 comes with the SP.UI framework. This is a JavaScript library which you can use to interact with the SharePoint UI. I wanted to use the SP.UI framework to display a dialog which is only shown when condition are met in code behind. When I placed the JavaScript in the web part I got [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=68&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>SharePoint 2010 comes with the SP.UI framework. This is a JavaScript library which you can use to interact with the SharePoint UI. I wanted to use the SP.UI framework to display a dialog which is only shown when condition are met in code behind. </p>
<p><a href="http://bramdejager.files.wordpress.com/2011/03/validationdialogwebpart.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="ValidationDialogWebPart" border="0" alt="ValidationDialogWebPart" src="http://bramdejager.files.wordpress.com/2011/03/validationdialogwebpart_thumb.png?w=644&#038;h=350" width="644" height="350" /></a></p>
<p>When I placed the JavaScript in the web part I got a null reference error. The problem originated from the SP.UI object model not being loaded. Especially because it did work when I executed the script on the OnClick event of a button. </p>
<p>The solution is provided by the <a href="http://msdn.microsoft.com/en-us/library/ff411788.aspx" target="_blank">SP.SOD.executeOrDelayUntilScriptLoaded</a> method. It will wait to execute the function you provide until the script you refer is completely loaded.</p>
<blockquote><p>ExecuteOrDelayUntilScriptLoaded(ShowDialog, &quot;sp.js&quot;);</p>
</blockquote>
<p>Within my project I added a JavaScript file containing my method “ShowDialog()” to show the dialog. Within my web part I perform the validation and call the CreateDialog() method. </p>
<p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:cd5a67b7-ab92-44f3-8ba7-0586b270ae98" class="wlWriterEditableSmartContent">
<pre style="width:509px;height:578px;background-color:#DADADA;white-space:pre-wrap;word-wrap:break-word;overflow:auto;"><div><span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;summary&gt;</span><span style="color:#008000;">
</span><span style="color:#808080;">///</span><span style="color:#008000;"> Registers the javascript supporting showing dialog.
</span><span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;/summary&gt;</span><span style="color:#008000;">
</span><span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;remarks&gt;</span><span style="color:#008000;">
</span><span style="color:#808080;">///</span><span style="color:#008000;"> When calling this method, the dialog is shown 
</span><span style="color:#808080;">///</span><span style="color:#008000;"> to the user and blocks the page below.
</span><span style="color:#808080;">///</span><span style="color:#008000;"> </span><span style="color:#808080;">&lt;/remarks&gt;</span><span style="color:#808080;">
</span><span style="color:#0000FF;">private</span><span style="color:#000000;"> </span><span style="color:#0000FF;">void</span><span style="color:#000000;"> CreateDialog()
{
    </span><span style="color:#008000;">//</span><span style="color:#008000;"> Define the name and type of the client scripts on the page.</span><span style="color:#008000;">
</span><span style="color:#000000;">    </span><span style="color:#0000FF;">string</span><span style="color:#000000;"> csname </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">ShowDialogScript</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">;
    Type cstype </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#0000FF;">this</span><span style="color:#000000;">.GetType();

    </span><span style="color:#008000;">//</span><span style="color:#008000;"> Get a ClientScriptManager reference from the Page class.</span><span style="color:#008000;">
</span><span style="color:#000000;">    ClientScriptManager cs </span><span style="color:#000000;">=</span><span style="color:#000000;"> Page.ClientScript;

    </span><span style="color:#008000;">//</span><span style="color:#008000;"> Check to see if the startup script is already registered.</span><span style="color:#008000;">
</span><span style="color:#000000;">    </span><span style="color:#0000FF;">if</span><span style="color:#000000;"> (</span><span style="color:#000000;">!</span><span style="color:#000000;">cs.IsStartupScriptRegistered(cstype, csname))
    {
        StringBuilder js </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#0000FF;">new</span><span style="color:#000000;"> StringBuilder();
        js.Append(</span><span style="color:#800000;">&quot;</span><span style="color:#800000;">&lt;script type='text/javascript'&gt;</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">);
        js.Append(</span><span style="color:#800000;">&quot;</span><span style="color:#800000;">ExecuteOrDelayUntilScriptLoaded(ShowDialog, 'sp.js');</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">);
        js.Append(</span><span style="color:#800000;">&quot;</span><span style="color:#800000;">&lt;/script&gt;</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">);

        cs.RegisterStartupScript(cstype, csname, js.ToString());
    }
}
</span></div></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div></p>
<br /> Tagged: <a href='http://bramdejager.wordpress.com/tag/javascript/'>JavaScript</a>, <a href='http://bramdejager.wordpress.com/tag/sharepoint-2010/'>SharePoint 2010</a>, <a href='http://bramdejager.wordpress.com/tag/sp-ui/'>SP.UI</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/68/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=68&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2011/03/21/using-sp-ui-dialog-and-sp-ui-notify-from-code-behind/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2011/03/validationdialogwebpart_thumb.png" medium="image">
			<media:title type="html">ValidationDialogWebPart</media:title>
		</media:content>
	</item>
		<item>
		<title>Access Denied errors in content source for People Search</title>
		<link>http://bramdejager.wordpress.com/2011/03/14/access-denied-errors-in-content-source-for-people-search/</link>
		<comments>http://bramdejager.wordpress.com/2011/03/14/access-denied-errors-in-content-source-for-people-search/#comments</comments>
		<pubDate>Mon, 14 Mar 2011 08:58:20 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Search]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[UPS]]></category>
		<category><![CDATA[User Profiles]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/2011/03/14/access-denied-errors-in-content-source-for-people-search/</guid>
		<description><![CDATA[Having issues with indexing the user profiles? Getting Access Denied error messages in the crawl log for sps3://my.sharepoint.com? Are these looking like the one below? Access is denied. Verify that either the Default Content Access Account has access to this repository, or add a crawl rule to crawl this repository. If the repository being crawled [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=63&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Having issues with indexing the user profiles? Getting <em>Access Denied </em>error messages in the crawl log for <a href="//my.sharepoint.com">sps3://my.sharepoint.com</a>? Are these looking like the one below? </p>
<blockquote><p>Access is denied. Verify that either the Default Content Access Account has access to this repository, or add a crawl rule to crawl this repository. If the repository being crawled is a SharePoint repository, verify that the account you are using has &quot;Full Read&quot; permissions on the SharePoint Web Application being crawled. ( HttpStatusCode Unauthorized The request failed with HTTP status 401: Unauthorized. )</p>
</blockquote>
<p>This most likely has to do with the default content access account not having access to the user profile service application. The default content access account needs “Retrieve People Data for Search Crawlers” permissions on the user profile service application. </p>
<p><a href="http://bramdejager.files.wordpress.com/2011/03/peoplesearcherroraccessdenied.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="Search error message Access Denied" border="0" alt="Search error message Access Denied" src="http://bramdejager.files.wordpress.com/2011/03/peoplesearcherroraccessdenied_thumb.png?w=644&#038;h=62" width="644" height="62" /></a></p>
<p>Solving this is rather easy. See steps below:</p>
<ol>
<li>Navigate to the Central Administration</li>
<li>Click on <em>Manage Service Applications</em></li>
<li>Select the “User Profile Service Application” (note: do not click the name of the service application, because you will be redirected to management page)</li>
<li>Click in the ribbon on the <em>Administrators</em> button</li>
<li>Add the “Default content access account” to the accounts list</li>
<li>Select the “Default content access account” in the list</li>
<li>Check the “Retrieve People Data for Search Crawlers” permission</li>
<li>Click <em>OK</em></li>
</ol>
<p><a href="http://bramdejager.files.wordpress.com/2011/03/administratorsdialogforups.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="Administrators dialog for User Profile Service Application" border="0" alt="Administrators dialog for User Profile Service Application" src="http://bramdejager.files.wordpress.com/2011/03/administratorsdialogforups_thumb.png?w=212&#038;h=244" width="212" height="244" /></a></p>
<br /> Tagged: <a href='http://bramdejager.wordpress.com/tag/search/'>Search</a>, <a href='http://bramdejager.wordpress.com/tag/sharepoint-2010/'>SharePoint 2010</a>, <a href='http://bramdejager.wordpress.com/tag/ups/'>UPS</a>, <a href='http://bramdejager.wordpress.com/tag/user-profiles/'>User Profiles</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/63/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=63&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2011/03/14/access-denied-errors-in-content-source-for-people-search/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2011/03/peoplesearcherroraccessdenied_thumb.png" medium="image">
			<media:title type="html">Search error message Access Denied</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2011/03/administratorsdialogforups_thumb.png" medium="image">
			<media:title type="html">Administrators dialog for User Profile Service Application</media:title>
		</media:content>
	</item>
		<item>
		<title>Dynamic visualization with Visio &amp; SharePoint</title>
		<link>http://bramdejager.wordpress.com/2011/02/24/dynamic-visualization-with-visio-sharepoint/</link>
		<comments>http://bramdejager.wordpress.com/2011/02/24/dynamic-visualization-with-visio-sharepoint/#comments</comments>
		<pubDate>Thu, 24 Feb 2011 07:28:43 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[Visio]]></category>
		<category><![CDATA[Community]]></category>
		<category><![CDATA[Presentation]]></category>
		<category><![CDATA[Visio 2010]]></category>
		<category><![CDATA[Visio Services]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/2011/02/24/dynamic-visualization-with-visio-sharepoint/</guid>
		<description><![CDATA[Yesterday evening Edwin Vriethoff and myself did a presentation at the DIWUG on Visio 2010 and Visio Services. Download the presentation here: Download: Dynamic visualization with Visio &#38; SharePoint.pptx The agenda: Visio 2010 &#38; Visio Services Linking data and web parts Real-life examples Summary Tagged: Community, Presentation, Visio 2010, Visio Services<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=48&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Yesterday evening Edwin Vriethoff and myself did a presentation at the DIWUG on <strong>Visio 2010</strong> and <strong>Visio Services</strong>. Download the presentation here:</p>
<div id="scid:8eb9d37f-1541-4f29-b6f4-1eea890d4876:7eb15ad2-2f9a-4794-9f2c-c94f88d75cd0" class="wlWriterEditableSmartContent" style="display:inline;float:none;margin:0;padding:0;">
<div><a href="http://bramdejager.files.wordpress.com/2011/02/dynamic-visualization-with-visio-sharepoint-diwug1.pptx" target="_self">Download: Dynamic visualization with Visio &amp; SharePoint.pptx</a></div>
</div>
<p>The agenda:</p>
<ul>
<li>Visio 2010 &amp; Visio Services</li>
<li>Linking data and web parts</li>
<li>Real-life examples</li>
<li>Summary</li>
</ul>
<p><a href="http://bramdejager.files.wordpress.com/2011/02/dynamic-visualization-with_-visio_-sharepoint-diwug_.pptx"><img style="display:inline;" title="Download PowerPoint" src="http://bramdejager.files.wordpress.com/2011/02/download-powerpoint1.png?w=100&#038;h=100" alt="Download PowerPoint" width="100" height="100" /></a></p>
<br /> Tagged: <a href='http://bramdejager.wordpress.com/tag/community/'>Community</a>, <a href='http://bramdejager.wordpress.com/tag/presentation/'>Presentation</a>, <a href='http://bramdejager.wordpress.com/tag/visio-2010/'>Visio 2010</a>, <a href='http://bramdejager.wordpress.com/tag/visio-services/'>Visio Services</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=48&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2011/02/24/dynamic-visualization-with-visio-sharepoint/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2011/02/download-powerpoint1.png" medium="image">
			<media:title type="html">Download PowerPoint</media:title>
		</media:content>
	</item>
		<item>
		<title>Default User Profile properties</title>
		<link>http://bramdejager.wordpress.com/2011/02/03/default-user-profile-properties/</link>
		<comments>http://bramdejager.wordpress.com/2011/02/03/default-user-profile-properties/#comments</comments>
		<pubDate>Thu, 03 Feb 2011 11:44:55 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[UPS]]></category>
		<category><![CDATA[User Profiles]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/2011/02/03/default-user-profile-properties/</guid>
		<description><![CDATA[In my previous post Retrieve User Profile information and display all properties in simple webpart I provided a web part showing all user profile properties and values of a user account. Today I needed the out-of-the-box (OOB) list of all profile properties. Below the full list of all properties. [Update: link to TechNet article Default [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=43&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>In my previous post <a href="https://bramdejager.wordpress.com/2010/12/09/retrieve-user-profile-information-and-display-all-properties-in-simple-webpart/">Retrieve User Profile information and display all properties in simple webpart</a> I provided a web part showing all user profile properties and values of a user account. </p>
<p>Today I needed the out-of-the-box (OOB) list of all profile properties. Below the full list of all properties. </p>
<p>[<strong>Update</strong>: link to TechNet article <a href="http://technet.microsoft.com/en-us/library/hh147513.aspx" target="_blank">Default user profile properties (SharePoint Server 2010)</a> and <a href="http://technet.microsoft.com/en-us/library/hh147510.aspx" target="_blank">Default user profile property mappings (SharePoint Server 2010)</a>]</p>
<table class="props">
<tbody>
<tr>
<td><strong><em>Displayname</em></strong></td>
<td><strong><em>Name</em></strong></td>
<td><strong><em>Value</em></strong></td>
</tr>
<tr>
<td colspan="3"><b>Section: Basic Information</b></td>
</tr>
<tr>
<td>Id</td>
<td>UserProfile_GUID</td>
<td></td>
</tr>
<tr>
<td>SID</td>
<td>SID</td>
<td></td>
</tr>
<tr>
<td>Active Directory Id</td>
<td>ADGuid</td>
<td></td>
</tr>
<tr>
<td>Account name</td>
<td>AccountName</td>
<td></td>
</tr>
<tr>
<td>First name</td>
<td>FirstName</td>
<td></td>
</tr>
<tr>
<td>Phonetic First Name</td>
<td>SPS-PhoneticFirstName</td>
<td></td>
</tr>
<tr>
<td>Last name</td>
<td>LastName</td>
<td></td>
</tr>
<tr>
<td>Phonetic Last Name</td>
<td>SPS-PhoneticLastName</td>
<td></td>
</tr>
<tr>
<td>Name</td>
<td>PreferredName</td>
<td></td>
</tr>
<tr>
<td>Phonetic Display Name</td>
<td>SPS-PhoneticDisplayName</td>
<td></td>
</tr>
<tr>
<td>Work phone</td>
<td>WorkPhone</td>
<td></td>
</tr>
<tr>
<td>Department</td>
<td>Department</td>
<td></td>
</tr>
<tr>
<td>Title</td>
<td>Title</td>
<td></td>
</tr>
<tr>
<td>Job Title</td>
<td>SPS-JobTitle</td>
<td></td>
</tr>
<tr>
<td>Manager</td>
<td>Manager</td>
<td></td>
</tr>
<tr>
<td>About me</td>
<td>AboutMe</td>
<td></td>
</tr>
<tr>
<td>Personal site</td>
<td>PersonalSpace</td>
<td></td>
</tr>
<tr>
<td>Picture</td>
<td>PictureURL</td>
<td></td>
</tr>
<tr>
<td>User name</td>
<td>UserName</td>
<td></td>
</tr>
<tr>
<td>Quick links</td>
<td>QuickLinks</td>
<td></td>
</tr>
<tr>
<td>Web site</td>
<td>WebSite</td>
<td></td>
</tr>
<tr>
<td>Public site redirect</td>
<td>PublicSiteRedirect</td>
<td></td>
</tr>
<tr>
<td>Data source</td>
<td>SPS-DataSource</td>
<td></td>
</tr>
<tr>
<td>MemberOf</td>
<td>SPS-MemberOf</td>
<td></td>
</tr>
<tr>
<td>Dotted-line Manager</td>
<td>SPS-Dotted-line</td>
<td></td>
</tr>
<tr>
<td>Peers</td>
<td>SPS-Peers</td>
<td></td>
</tr>
<tr>
<td>Ask Me About</td>
<td>SPS-Responsibility</td>
<td></td>
</tr>
<tr>
<td>SIP Address</td>
<td>SPS-SipAddress</td>
<td></td>
</tr>
<tr>
<td>My Site Upgrade</td>
<td>SPS-MySiteUpgrade</td>
<td></td>
</tr>
<tr>
<td>Don&#8217;t Suggest List</td>
<td>SPS-DontSuggestList</td>
<td></td>
</tr>
<tr>
<td>Proxy addresses</td>
<td>SPS-ProxyAddresses</td>
<td></td>
</tr>
<tr>
<td>Hire date</td>
<td>SPS-HireDate</td>
<td></td>
</tr>
<tr>
<td>Display Order</td>
<td>SPS-DisplayOrder</td>
<td></td>
</tr>
<tr>
<td>Claim User Identifier</td>
<td>SPS-ClaimID</td>
<td></td>
</tr>
<tr>
<td>Claim Provider Identifier</td>
<td>SPS-ClaimProviderID</td>
<td></td>
</tr>
<tr>
<td>Claim Provider Type</td>
<td>SPS-ClaimProviderType</td>
<td></td>
</tr>
<tr>
<td>Last Colleague Added</td>
<td>SPS-LastColleagueAdded</td>
<td></td>
</tr>
<tr>
<td>Outlook Web Access URL</td>
<td>SPS-OWAUrl</td>
<td></td>
</tr>
<tr>
<td>Saved Account Name</td>
<td>SPS-SavedAccountName</td>
<td></td>
</tr>
<tr>
<td>Saved SID</td>
<td>SPS-SavedSID</td>
<td></td>
</tr>
<tr>
<td>Resource Forest SID</td>
<td>SPS-ResourceSID</td>
<td></td>
</tr>
<tr>
<td>Resource Forest Account Name</td>
<td>SPS-ResourceAccountName</td>
<td></td>
</tr>
<tr>
<td>Object Exists</td>
<td>SPS-ObjectExists</td>
<td></td>
</tr>
<tr>
<td>Master Account Name</td>
<td>SPS-MasterAccountName</td>
<td></td>
</tr>
<tr>
<td>Distinguished Name</td>
<td>SPS-DistinguishedName</td>
<td></td>
</tr>
<tr>
<td>Source Object Distinguished Name</td>
<td>SPS-SourceObjectDN</td>
<td></td>
</tr>
<tr>
<td>Last Keyword Added</td>
<td>SPS-LastKeywordAdded</td>
<td></td>
</tr>
<tr>
<td colspan="3"><b>Section: Contact Information</b></td>
</tr>
<tr>
<td>Work e-mail</td>
<td>WorkEmail</td>
<td></td>
</tr>
<tr>
<td>Mobile phone</td>
<td>CellPhone</td>
<td></td>
</tr>
<tr>
<td>Fax</td>
<td>Fax</td>
<td></td>
</tr>
<tr>
<td>Home phone</td>
<td>HomePhone</td>
<td></td>
</tr>
<tr>
<td>Office</td>
<td>Office</td>
<td></td>
</tr>
<tr>
<td>Office Location</td>
<td>SPS-Location</td>
<td></td>
</tr>
<tr>
<td>Time Zone</td>
<td>SPS-TimeZone</td>
<td></td>
</tr>
<tr>
<td>Assistant</td>
<td>Assistant</td>
<td></td>
</tr>
<tr>
<td colspan="3"><b>Section: Details</b></td>
</tr>
<tr>
<td>Past projects</td>
<td>SPS-PastProjects</td>
<td></td>
</tr>
<tr>
<td>Skills</td>
<td>SPS-Skills</td>
<td></td>
</tr>
<tr>
<td>Schools</td>
<td>SPS-School</td>
<td></td>
</tr>
<tr>
<td>Birthday</td>
<td>SPS-Birthday</td>
<td></td>
</tr>
<tr>
<td>Status Message</td>
<td>SPS-StatusNotes</td>
<td></td>
</tr>
<tr>
<td colspan="3"><b>Section: Delegation</b></td>
</tr>
<tr>
<td colspan="3"><b>Section: Newsfeed Settings</b></td>
</tr>
<tr>
<td>Interests</td>
<td>SPS-Interests</td>
<td></td>
</tr>
<tr>
<td>Email Notifications</td>
<td>SPS-EmailOptin</td>
<td></td>
</tr>
<tr>
<td colspan="3"><b>Section: Custom Properties</b></td>
</tr>
</tbody>
</table>
<br /> Tagged: <a href='http://bramdejager.wordpress.com/tag/sharepoint-2010/'>SharePoint 2010</a>, <a href='http://bramdejager.wordpress.com/tag/ups/'>UPS</a>, <a href='http://bramdejager.wordpress.com/tag/user-profiles/'>User Profiles</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/43/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=43&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2011/02/03/default-user-profile-properties/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>
	</item>
		<item>
		<title>Why not to install 64-bit SharePoint Designer 2010</title>
		<link>http://bramdejager.wordpress.com/2010/12/23/why-not-to-install-64-bit-sharepoint-designer-2010/</link>
		<comments>http://bramdejager.wordpress.com/2010/12/23/why-not-to-install-64-bit-sharepoint-designer-2010/#comments</comments>
		<pubDate>Thu, 23 Dec 2010 08:42:07 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[Office]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Office 2010]]></category>
		<category><![CDATA[SharePoint Designer]]></category>
		<category><![CDATA[Visio 2010]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/2010/12/23/why-not-to-install-64-bit-sharepoint-designer-2010/</guid>
		<description><![CDATA[Today I wanted to install Visio 2010 on my SharePoint 2010 development machine. But the problem was I simply could not because there was already an Office 2010 64-bit application installed. Correct, yesterday I installed SharePoint Designer 2010 64-bit. Now comes the downside of this; You can’t install Visio 2010 32-bit version when a 64-bit [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=42&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Today I wanted to install Visio 2010 on my SharePoint 2010 development machine. But the problem was I simply could not because there was already an Office 2010 64-bit application installed. Correct, yesterday I installed SharePoint Designer 2010 64-bit. Now comes the downside of this; </p>
<blockquote><p>You can’t install Visio 2010 32-bit version when a 64-bit Office application is already installed on the system.</p>
</blockquote>
<p>Conclusion, if there is no specific reason for installing a 64-bit version of Office. Simply install the 32-bit version.</p>
<br /> Tagged: <a href='http://bramdejager.wordpress.com/tag/office-2010/'>Office 2010</a>, <a href='http://bramdejager.wordpress.com/tag/sharepoint-designer/'>SharePoint Designer</a>, <a href='http://bramdejager.wordpress.com/tag/visio-2010/'>Visio 2010</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=42&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2010/12/23/why-not-to-install-64-bit-sharepoint-designer-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>
	</item>
		<item>
		<title>Retrieve User Profile information and display all properties in simple webpart</title>
		<link>http://bramdejager.wordpress.com/2010/12/09/retrieve-user-profile-information-and-display-all-properties-in-simple-webpart/</link>
		<comments>http://bramdejager.wordpress.com/2010/12/09/retrieve-user-profile-information-and-display-all-properties-in-simple-webpart/#comments</comments>
		<pubDate>Thu, 09 Dec 2010 08:36:46 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[User Profiles]]></category>
		<category><![CDATA[WebPart]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/2010/12/09/retrieve-user-profile-information-and-display-all-properties-in-simple-webpart/</guid>
		<description><![CDATA[When working with User Profiles I want an overview of all user profile properties and the contents of a particular user. This information can be retrieved from the Central Administration. The downside of this is you can either view the profile properties or the user profile. But I am looking for the display name, technical [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=39&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>When working with User Profiles I want an overview of all user profile properties and the contents of a particular user. This information can be retrieved from the Central Administration. The downside of this is you can either view the profile properties or the user profile. But I am looking for the display name, technical name and the value for a particular user. </p>
<p><a href="http://bramdejager.files.wordpress.com/2010/12/user-profile-webpart.jpg"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="User Profile WebPart" border="0" alt="User Profile WebPart" src="http://bramdejager.files.wordpress.com/2010/12/user-profile-webpart_thumb.jpg?w=512&#038;h=484" width="512" height="484" /></a></p>
<p>This can be achieved by developing a webpart which loops the user profile properties and retrieves per property the value of an user profile. The user profile which is displayed can be set in the webpart properties pane.</p>
<p><a href="http://bramdejager.files.wordpress.com/2010/12/user-profile-webpart-property-pane.jpg"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="User Profile WebPart - Property Pane" border="0" alt="User Profile WebPart - Property Pane" src="http://bramdejager.files.wordpress.com/2010/12/user-profile-webpart-property-pane_thumb.jpg?w=229&#038;h=214" width="229" height="214" /></a></p>
<p>The C# code which drives the webpart is shown below. It is pretty straight forward and shows only the retrieval of the user profile properties and values of the user profile. </p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:3cb3c6e6-01c2-4cbe-bd5f-320e9a7fc5e5" class="wlWriterEditableSmartContent">
<pre style="width:509px;height:650px;background-color:#DADADA;white-space:pre-wrap;word-wrap:break-word;overflow:auto;"><div><span style="color:#000000;">System.Security.PermissionSet ps </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#0000FF;">new</span><span style="color:#000000;"> System.Security.PermissionSet(System.Security.Permissions.PermissionState.Unrestricted);
ps.Assert();

Microsoft.SharePoint.SPServiceContext serviceContext </span><span style="color:#000000;">=</span><span style="color:#000000;"> Microsoft.SharePoint.SPServiceContext.Current;
UserProfileManager upm </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#0000FF;">new</span><span style="color:#000000;"> Microsoft.Office.Server.UserProfiles.UserProfileManager(serviceContext);
ProfileSubtypePropertyManager pspm </span><span style="color:#000000;">=</span><span style="color:#000000;"> upm.DefaultProfileSubtypeProperties;

UserProfile profile </span><span style="color:#000000;">=</span><span style="color:#000000;"> upm.GetUserProfile(</span><span style="color:#800000;">&quot;</span><span style="color:#800000;">CONTOSO\AaronP</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">);

</span><span style="color:#0000FF;">this</span><span style="color:#000000;">.Controls.Add(</span><span style="color:#0000FF;">new</span><span style="color:#000000;"> Literal() { Text </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">&lt;table border='0' &gt; &lt;tr&gt;&lt;td&gt;Displayname&lt;/td&gt;&lt;td&gt;Name&lt;/td&gt;&lt;td&gt;Value&lt;/td&gt;&lt;/tr&gt;</span><span style="color:#800000;">&quot;</span><span style="color:#000000;"> });
</span><span style="color:#0000FF;">foreach</span><span style="color:#000000;"> (ProfileSubtypeProperty prop </span><span style="color:#0000FF;">in</span><span style="color:#000000;"> pspm.PropertiesWithSection)
{
    </span><span style="color:#0000FF;">if</span><span style="color:#000000;"> (prop.IsSection)
        </span><span style="color:#0000FF;">this</span><span style="color:#000000;">.Controls.Add(</span><span style="color:#0000FF;">new</span><span style="color:#000000;"> Literal() { Text </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#0000FF;">string</span><span style="color:#000000;">.Format(</span><span style="color:#800000;">&quot;</span><span style="color:#800000;">&lt;tr&gt;&lt;td colspan='3'&gt;&lt;b&gt;Section: {0}&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">, prop.DisplayName) });
    </span><span style="color:#0000FF;">else</span><span style="color:#000000;">
    {
        </span><span style="color:#0000FF;">string</span><span style="color:#000000;"> text </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#0000FF;">string</span><span style="color:#000000;">.Format(</span><span style="color:#800000;">&quot;</span><span style="color:#800000;">&lt;tr&gt;&lt;td&gt;{0}&lt;/td&gt;&lt;td&gt;{1}&lt;/td&gt;&lt;td&gt;{2}&lt;/td&gt;&lt;/tr&gt;</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">,
            prop.DisplayName,
            prop.Name,
            profile[prop.Name].Value);

        </span><span style="color:#0000FF;">this</span><span style="color:#000000;">.Controls.Add(</span><span style="color:#0000FF;">new</span><span style="color:#000000;"> Literal() { Text </span><span style="color:#000000;">=</span><span style="color:#000000;"> text });
    }
}
</span><span style="color:#0000FF;">this</span><span style="color:#000000;">.Controls.Add(</span><span style="color:#0000FF;">new</span><span style="color:#000000;"> Literal() { Text </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">&lt;/table&gt;</span><span style="color:#800000;">&quot;</span><span style="color:#000000;"> });</span></div></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<p><a href="http://sp2010userprofilewp.codeplex.com/" target="_blank"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;float:left;border-top:0;border-right:0;padding-top:0;" title="Download" border="0" alt="Download" align="left" src="http://bramdejager.files.wordpress.com/2010/12/download1.png?w=100&#038;h=100" width="100" height="100" /></a>You can download the WSP package and source code at <a title="http://sp2010userprofilewp.codeplex.com/" href="http://sp2010userprofilewp.codeplex.com/">http://sp2010userprofilewp.codeplex.com/</a>.</p>
<br /> Tagged: <a href='http://bramdejager.wordpress.com/tag/user-profiles/'>User Profiles</a>, <a href='http://bramdejager.wordpress.com/tag/webpart/'>WebPart</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/39/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=39&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2010/12/09/retrieve-user-profile-information-and-display-all-properties-in-simple-webpart/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2010/12/user-profile-webpart_thumb.jpg" medium="image">
			<media:title type="html">User Profile WebPart</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2010/12/user-profile-webpart-property-pane_thumb.jpg" medium="image">
			<media:title type="html">User Profile WebPart - Property Pane</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2010/12/download1.png" medium="image">
			<media:title type="html">Download</media:title>
		</media:content>
	</item>
		<item>
		<title>Create site-collection based on custom sandbox solution template</title>
		<link>http://bramdejager.wordpress.com/2010/12/08/create-site-collection-based-on-custom-sandbox-solution-template/</link>
		<comments>http://bramdejager.wordpress.com/2010/12/08/create-site-collection-based-on-custom-sandbox-solution-template/#comments</comments>
		<pubDate>Wed, 08 Dec 2010 07:32:29 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Sandbox Solution]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[Web Template]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/2010/12/08/create-site-collection-based-on-custom-sandbox-solution-template/</guid>
		<description><![CDATA[SharePoint provides a couple out-of-the-box web templates. When implementing SharePoint this you probably want to provide a customized template which suit the needs. A big advantage would be if you are not depending on an administrator and being able to provide your own custom template. With sandboxed solution in SharePoint 2010 this is possible! What [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=32&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>SharePoint provides a couple out-of-the-box web templates. When implementing SharePoint this you probably want to provide a customized template which suit the needs. A big advantage would be if you are not depending on an administrator and being able to provide your own custom template. With sandboxed solution in SharePoint 2010 this is possible! What is really nice about this, you can also do this when creating a site-collection and choose the custom template for the root web.</p>
<p>I created a site-collection based on the out-of-the-box Team Site template (STS#1). Made changes to the site by adding a new list FAQs, added a task to the Task list and added the Tasks list on the homepage. This is the basics for my template. </p>
<p><a href="http://bramdejager.files.wordpress.com/2010/12/template-team-site.jpg"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="Template - Team Site" border="0" alt="Template - Team Site" src="http://bramdejager.files.wordpress.com/2010/12/template-team-site_thumb.jpg?w=244&#038;h=161" width="244" height="161" /></a></p>
<p>Next step is to save the team site as a template.</p>
<ol>
<li>Click <em>Site Actions » Site Settings</em> </li>
<li>Click <em>Save site as template</em> </li>
<li>Fill in the fields
<ul>
<li>File name: TeamSiteTemplate </li>
<li>Template name: Team Site Template </li>
<li>Check the <em>Include Content</em> checkbox </li>
</ul>
</li>
<li>Click <em>OK</em> </li>
<li>Click the link <em>Solution Gallery </em>in the “Operation Completed Successfully” window </li>
<li>Click the “TeamSiteTemplate” name to download the WSP solution file, save on your desktop </li>
</ol>
<p>At this point we have a WSP solution file containing a template for a new site. We want to create a new site-collection based on this template. But we do not want to upload the WSP solution as a Farm Solution. We can create the new site-collection based a sandbox solution containing the template. </p>
<ol>
<li>Open <em>SharePoint 2010 Central Administration</em> via <em>Start Menu</em> </li>
<li>Click <em>Application Management » Create Site Collections</em> </li>
<li>Select a web application </li>
<li>Fill in the fields </li>
<li>When selecting a template, click the <em>Custom</em> tab and select “&lt; Select template later… &gt;” </li>
<li>Click <em>OK</em> </li>
</ol>
<p>The site-collection is created but has no template. Meaning it is also not provisioned with lists and libraries. We want the site-collection to be based on our sandboxed solution template. Next steps will explain!</p>
<ol>
<li>Open the new site-collection URL </li>
<li>The “Template Selection” page is shown      <br /><a href="http://bramdejager.files.wordpress.com/2010/12/template-template-selection.jpg"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="Template - Template Selection" border="0" alt="Template - Template Selection" src="http://bramdejager.files.wordpress.com/2010/12/template-template-selection_thumb.jpg?w=244&#038;h=161" width="244" height="161" /></a> </li>
<li>Click <em>Solution Gallery</em> </li>
<li>Upload the sandboxed solution by click the <em>Solutions</em> tab in the ribbon </li>
<li>When uploaded, activate the solution by clicking <em>Activate</em> in the <em>Solution Gallery – Activate Solution</em> window </li>
<li>Go back to the <em>Template Selection</em> page (_layouts/templatepick.aspx) by using the Back-button </li>
<li>Refresh the page, the <em>Custom</em> tab should show up       <br /><a href="http://bramdejager.files.wordpress.com/2010/12/template-template-selection-2.jpg"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="Template - Template Selection 2" border="0" alt="Template - Template Selection 2" src="http://bramdejager.files.wordpress.com/2010/12/template-template-selection-2_thumb.jpg?w=244&#038;h=161" width="244" height="161" /></a> </li>
<li>Select the <em>Custom</em> tab and select our “TeamSiteTemplate” </li>
<li>Click <em>OK</em> </li>
</ol>
<p>Now the site-collection is provisioned based on the sandboxed solution. The site is provisioned with the FAQs list and one task in the Task list which is shown on the homepage. </p>
<p><a href="http://bramdejager.files.wordpress.com/2010/12/template-complete.jpg"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="Template - Complete" border="0" alt="Template - Complete" src="http://bramdejager.files.wordpress.com/2010/12/template-complete_thumb.jpg?w=644&#038;h=422" width="644" height="422" /></a></p>
<br /> Tagged: <a href='http://bramdejager.wordpress.com/tag/sandbox-solution/'>Sandbox Solution</a>, <a href='http://bramdejager.wordpress.com/tag/sharepoint-2010/'>SharePoint 2010</a>, <a href='http://bramdejager.wordpress.com/tag/web-template/'>Web Template</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=32&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2010/12/08/create-site-collection-based-on-custom-sandbox-solution-template/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2010/12/template-team-site_thumb.jpg" medium="image">
			<media:title type="html">Template - Team Site</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2010/12/template-template-selection_thumb.jpg" medium="image">
			<media:title type="html">Template - Template Selection</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2010/12/template-template-selection-2_thumb.jpg" medium="image">
			<media:title type="html">Template - Template Selection 2</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2010/12/template-complete_thumb.jpg" medium="image">
			<media:title type="html">Template - Complete</media:title>
		</media:content>
	</item>
		<item>
		<title>Open in Windows Explorer does not work, try direct link (WebDAV)</title>
		<link>http://bramdejager.wordpress.com/2010/11/29/open-in-windows-explorer-does-not-work-try-direct-link-webdav/</link>
		<comments>http://bramdejager.wordpress.com/2010/11/29/open-in-windows-explorer-does-not-work-try-direct-link-webdav/#comments</comments>
		<pubDate>Mon, 29 Nov 2010 16:11:05 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[WebDAV]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/2010/11/29/open-in-windows-explorer-does-not-work-try-direct-link-webdav/</guid>
		<description><![CDATA[Receiving an error when you want to open the Windows Explorer view for a document library. For instance: “Your client does not support opening this list with Windows Explorer” This looks like: A workaround is opening the document library in Windows Explorer. You would need a different link than the one in the browser otherwise [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=21&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Receiving an error when you want to open the Windows Explorer view for a document library. For instance:</p>
<blockquote><p>“Your client does not support opening this list with Windows Explorer”</p>
</blockquote>
<p>This looks like:</p>
<p><a href="http://bramdejager.files.wordpress.com/2010/11/erroropenwindowsexplorerview.jpg"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;border-top:0;margin-right:auto;border-right:0;padding-top:0;" title="Error Opening Windows Explorer view" border="0" alt="Error Opening Windows Explorer view" src="http://bramdejager.files.wordpress.com/2010/11/erroropenwindowsexplorerview_thumb.jpg?w=244&#038;h=89" width="244" height="89" /></a></p>
<p>A workaround is opening the document library in Windows Explorer. You would need a different link than the one in the browser otherwise Windows will use your browser for opening the link. </p>
<blockquote><p><font color="#444444"><a href="//\\webapplicationurl@SSL\DavWWWRoot\sites\sitecollection">\\webapplicationurl@SSL\DavWWWRoot\sites\sitecollection</a>&#160;</font></p>
</blockquote>
<p>For example we want to open the document library “Shared Documents” in the site collection <a href="https://teamsite.sharepoint.com/sites/teamsite1">https://teamsite.sharepoint.com/sites/teamsite1</a>. The direct link would be <font color="#444444"><a href="\\teamsite.sharepoint.com@SSL\DavWWWRoot\sites\teamsite1\Shared Documents" target="_blank">\\teamsite.sharepoint.com@SSL\DavWWWRoot\sites\teamsite1\Shared Documents</a></font><font color="#444444">. </font></p>
<p>This is also useful when you want to look at attachments from a list. You can change the link and navigate the complete site collection folder structure.</p>
<br /> Tagged: <a href='http://bramdejager.wordpress.com/tag/webdav/'>WebDAV</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=21&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2010/11/29/open-in-windows-explorer-does-not-work-try-direct-link-webdav/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>

		<media:content url="http://bramdejager.files.wordpress.com/2010/11/erroropenwindowsexplorerview_thumb.jpg" medium="image">
			<media:title type="html">Error Opening Windows Explorer view</media:title>
		</media:content>
	</item>
		<item>
		<title>How to: Turn on the State Service Application</title>
		<link>http://bramdejager.wordpress.com/2010/11/22/how-to-turn-on-the-state-service-application/</link>
		<comments>http://bramdejager.wordpress.com/2010/11/22/how-to-turn-on-the-state-service-application/#comments</comments>
		<pubDate>Mon, 22 Nov 2010 08:37:10 +0000</pubDate>
		<dc:creator>Bram de Jager</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Service Application]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[State Service]]></category>

		<guid isPermaLink="false">https://bramdejager.wordpress.com/2010/11/22/how-to-turn-on-the-state-service-application/</guid>
		<description><![CDATA[When publishing a page in SharePoint or wanting to start a workflow you may receive the following error. “The form cannot be rendered. This may be due to a misconfiguration of the Microsoft SharePoint Server State Service. For more information, contact your server administrator.” This is likely caused because the State Service Application is not [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=15&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>When publishing a page in SharePoint or wanting to start a workflow you may receive the following error. </p>
<blockquote><p>“The form cannot be rendered. This may be due to a misconfiguration of the Microsoft SharePoint Server State Service. For more information, contact your server administrator.”</p>
</blockquote>
<p>This is likely caused because the State Service Application is not turned on. You can check this in the <em>Central Administration » </em><em>Application Management » Manage Service Applications</em>. If the State Service Application is not listed you know why the message is showing.</p>
<p>There are two ways for activating the State Service Application. One is using the Farm Configuration Wizard (FCW). But I prefer via PowerShell, below the script for creating the new service application and add to default proxy group. If you like you can choose your own name parameters.</p>
<blockquote><p>$serviceApp = New-SPStateServiceApplication -Name &quot;State Service Application&quot;      <br />New-SPStateServiceDatabase -Name &quot;StateService_DB&quot; -ServiceApplication $serviceApp       <br />New-SPStateServiceApplicationProxy -Name &quot;State Service Application Proxy&quot; -ServiceApplication $serviceApp –DefaultProxyGroup</p>
</blockquote>
<p><font color="#666666">More on TechNet on State Service: </font>
<p><a href="http://technet.microsoft.com/en-us/library/ee704548.aspx">http://technet.microsoft.com/en-us/library/ee704548.aspx</a></p></p>
<br /> Tagged: <a href='http://bramdejager.wordpress.com/tag/powershell/'>PowerShell</a>, <a href='http://bramdejager.wordpress.com/tag/service-application/'>Service Application</a>, <a href='http://bramdejager.wordpress.com/tag/sharepoint-2010/'>SharePoint 2010</a>, <a href='http://bramdejager.wordpress.com/tag/state-service/'>State Service</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bramdejager.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bramdejager.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bramdejager.wordpress.com&#038;blog=4619659&#038;post=15&#038;subd=bramdejager&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bramdejager.wordpress.com/2010/11/22/how-to-turn-on-the-state-service-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1033562036d624d159cf7a8d425fd3c4?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bramdejager</media:title>
		</media:content>
	</item>
	</channel>
</rss>
