<?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>Koen's Weblog</title>
	<atom:link href="http://koenvosters.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://koenvosters.wordpress.com</link>
	<description>SharePoint developer with a life!</description>
	<lastBuildDate>Tue, 10 Nov 2009 14:58:10 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='koenvosters.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/578df625aed2be359a2033afb2a1bb8e?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Koen's Weblog</title>
		<link>http://koenvosters.wordpress.com</link>
	</image>
			<item>
		<title>Enabling Virtualization on your Sony Vaio</title>
		<link>http://koenvosters.wordpress.com/2009/11/09/enabling-virtualization-on-your-sony-vaio/</link>
		<comments>http://koenvosters.wordpress.com/2009/11/09/enabling-virtualization-on-your-sony-vaio/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 09:52:55 +0000</pubDate>
		<dc:creator>koenvosters</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Moss 2010]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[Sony]]></category>
		<category><![CDATA[Vaio]]></category>

		<guid isPermaLink="false">http://koenvosters.wordpress.com/?p=377</guid>
		<description><![CDATA[This weekend I bought myself a Sony Vaio to be able to run SP2010 on a laptop as well (so that when I got some time during noon I can play around). After installing Windows Server 2008 R2 on it and enabling Hyper-V I got this nice message telling me that virtualization on a Sony [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koenvosters.wordpress.com&blog=4163625&post=377&subd=koenvosters&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This weekend I bought myself a Sony Vaio to be able to run SP2010 on a laptop as well (so that when I got some time during noon I can play around). After installing Windows Server 2008 R2 on it and enabling Hyper-V I got this nice message telling me that virtualization on a Sony Vaio is disabled. After checking online I found only links to obscure BIOS hacks to enable this, and a blog post of one of the big guys of Sony telling us that in the future it would be enabled. That blog post was 4 months ago but my stuff wasn&#8217;t working and brand new. Luckily, the Sony site has a BIOS update utility to enable this, but search engines didn&#8217;t turn up anything about it, therefor this post. Select the model of your VAIO, select downloads and then the BIOS Utility. Take into account that installing the BIOS update does not enable your hardware virtualization. You need to press F2 to get into your BIOS, enable hardware virtualization and you are ready to go. The machine rocks btw, and for a price of 1260 euro it&#8217;s pretty high on the value/quality part as far as I&#8217;m concerned as it has 6GB of memory.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/koenvosters.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/koenvosters.wordpress.com/377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/koenvosters.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/koenvosters.wordpress.com/377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/koenvosters.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/koenvosters.wordpress.com/377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/koenvosters.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/koenvosters.wordpress.com/377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/koenvosters.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/koenvosters.wordpress.com/377/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koenvosters.wordpress.com&blog=4163625&post=377&subd=koenvosters&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://koenvosters.wordpress.com/2009/11/09/enabling-virtualization-on-your-sony-vaio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d752a106a68a786a70e1a07e2fe19416?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">koenvosters</media:title>
		</media:content>
	</item>
		<item>
		<title>HOWTO: Add a button to the ribbon in SharePoint 2010</title>
		<link>http://koenvosters.wordpress.com/2009/11/05/howto-add-a-button-to-the-ribbon-in-sharepoint-2010/</link>
		<comments>http://koenvosters.wordpress.com/2009/11/05/howto-add-a-button-to-the-ribbon-in-sharepoint-2010/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 17:36:29 +0000</pubDate>
		<dc:creator>koenvosters</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Moss 2010]]></category>
		<category><![CDATA[Ribbon]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2010]]></category>

		<guid isPermaLink="false">http://koenvosters.wordpress.com/2009/11/05/howto-add-a-button-to-the-ribbon-in-sharepoint-2010/</guid>
		<description><![CDATA[This post is intended for BETA1. It will work on BETA2 as well, just remove the … for 
After a few hours of messing around in XML, we (Jopx and I) figured out how to put a button on the Ribbon. First of all, how does it work? There is some XML (located in the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koenvosters.wordpress.com&blog=4163625&post=376&subd=koenvosters&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>This post is intended for BETA1. It will work on BETA2 as well, just remove the … for</strong> </p>
<p>After a few hours of messing around in XML, we (<a href="http://jopx.blogspot.com/" target="_blank">Jopx</a> and I) figured out how to put a button on the Ribbon. First of all, how does it work? There is some XML (located in the 14 hive/templates/global/xml) in a file called CMDGui.XML. This contains the entire Ribbon XML that is used to render the ribbon. To get that XML into a Ribbon, there are two javascript files that translate that data into a workeable ribbon (CUI.js and SP.Ribbon.js). What do we need to do to create our custom button? It’s quite simple, you just create some XML, push it to the SharePoint environment by making use of an empty element, add some stuff to the templates/xml folder and you’re set. That is once you figured it all out <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>First of all, create a new Empty SharePoint project in Visual Studio. (no screenshots after this as my laptop here can’t run SP2010) </p>
<p><a href="http://koenvosters.files.wordpress.com/2009/11/image.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://koenvosters.files.wordpress.com/2009/11/image_thumb.png?w=652&#038;h=460" width="652" height="460" /></a>     </p>
<ul>
<li>Rename your project to MyCoolButton</li>
<li>Add an empty Element. </li>
<li>In that element, paste the following xml:</li>
</ul>
<pre class="code"><span style="color:blue;">&lt;?</span><span style="color:#a31515;">xml </span><span style="color:red;">version</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">1.0</span>&quot; <span style="color:red;">encoding</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">utf-8</span>&quot; <span style="color:blue;">?&gt;
&lt;</span><span style="color:#a31515;">Elements </span><span style="color:red;">xmlns</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">http://schemas.microsoft.com/sharepoint/</span>&quot;<span style="color:blue;">&gt;
  &lt;</span><span style="color:#a31515;">CustomAction </span><span style="color:red;">Id</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">MeSoCool</span>&quot; <span style="color:red;">Location</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">CommandUI.Ribbon.Documents.New.Controls._children</span>&quot;<span style="color:blue;">&gt;
    &lt;</span><span style="color:#a31515;">CommandUIExtension</span><span style="color:blue;">&gt;
      &lt;</span><span style="color:#a31515;">CommandUIDefinitions</span><span style="color:blue;">&gt;
        &lt;</span><span style="color:#a31515;">CommandUIDefinition </span><span style="color:red;">Location</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">CommandUI.Ribbon.Documents.New.Controls._children</span>&quot;<span style="color:blue;">&gt;
          &lt;</span><span style="color:#a31515;">Button </span><span style="color:red;">Id</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">Ribbon.Documents.New.Controls.MyCoolButton</span>&quot;
                  <span style="color:red;">Image16by16</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">/_layouts/images/edit.gif</span>&quot;
                  <span style="color:red;">Image32by32</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">/_layouts/images/placeholder32x32.png</span>&quot;
                  <span style="color:red;">Description</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">MyDescription</span>&quot;
                  <span style="color:red;">Command</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">MyCoolButton</span>&quot;
                  <span style="color:red;">LabelText</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">Banzai</span>&quot;
                  <span style="color:red;">Sequence</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">60</span>&quot;
                  <span style="color:red;">TemplateAlias</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">o1</span>&quot; <span style="color:blue;">/&gt;
        &lt;/</span><span style="color:#a31515;">CommandUIDefinition</span><span style="color:blue;">&gt;
      &lt;/</span><span style="color:#a31515;">CommandUIDefinitions</span><span style="color:blue;">&gt;
    &lt;/</span><span style="color:#a31515;">CommandUIExtension</span><span style="color:blue;">&gt;
  &lt;/</span><span style="color:#a31515;">CustomAction</span><span style="color:blue;">&gt;
&lt;/</span><span style="color:#a31515;">Elements</span><span style="color:blue;">&gt;
</span><span style="color:blue;">
</span></pre>
<p><a href="http://11011.net/software/vspaste"></a></p>
<p>What does all this XML mean?</p>
<p>First of all we will be adding a <strong>CustomAction</strong>, and the most important attribute there is the Location. This location attribute will define where the button is going to appear. Notice that the same attribute is also defined in the CustomUIDefinition which is the location where it will need to be defined in Beta2. So in Beta1 apply the Location to the CustomAction, in Beta2 only apply the location to the CommandUIDefinition. Notice the _children in the end, you need to add it to be able to add buttons to that Control collection.</p>
<p>Where does this location come from? In the CMDGui.XML file that location is defined in a group. This group is part of a group collection called <strong>Ribbon.Documents.Groups</strong> which is part of the Tab called <strong>Ribbon.Documents</strong>.&#160; This tab is the ribbon we will see when we are working with documents. Important to notice is the Template the group is using. If the Template used is <strong>Ribbon.Templates.Flexible2</strong> you can add buttons to that group. If it isn’t a flexible template (like Ribbon.Templates.ThreeRowsSixAlignedControls2) then you can’t add buttons as those are fixed templates. As an example I added the xml for the<strong> Ribbon.Documents.New</strong> group.</p>
<pre class="code"><span style="color:blue;">&lt;</span><span style="color:#a31515;">Group
            </span><span style="color:red;">Id</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">Ribbon.Documents.New</span>&quot;
            <span style="color:red;">Sequence</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">10</span>&quot;
            <span style="color:red;">Command</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">DocumentNewGroup</span>&quot;
            <span style="color:red;">Description</span><span style="color:blue;">=</span>&quot;&quot;
            <span style="color:red;">Title</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">$Resources:core,cui_GrpNew;</span>&quot;
            <span style="color:red;">Image32by32Popup</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">/_layouts/images/placeholder32x32.png</span>&quot;
            <span style="color:red;">Template</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">Ribbon.Templates.Flexible2</span>&quot;
          <span style="color:blue;">&gt;
</span></pre>
<p><a href="http://11011.net/software/vspaste"></a></p>
<p>&#160;</p>
<p>Ok, on to the next item in our XML, the <strong>CommandUIExtensions</strong>. They contain the <strong>CommandUIDefinitions</strong> who are defining the element that you are showing (a Button in our case). The name of the second element escapes me and I can’t check SP2010 at the moment, but the other element within the CommandUIExtensions defines the action of the button (what happens if you click on it) Our little post is only focused on making it appear. Now back to our Button Control.</p>
<p><span style="color:blue;">&lt;</span><span style="color:#a31515;">Button </span><span style="color:red;">Id</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">Ribbon.Documents.New.Controls.MyCoolButton</span>&quot;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color:red;">Image16by16</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">/_layouts/images/edit.gif</span>&quot; </p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color:red;">Image32by32</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">/_layouts/images/placeholder32&#215;32.png</span>&quot; </p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color:red;">Description</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">MyDescription</span>&quot; </p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color:red;">Command</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">MyCoolButton</span>&quot; </p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color:red;">LabelText</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">Banzai</span>&quot; </p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color:red;">Sequence</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">60</span>&quot; </p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color:red;">TemplateAlias</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">o1</span>&quot; <span style="color:blue;">/&gt; </span></p>
<p>The Id needs to start with <strong>Ribbon.Documents.New.Controls</strong>. After that you can put whatever you want. The image attributes are used and the images are shown depending on what is defined in the GroupTemplates. What does that mean? In the <strong>GroupTemplates</strong> (also defined in the CMDGui.xml) it is defined how a button in the ribbon should behave when the page gets resized. Should it hide itself, should it change it’s template (for instance instead of 3 large buttons next to eachother 3 small buttons above eachother)That way we can control how our Ribbon is behaving when the page gets resized. <strong>Description</strong> is quite easy to understand what it does, <strong>Command</strong> links to the command that you can define afterwards (you can deploy without having implemented the command), the <strong>LabelText</strong> is used in the template and shown on the ribbon, the <strong>Sequence</strong> defines where the button needs to be places and the <strong>TemplateAlias</strong> links to the template that you are using for that button.</p>
<p>Ok, now that we have that XML we just need to do one more thing:</p>
<p>Add a SharePoint mapped folder to your project and link it to the<strong> templates/xml</strong> folder. It should automatically create a MyCoolButton folder under the XML folder, but if it doesn’t make sure you do. Add an xml file to it callee MyCoolButton.xml. In that file we will define our link to the javascript files.</p>
<pre class="code"><span style="color:blue;">&lt;</span><span style="color:#a31515;">script </span><span style="color:red;">OnDemandKey</span><span style="color:blue;">=</span>&quot;<span style="color:blue;">ribbon</span>&quot;<span style="color:blue;">&gt;
  &lt;</span><span style="color:#a31515;">File</span><span style="color:blue;">&gt;&lt;/</span><span style="color:#a31515;">File</span><span style="color:blue;">&gt;
  &lt;</span><span style="color:#a31515;">File</span><span style="color:blue;">&gt;</span>SP.Ribbon.js<span style="color:blue;">&lt;/</span><span style="color:#a31515;">File</span><span style="color:blue;">&gt;
&lt;/</span><span style="color:#a31515;">script</span><span style="color:blue;">&gt;
</span></pre>
<p><a href="http://11011.net/software/vspaste"></a></p>
<p>
  <br />Now we are set to go. Rightclick your project, select deploy. Go to a document library, on the ribbon select Documents and you should see a new button next to the New Folder button. (More images will follow as soon as I get home, but we were so excited when it finally worked that I at least had to put it online, but I’m sure Joris will do the same very soon <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ) </p>
<p>Should I have missed something, let me know, but this should do the trick for you <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/koenvosters.wordpress.com/376/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/koenvosters.wordpress.com/376/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/koenvosters.wordpress.com/376/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/koenvosters.wordpress.com/376/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/koenvosters.wordpress.com/376/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/koenvosters.wordpress.com/376/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/koenvosters.wordpress.com/376/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/koenvosters.wordpress.com/376/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/koenvosters.wordpress.com/376/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/koenvosters.wordpress.com/376/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koenvosters.wordpress.com&blog=4163625&post=376&subd=koenvosters&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://koenvosters.wordpress.com/2009/11/05/howto-add-a-button-to-the-ribbon-in-sharepoint-2010/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d752a106a68a786a70e1a07e2fe19416?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">koenvosters</media:title>
		</media:content>

		<media:content url="http://koenvosters.files.wordpress.com/2009/11/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Using Javascript and jQuery in MOSS</title>
		<link>http://koenvosters.wordpress.com/2009/10/15/using-javascript-and-jquery-in-moss/</link>
		<comments>http://koenvosters.wordpress.com/2009/10/15/using-javascript-and-jquery-in-moss/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 06:54:53 +0000</pubDate>
		<dc:creator>koenvosters</dc:creator>
				<category><![CDATA[Moss 2007]]></category>

		<guid isPermaLink="false">http://koenvosters.wordpress.com/2009/10/15/using-javascript-and-jquery-in-moss/</guid>
		<description><![CDATA[Jan Tielens released a very nice solution to allow you to easily integrate Javascript and jQuery in your SharePoint sites without having to go through several configurations steps. It allows you to just upload your javascript files to a document library and they will be available in your SharePoint pages. Check it out here.
  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koenvosters.wordpress.com&blog=4163625&post=373&subd=koenvosters&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Jan Tielens released a very nice solution to allow you to easily integrate Javascript and jQuery in your SharePoint sites without having to go through several configurations steps. It allows you to just upload your javascript files to a document library and they will be available in your SharePoint pages. Check it out <a href="http://weblogs.asp.net/jan/archive/2009/10/14/assembly-free-jquery-in-sharepoint-sites-using-the-smarttools-jqueryloader.aspx" target="_blank">here</a>.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/koenvosters.wordpress.com/373/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/koenvosters.wordpress.com/373/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/koenvosters.wordpress.com/373/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/koenvosters.wordpress.com/373/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/koenvosters.wordpress.com/373/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/koenvosters.wordpress.com/373/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/koenvosters.wordpress.com/373/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/koenvosters.wordpress.com/373/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/koenvosters.wordpress.com/373/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/koenvosters.wordpress.com/373/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koenvosters.wordpress.com&blog=4163625&post=373&subd=koenvosters&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://koenvosters.wordpress.com/2009/10/15/using-javascript-and-jquery-in-moss/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d752a106a68a786a70e1a07e2fe19416?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">koenvosters</media:title>
		</media:content>
	</item>
		<item>
		<title>HOWTO : Create a Site with a custom template through code and assign specific user security (User has no rights to create a site).</title>
		<link>http://koenvosters.wordpress.com/2009/09/07/howto-create-a-site-with-a-custom-template-through-code-and-assign-specific-user-security-user-has-no-rights-to-create-a-site/</link>
		<comments>http://koenvosters.wordpress.com/2009/09/07/howto-create-a-site-with-a-custom-template-through-code-and-assign-specific-user-security-user-has-no-rights-to-create-a-site/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 15:58:24 +0000</pubDate>
		<dc:creator>koenvosters</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Moss 2007]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Custom Template]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://koenvosters.wordpress.com/2009/09/07/howto-create-a-site-with-a-custom-template-through-code-and-assign-specific-user-security-user-has-no-rights-to-create-a-site/</guid>
		<description><![CDATA[Imagine the following scenario. In your site collections visitors need to be able to create 1 type of sites. When they create that type of site (with a custom template) they need to become the administrator of that site, as well as the people maintaining the site collection.
How do we do that in SharePoint? We [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koenvosters.wordpress.com&blog=4163625&post=355&subd=koenvosters&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Imagine the following scenario. In your site collections visitors need to be able to create 1 type of sites. When they create that type of site (with a custom template) they need to become the administrator of that site, as well as the people maintaining the site collection.</p>
<p>How do we do that in SharePoint? We create a site while running with Elevated Privileges, let it inherit the rights of the Site Collection. Once the site is created, we break the inheritance and add specific user rights for that user.</p>
<p>First of all we will be creating a function that accepts a few strings that we need to create the site.</p>
<div id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:b35a456a-02a7-4ef2-8533-f95b96715ffa" class="wlWriterEditableSmartContent" style="padding:5px;">
<div style="border:#000080 1px solid;font-family:'Courier New', Courier, Monospace;font-size:10pt;">
<div style="background:#000080;color:#fff;font-family:Verdana, Tahoma, Arial, sans-serif;font-weight:bold;padding:2px 5px;">Code Snippet</div>
<div style="background:#ddd;max-height:300px;overflow:scroll;padding:0;">
<ol style="background:#ffffff;white-space:wrap;margin:0 0 0 25px;">
<li><span style="color:#0000ff;">public</span> <span style="color:#0000ff;">string</span> CreateSite(<span style="color:#0000ff;">string</span> parentSiteUrl, <span style="color:#0000ff;">string</span> siteUrlRequested, <span style="color:#0000ff;">string</span> siteTitle, <span style="color:#0000ff;">string</span> siteTemplateName)</li>
<li style="background:#f3f3f3;">        {</li>
<li>            <span style="color:#0000ff;">return</span> <span style="color:#a31515;">&#8220;&#8221;</span>;</li>
<li style="background:#f3f3f3;">        }</li>
</ol>
</div>
</div>
</div>
<p>The parentSiteUrl is the url in which we will be creating the site, the requested siteUrlRequested is the url we will be creating the site in, the siteTitle is the title we will be giving to the site, and the siteTemplateName is the name of the Custom Template we will be using.</p>
<p>Ok, let’s write the code to create our site in our parentsite. In the GetCustomWebTemplates functions we will be getting the custom web template list corresponding the language of the site. In that list we take the template as specified in the parameter of our function (siteTemplateName). As we can’t be sure that the user has checked if a site url already exists we increase a counter till we find a free siteUrl (this is not mandatory, you can also raise an error on the Exists boolean).</p>
<div id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:8ec72418-271c-4f3b-9afd-0e912096e26d" class="wlWriterEditableSmartContent" style="width:990px;display:block;float:none;margin-left:auto;margin-right:auto;padding:5px;">
<div style="border:#000080 1px solid;font-family:'Courier New', Courier, Monospace;font-size:10pt;">
<div style="background:#000080;color:#fff;font-family:Verdana, Tahoma, Arial, sans-serif;font-weight:bold;padding:2px 5px;">Code Snippet</div>
<div style="background:#ddd;max-height:auto;overflow:scroll;padding:0;">
<ol style="background:#ffffff;white-space:wrap;margin:0 0 0 35px;">
<li><span style="color:#0000ff;">string</span> siteUrlValid = <span style="color:#a31515;">&#8220;&#8221;</span>;</li>
<li style="background:#f3f3f3;">                <span style="color:#0000ff;">const</span> <span style="color:#2b91af;">Int32</span> localeIdEnglish = 1043;</li>
<li>                <span style="color:#2b91af;">SPSecurity</span>.RunWithElevatedPrivileges(<span style="color:#0000ff;">delegate</span></li>
<li style="background:#f3f3f3;">                                                         {</li>
<li>                    </li>
<li style="background:#f3f3f3;">                    <span style="color:#0000ff;">using</span> (<span style="color:#2b91af;">SPSite</span> siteCollection = <span style="color:#0000ff;">new</span> <span style="color:#2b91af;">SPSite</span>(parentSiteUrl))</li>
<li>                    {</li>
<li style="background:#f3f3f3;">                        <span style="color:#0000ff;">using</span> (<span style="color:#2b91af;">SPWeb</span> parentWeb = siteCollection.OpenWeb())</li>
<li>                        {</li>
<li style="background:#f3f3f3;">                            <span style="color:#2b91af;">SPWebTemplateCollection</span> templates = siteCollection.GetCustomWebTemplates(<span style="color:#2b91af;">Convert</span>.ToUInt32(localeIdEnglish));</li>
<li>                            <span style="color:#2b91af;">SPWebTemplate</span> siteTemplate = templates[siteTemplateName];</li>
<li style="background:#f3f3f3;">                            <span style="color:#0000ff;">int</span> counter = 1;</li>
<li>                            siteUrlValid = siteUrlRequested + <span style="color:#a31515;">&#8220;_&#8221;</span> + counter;</li>
<li style="background:#f3f3f3;">                            <span style="color:#0000ff;">while</span> (parentWeb.Webs[siteUrlValid].Exists)</li>
<li>                            {</li>
<li style="background:#f3f3f3;">                                counter++;</li>
<li>                                siteUrlValid = siteUrlRequested + <span style="color:#a31515;">&#8220;_&#8221;</span> + counter;</li>
<li style="background:#f3f3f3;">                            }</li>
<li>                            parentWeb.AllowUnsafeUpdates = <span style="color:#0000ff;">true</span>;</li>
<li style="background:#f3f3f3;">                            <span style="color:#0000ff;">using</span> (<span style="color:#2b91af;">SPWeb</span> myWeb = parentWeb.Webs.Add(</li>
<li>                                siteUrlValid,</li>
<li style="background:#f3f3f3;">                                siteTitle,</li>
<li>                                siteTitle,</li>
<li style="background:#f3f3f3;">                                <span style="color:#2b91af;">Convert</span>.ToUInt32(localeIdEnglish),</li>
<li>                                siteTemplate,</li>
<li style="background:#f3f3f3;">                                <span style="color:#0000ff;">false</span>, <span style="color:#0000ff;">false</span>))</li>
<li>                            {</li>
<li>                                </li>
<li style="background:#f3f3f3;">                            }</li>
<li style="background:#f3f3f3;">                            parentWeb.AllowUnsafeUpdates = <span style="color:#0000ff;">false</span>;</li>
<li>                        }</li>
<li style="background:#f3f3f3;">                    }</li>
<li>                });</li>
<li style="background:#f3f3f3;">                <span style="color:#0000ff;">return</span> siteUrlValid;</li>
</ol>
</div>
</div>
</div>
<p> </p>
<p>With this code our site will be created by making use of the custom template. We are running with Elevated Privileges as the user does not have any permissions to create a subsite. In the using statement of myWeb we will be adding the security changes.</p>
<div id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:7633b786-98f7-472f-a570-b16a85cacb63" class="wlWriterEditableSmartContent" style="width:990px;display:block;float:none;margin-left:auto;margin-right:auto;padding:5px;">
<div style="border:#000080 1px solid;font-family:'Courier New', Courier, Monospace;font-size:10pt;">
<div style="background:#000080;color:#fff;font-family:Verdana, Tahoma, Arial, sans-serif;font-weight:bold;padding:2px 5px;">Code Snippet</div>
<div style="background:#ddd;max-height:auto;overflow:scroll;padding:0;">
<ol style="background:#ffffff;white-space:wrap;margin:0 0 0 35px;">
<li><span style="color:#0000ff;">using</span> (<span style="color:#2b91af;">SPWeb</span> myWeb = parentWeb.Webs.Add(</li>
<li style="background:#f3f3f3;">                                siteUrlValid,</li>
<li>                                siteTitle,</li>
<li style="background:#f3f3f3;">                                siteTitle,</li>
<li>                                <span style="color:#2b91af;">Convert</span>.ToUInt32(localeIdEnglish),</li>
<li style="background:#f3f3f3;">                                siteTemplate,</li>
<li>                                <span style="color:#0000ff;">false</span>, <span style="color:#0000ff;">false</span>))</li>
<li style="background:#f3f3f3;">                            {</li>
<li>                                myWeb.BreakRoleInheritance(<span style="color:#0000ff;">true</span>);</li>
<li>                                <span style="color:#2b91af;">SPUser</span> user = myWeb.EnsureUser(<span style="color:#2b91af;">SPContext</span>.Current.Web.CurrentUser.LoginName);</li>
<li style="background:#f3f3f3;">                                <span style="color:#2b91af;">SPRoleDefinition</span> def = <span style="color:#0000ff;">new</span> <span style="color:#2b91af;">SPRoleDefinition</span>(myWeb.RoleDefinitions.GetByType(<span style="color:#2b91af;">SPRoleType</span>.Contributor));</li>
<li>                                <span style="color:#2b91af;">SPRoleAssignment</span> assignment = <span style="color:#0000ff;">new</span> <span style="color:#2b91af;">SPRoleAssignment</span>(user.LoginName, user.Email, user.Name,</li>
<li style="background:#f3f3f3;">                                                                                   user.Notes);</li>
<li style="background:#f3f3f3;">                                assignment.RoleDefinitionBindings.Add(myWeb.RoleDefinitions[def.Name]);</li>
<li>                                myWeb.AllowUnsafeUpdates = <span style="color:#0000ff;">true</span>;</li>
<li style="background:#f3f3f3;">                                myWeb.RoleAssignments.Add(assignment);</li>
<li>                                myWeb.Update();</li>
<li style="background:#f3f3f3;">                                myWeb.AllowUnsafeUpdates = <span style="color:#0000ff;">false</span>;</li>
<li>                                </li>
<li style="background:#f3f3f3;">                            }</li>
</ol>
</div>
</div>
</div>
<p> </p>
<p>With BreakRoleInheritance we break the inheritance of the rules. We do this to be able to add the user to the security of that specific site. We are breaking the security afterwards because we want to make sure that the existing security on the site is copied as well. With the EnsureUser statement we make sure the user exists in that site. The SPRoleDefinition isn’t necessary, but I’m using it to make sure that my code runs on multilingual systems. You could use:</p>
<div id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:9fbe3a0b-fda3-4936-9015-f3108dca0bd6" class="wlWriterEditableSmartContent" style="padding:5px;">
<div style="border:#000080 1px solid;font-family:'Courier New', Courier, Monospace;font-size:10pt;">
<div style="background:#000080;color:#fff;font-family:Verdana, Tahoma, Arial, sans-serif;font-weight:bold;padding:2px 5px;">Code Snippet</div>
<div style="background:#ddd;max-height:300px;overflow:scroll;padding:0;">
<ol style="background:#ffffff;white-space:wrap;margin:0 0 0 25px;">
<li>                                assignment.RoleDefinitionBindings.Add(myWeb.RoleDefinitions[<span style="color:#a31515;">"Contributor"</span>]);</li>
</ol>
</div>
</div>
</div>
<p>but in a multilingual environment that RoleDefinition isn’t called Contributor. That’s why I will first create a SPRoleDefinition object to make sure that whatever Contributor is called will return the correct name in my SPRoleAssignment. I add the roledefinition to the assignment and then I add the user/role link to the site. Once you have implemented all this your code should look like this:</p>
<div id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:450d63df-4016-4485-ae02-cbe87f30c0cd" class="wlWriterEditableSmartContent" style="width:990px;display:block;float:none;margin-left:auto;margin-right:auto;padding:5px;">
<div style="border:#000080 1px solid;font-family:'Courier New', Courier, Monospace;font-size:10pt;">
<div style="background:#000080;color:#fff;font-family:Verdana, Tahoma, Arial, sans-serif;font-weight:bold;padding:2px 5px;">Code Snippet</div>
<div style="background:#ddd;max-height:auto;overflow:scroll;padding:0;">
<ol style="background:#ffffff;white-space:wrap;margin:0 0 0 35px;">
<li><span style="color:#0000ff;">public</span> <span style="color:#0000ff;">string</span> CreateSite(<span style="color:#0000ff;">string</span> parentSiteUrl, <span style="color:#0000ff;">string</span> siteUrlRequested, <span style="color:#0000ff;">string</span> siteTitle, <span style="color:#0000ff;">string</span> siteTemplateName)</li>
<li style="background:#f3f3f3;">        {</li>
<li>            <span style="color:#0000ff;">if</span> (siteUrlRequested == <span style="color:#0000ff;">null</span>) <span style="color:#0000ff;">throw</span> <span style="color:#0000ff;">new</span> <span style="color:#2b91af;">ArgumentNullException</span>(<span style="color:#a31515;">&#8220;siteUrlRequested&#8221;</span>);</li>
<li>            <span style="color:#0000ff;">try</span></li>
<li style="background:#f3f3f3;">            {</li>
<li>                <span style="color:#0000ff;">bool</span> returnCondition = <span style="color:#0000ff;">false</span>;</li>
<li style="background:#f3f3f3;">                <span style="color:#0000ff;">string</span> siteUrlValid = <span style="color:#a31515;">&#8220;&#8221;</span>;</li>
<li>                <span style="color:#0000ff;">const</span> <span style="color:#2b91af;">Int32</span> localeIdEnglish = 1043;</li>
<li style="background:#f3f3f3;">                <span style="color:#2b91af;">SPSecurity</span>.RunWithElevatedPrivileges(<span style="color:#0000ff;">delegate</span></li>
<li>                                                         {</li>
<li style="background:#f3f3f3;">                    <span style="color:#0000ff;">int</span> counter = 1;</li>
<li>                    <span style="color:#0000ff;">using</span> (<span style="color:#2b91af;">SPSite</span> siteCollection = <span style="color:#0000ff;">new</span> <span style="color:#2b91af;">SPSite</span>(parentSiteUrl))</li>
<li style="background:#f3f3f3;">                    {</li>
<li>                        <span style="color:#0000ff;">using</span> (<span style="color:#2b91af;">SPWeb</span> parentWeb = siteCollection.OpenWeb())</li>
<li style="background:#f3f3f3;">                        {</li>
<li>                            <span style="color:#2b91af;">SPWebTemplateCollection</span> templates = siteCollection.GetCustomWebTemplates(<span style="color:#2b91af;">Convert</span>.ToUInt32(localeIdEnglish));</li>
<li style="background:#f3f3f3;">                            <span style="color:#2b91af;">SPWebTemplate</span> siteTemplate = templates[siteTemplateName];</li>
<li>                            siteUrlValid = siteUrlRequested + <span style="color:#a31515;">&#8220;_&#8221;</span> + counter;</li>
<li style="background:#f3f3f3;">                            <span style="color:#0000ff;">while</span> (parentWeb.Webs[siteUrlValid].Exists)</li>
<li>                            {</li>
<li style="background:#f3f3f3;">                                counter++;</li>
<li>                                siteUrlValid = siteUrlRequested + <span style="color:#a31515;">&#8220;_&#8221;</span> + counter;</li>
<li style="background:#f3f3f3;">                            }</li>
<li>                            parentWeb.AllowUnsafeUpdates = <span style="color:#0000ff;">true</span>;</li>
<li style="background:#f3f3f3;">                            <span style="color:#0000ff;">using</span> (<span style="color:#2b91af;">SPWeb</span> myWeb = parentWeb.Webs.Add(</li>
<li>                                siteUrlValid,</li>
<li style="background:#f3f3f3;">                                siteTitle,</li>
<li>                                siteTitle,</li>
<li style="background:#f3f3f3;">                                <span style="color:#2b91af;">Convert</span>.ToUInt32(localeIdEnglish),</li>
<li>                                siteTemplate,</li>
<li style="background:#f3f3f3;">                                <span style="color:#0000ff;">false</span>, <span style="color:#0000ff;">false</span>))</li>
<li>                            {</li>
<li>                                myWeb.BreakRoleInheritance(<span style="color:#0000ff;">true</span>);</li>
<li>                                <span style="color:#2b91af;">SPUser</span> user = myWeb.EnsureUser(<span style="color:#2b91af;">SPContext</span>.Current.Web.CurrentUser.LoginName);</li>
<li style="background:#f3f3f3;">                                <span style="color:#2b91af;">SPRoleDefinition</span> def = <span style="color:#0000ff;">new</span> <span style="color:#2b91af;">SPRoleDefinition</span>(myWeb.RoleDefinitions.GetByType(<span style="color:#2b91af;">SPRoleType</span>.Contributor));</li>
<li>                                <span style="color:#2b91af;">SPRoleAssignment</span> assignment = <span style="color:#0000ff;">new</span> <span style="color:#2b91af;">SPRoleAssignment</span>(user.LoginName, user.Email, user.Name,</li>
<li style="background:#f3f3f3;">                                                                                   user.Notes);</li>
<li style="background:#f3f3f3;">                                assignment.RoleDefinitionBindings.Add(myWeb.RoleDefinitions[def.Name]);</li>
<li>                                myWeb.AllowUnsafeUpdates = <span style="color:#0000ff;">true</span>;</li>
<li style="background:#f3f3f3;">                                myWeb.RoleAssignments.Add(assignment);</li>
<li>                                myWeb.Update();</li>
<li style="background:#f3f3f3;">                                myWeb.AllowUnsafeUpdates = <span style="color:#0000ff;">false</span>;</li>
<li style="background:#f3f3f3;">                            }</li>
<li>                            returnCondition = <span style="color:#0000ff;">true</span>;</li>
<li style="background:#f3f3f3;">                            parentWeb.AllowUnsafeUpdates = <span style="color:#0000ff;">false</span>;</li>
<li>                        }</li>
<li style="background:#f3f3f3;">                    }</li>
<li>                });</li>
<li style="background:#f3f3f3;">                <span style="color:#0000ff;">if</span> (!returnCondition)</li>
<li>                {</li>
<li style="background:#f3f3f3;">                    siteUrlValid = <span style="color:#a31515;">&#8220;&#8221;</span>;</li>
<li>                }</li>
<li style="background:#f3f3f3;">                <span style="color:#0000ff;">return</span> siteUrlValid;</li>
<li>            }</li>
<li>            <span style="color:#0000ff;">catch</span> (<span style="color:#2b91af;">Exception</span>)</li>
<li style="background:#f3f3f3;">            {</li>
<li>                <span style="color:#0000ff;">return</span> <span style="color:#0000ff;">null</span>;</li>
<li style="background:#f3f3f3;">            }</li>
<li>        }</li>
</ol>
</div>
</div>
</div>
<p>Calling the function can be done like this (Web is the SPContext.Current.Web object).</p>
<div id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:f79a83db-def5-4bbb-b6bb-7f30c1510a51" class="wlWriterEditableSmartContent" style="padding:5px;">
<div style="border:#000080 1px solid;font-family:'Courier New', Courier, Monospace;font-size:10pt;">
<div style="background:#000080;color:#fff;font-family:Verdana, Tahoma, Arial, sans-serif;font-weight:bold;padding:2px 5px;">Code Snippet</div>
<div style="background:#ddd;max-height:300px;overflow:scroll;padding:0;">
<ol style="background:#ffffff;white-space:wrap;margin:0 0 0 25px;">
<li>siteUrl = CreateSite(Web.Url, siteUrl, siteTitle, <span style="color:#a31515;">&#8220;tbtemplate.stp&#8221;</span>);</li>
</ol>
</div>
</div>
</div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/koenvosters.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/koenvosters.wordpress.com/355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/koenvosters.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/koenvosters.wordpress.com/355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/koenvosters.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/koenvosters.wordpress.com/355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/koenvosters.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/koenvosters.wordpress.com/355/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/koenvosters.wordpress.com/355/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/koenvosters.wordpress.com/355/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koenvosters.wordpress.com&blog=4163625&post=355&subd=koenvosters&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://koenvosters.wordpress.com/2009/09/07/howto-create-a-site-with-a-custom-template-through-code-and-assign-specific-user-security-user-has-no-rights-to-create-a-site/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d752a106a68a786a70e1a07e2fe19416?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">koenvosters</media:title>
		</media:content>
	</item>
		<item>
		<title>Unable to copy VM Harddrives to external disk &#8211; FAT 32</title>
		<link>http://koenvosters.wordpress.com/2009/09/03/unable-to-copy-vm-harddrives-to-external-disk-fat-32/</link>
		<comments>http://koenvosters.wordpress.com/2009/09/03/unable-to-copy-vm-harddrives-to-external-disk-fat-32/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 17:36:37 +0000</pubDate>
		<dc:creator>koenvosters</dc:creator>
				<category><![CDATA[Moss 2007]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://koenvosters.wordpress.com/?p=352</guid>
		<description><![CDATA[As from time to time I buy a new disk to store my old VM&#8217;s on at the first copy I get an error message when I try to copy hard disk of my vm to my external disk. That&#8217;s due to the fact that those disks are mainly formatted as FAT32 (which can handle [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koenvosters.wordpress.com&blog=4163625&post=352&subd=koenvosters&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>As from time to time I buy a new disk to store my old VM&#8217;s on at the first copy I get an error message when I try to copy hard disk of my vm to my external disk. That&#8217;s due to the fact that those disks are mainly formatted as FAT32 (which can handle 4 GB). As I wanted to put a vhd on my work backup disk I got the same message, and I did not want to delete the backups I already took I looked for a command to change it without having to format the drive, and I found it <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>convert &lt;drive&gt; /fs:ntfs works. You should execute it in a command window that you are running as an administrator.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/koenvosters.wordpress.com/352/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/koenvosters.wordpress.com/352/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/koenvosters.wordpress.com/352/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/koenvosters.wordpress.com/352/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/koenvosters.wordpress.com/352/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/koenvosters.wordpress.com/352/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/koenvosters.wordpress.com/352/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/koenvosters.wordpress.com/352/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/koenvosters.wordpress.com/352/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/koenvosters.wordpress.com/352/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koenvosters.wordpress.com&blog=4163625&post=352&subd=koenvosters&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://koenvosters.wordpress.com/2009/09/03/unable-to-copy-vm-harddrives-to-external-disk-fat-32/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d752a106a68a786a70e1a07e2fe19416?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">koenvosters</media:title>
		</media:content>
	</item>
		<item>
		<title>HOWTO : Get the Last ItemID in a list</title>
		<link>http://koenvosters.wordpress.com/2009/08/20/howto-get-the-last-itemid-in-a-list/</link>
		<comments>http://koenvosters.wordpress.com/2009/08/20/howto-get-the-last-itemid-in-a-list/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 09:18:48 +0000</pubDate>
		<dc:creator>koenvosters</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Moss 2007]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[CAML]]></category>

		<guid isPermaLink="false">http://koenvosters.wordpress.com/2009/08/20/howto-get-the-last-itemid-in-a-list/</guid>
		<description><![CDATA[The following code shows you how to get the last item of an ID in a list. Warning, this code gets you the last item from that list meaning that if you use this code to get the last item you added, it will go wrong if someone adds an item between you adding it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koenvosters.wordpress.com&blog=4163625&post=351&subd=koenvosters&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The following code shows you how to get the last item of an ID in a list. Warning, this code gets you the last item from that list meaning that if you use this code to get the last item you added, it will go wrong if someone adds an item between you adding it and executing this query. In that case I advise you to get a unique identifier that you add to each item and get the item by that id. </p>
<div style="padding:5px;" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:d84b61d1-696d-4234-aa8d-9399b3ed5ef4" class="wlWriterEditableSmartContent">
<div style="border:#000080 1px solid;font-family:'Courier New', Courier, Monospace;font-size:10pt;">
<div style="background:#000080;color:#fff;font-family:Verdana, Tahoma, Arial, sans-serif;font-weight:bold;padding:2px 5px;">Code Snippet</div>
<div style="background:#ddd;max-height:300px;overflow:scroll;padding:0;">
<ol style="background:#ffffff;white-space:wrap;margin:0 0 0 35px;">
<li>  <span style="color:#0000ff;">const</span> <span style="color:#0000ff;">string</span> siteurl = <span style="color:#a31515;">&#8220;http://sitecollection&#8221;</span>;</li>
<li style="background:#f3f3f3;">             <span style="color:#0000ff;">using</span> (<span style="color:#0000ff;">var</span> site = <span style="color:#0000ff;">new</span> <span style="color:#2b91af;">SPSite</span>(siteurl))</li>
<li>             {</li>
<li style="background:#f3f3f3;">                 <span style="color:#0000ff;">using</span> (<span style="color:#0000ff;">var</span> web = site.OpenWeb(<span style="color:#a31515;">&#8220;myweb&#8221;</span>))</li>
<li>                 {</li>
<li style="background:#f3f3f3;">                     <span style="color:#0000ff;">var</span> list = web.Lists[<span style="color:#a31515;">"mylist"</span>];</li>
<li>                     <span style="color:#0000ff;">var</span> query = <span style="color:#0000ff;">new</span> <span style="color:#2b91af;">SPQuery</span></li>
<li style="background:#f3f3f3;">                                     {</li>
<li>                                         Query = <span style="color:#a31515;">&#8220;   &lt;OrderBy&gt; &lt;FieldRef Name=&#8217;ID&#8217; Ascending=&#8217;False&#8217; /&gt; &lt;/OrderBy&gt;&#8221;</span></li>
<li style="background:#f3f3f3;">                                     };</li>
<li>                     <span style="color:#0000ff;">var</span> items = list.GetItems(query);</li>
<li style="background:#f3f3f3;">                     <span style="color:#2b91af;">SPListItem</span> item;</li>
<li>                     <span style="color:#0000ff;">if</span> (items.Count &gt; 0)</li>
<li style="background:#f3f3f3;">                         item = items[0];</li>
<li>                 }</li>
<li style="background:#f3f3f3;">             \</li>
</ol>
</div>
</div>
</div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/koenvosters.wordpress.com/351/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/koenvosters.wordpress.com/351/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/koenvosters.wordpress.com/351/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/koenvosters.wordpress.com/351/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/koenvosters.wordpress.com/351/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/koenvosters.wordpress.com/351/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/koenvosters.wordpress.com/351/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/koenvosters.wordpress.com/351/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/koenvosters.wordpress.com/351/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/koenvosters.wordpress.com/351/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koenvosters.wordpress.com&blog=4163625&post=351&subd=koenvosters&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://koenvosters.wordpress.com/2009/08/20/howto-get-the-last-itemid-in-a-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d752a106a68a786a70e1a07e2fe19416?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">koenvosters</media:title>
		</media:content>
	</item>
		<item>
		<title>Your client does not support opening this list with Windows Explorer</title>
		<link>http://koenvosters.wordpress.com/2009/08/17/your-client-does-not-support-opening-this-list-with-windows-explorer/</link>
		<comments>http://koenvosters.wordpress.com/2009/08/17/your-client-does-not-support-opening-this-list-with-windows-explorer/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 19:46:03 +0000</pubDate>
		<dc:creator>koenvosters</dc:creator>
				<category><![CDATA[Moss 2007]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Internet Explorer]]></category>

		<guid isPermaLink="false">http://koenvosters.wordpress.com/?p=349</guid>
		<description><![CDATA[Your client does not support opening this list with Windows Explorer is an error I see popping up a lot of times. What can you do to fix it?
If you are using IE6:
http://support.microsoft.com/kb/325355/

If you are using IE7 OR IE8
Vista, Windows Server 2003, XP : http://www.microsoft.com/downloads/details.aspx?FamilyId=17C36612-632E-4C04-9382-987622ED1D64&#38;displaylang=en
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koenvosters.wordpress.com&blog=4163625&post=349&subd=koenvosters&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Your client does not support opening this list with Windows Explorer is an error I see popping up a lot of times. What can you do to fix it?</p>
<p><strong>If you are using IE6:<br />
</strong><a href="http://support.microsoft.com/kb/325355/">http://support.microsoft.com/kb/325355/</a><br />
<strong><br />
If you are using IE7 OR IE8<br />
</strong>Vista, Windows Server 2003, XP : <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=17C36612-632E-4C04-9382-987622ED1D64&amp;displaylang=en">http://www.microsoft.com/downloads/details.aspx?FamilyId=17C36612-632E-4C04-9382-987622ED1D64&amp;displaylang=en</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/koenvosters.wordpress.com/349/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/koenvosters.wordpress.com/349/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/koenvosters.wordpress.com/349/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/koenvosters.wordpress.com/349/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/koenvosters.wordpress.com/349/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/koenvosters.wordpress.com/349/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/koenvosters.wordpress.com/349/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/koenvosters.wordpress.com/349/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/koenvosters.wordpress.com/349/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/koenvosters.wordpress.com/349/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koenvosters.wordpress.com&blog=4163625&post=349&subd=koenvosters&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://koenvosters.wordpress.com/2009/08/17/your-client-does-not-support-opening-this-list-with-windows-explorer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d752a106a68a786a70e1a07e2fe19416?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">koenvosters</media:title>
		</media:content>
	</item>
		<item>
		<title>HOWTO : Getting the User Properties from Active Directory with People Picker</title>
		<link>http://koenvosters.wordpress.com/2009/08/10/howto-getting-the-user-properties-from-active-directory-with-people-picker/</link>
		<comments>http://koenvosters.wordpress.com/2009/08/10/howto-getting-the-user-properties-from-active-directory-with-people-picker/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 15:02:50 +0000</pubDate>
		<dc:creator>koenvosters</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Moss 2007]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Active Directory]]></category>

		<guid isPermaLink="false">http://koenvosters.wordpress.com/2009/08/10/howto-getting-the-user-properties-from-active-directory-with-people-picker/</guid>
		<description><![CDATA[
A while ago I had to get additional properties from Active Directory. It was important that the information was live (I could not consider the information that got imported by the User Profile Import to be 100% up-to-date. To get this done I wrote this little piece of code (don’t forget to reference System.DirectoryServices):
private ResultPropertyCollection [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koenvosters.wordpress.com&blog=4163625&post=344&subd=koenvosters&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strike></strike>
<p>A while ago I had to get additional properties from Active Directory. It was important that the information was live (I could not consider the information that got imported by the User Profile Import to be 100% up-to-date. To get this done I wrote this little piece of code (don’t forget to reference System.DirectoryServices):</p>
<blockquote><p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;color:blue;font-size:9pt;">private</span><span style="font-family:&quot;font-size:9pt;"> <span style="color:#2b91af;">ResultPropertyCollection</span> GetUserProperties(<span style="color:blue;">string</span> userAccount) </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160; </span>{ </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color:#2b91af;">DirectoryEntry</span> entry = <span style="color:blue;">new</span> <span style="color:#2b91af;">DirectoryEntry</span>(); </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>entry.Path = <span style="color:#a31515;">&quot;LDAP://CUSTOMER&quot;</span>; </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>entry.AuthenticationType = <span style="color:#2b91af;">AuthenticationTypes</span>.Secure; </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color:green;">//DirectorySearcher _searcher = new DirectorySearcher(entry); </span></span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;color:green;font-size:9pt;"></span></p>
<p>&#160;</p>
</p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color:#2b91af;">String</span> account = userAccount.Replace(<span style="color:#a31515;">@&quot;CUSTOMER\&quot;</span>, <span style="color:#a31515;">&quot;&quot;</span>); </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160; </span><span>&#160;&#160; </span><span style="color:blue;">try </span></span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>{ </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color:blue;">using</span>(<span style="color:#2b91af;">HostingEnvironment</span>.Impersonate()) </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>{ </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color:#2b91af;">DirectorySearcher</span> search = <span style="color:blue;">new</span> <span style="color:#2b91af;">DirectorySearcher</span>(entry); </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>search.Filter = <span style="color:#a31515;">&quot;(SAMAccountName=&quot;</span> + account + <span style="color:#a31515;">&quot;)&quot;</span>; </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>search.PropertiesToLoad.Add(<span style="color:#a31515;">&quot;department&quot;</span>); </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>search.PropertiesToLoad.Add(<span style="color:#a31515;">&quot;mail&quot;</span>); </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span>&#160;&#160;&#160; </span>search.PropertiesToLoad.Add(<span style="color:#a31515;">&quot;title&quot;</span>); </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>search.PropertiesToLoad.Add(<span style="color:#a31515;">&quot;company&quot;</span>); </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color:#2b91af;">SearchResult</span> result = search.FindOne(); </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color:blue;">if</span> (result != <span style="color:blue;">null</span>) </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>{ </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color:blue;">return</span> result.Properties; </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>} </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color:blue;">else </span></span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>{ </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span>&#160;&#160; </span><span style="color:blue;">return</span> <span style="color:blue;">null</span>; </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>} </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>} </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>} </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color:blue;">catch</span> (<span style="color:#2b91af;">Exception</span> ex) </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>{ </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>lblResult.Text = ex.Message; </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color:blue;">return</span> <span style="color:blue;">null</span>; </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>} </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160; </span>} </span></p>
</blockquote>
<p>Replace CUSTOMER with your DOMAIN.    <br />I added one more function to easily get a property out of the collection:</p>
<blockquote><p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;color:blue;font-size:9pt;">private</span><span style="font-family:&quot;font-size:9pt;"> <span style="color:blue;">string</span> GetFromUserProperties(<span style="color:#2b91af;">ResultPropertyCollection</span> _properties, <span style="color:blue;">string</span> _prop) </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160; </span>{ </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color:blue;">try </span></span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>{ </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color:blue;">if</span> (_properties[_prop].Count &gt; 0) </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>{ </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color:blue;">return</span> _properties[_prop][0].ToString(); </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>} </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color:blue;">else </span></span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>{ </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color:blue;">return</span> <span style="color:#a31515;">&quot;&quot;</span>; </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>} </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>}<span style="color:blue;">catch</span>(<span style="color:#2b91af;">Exception</span> ex){ </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color:blue;">return</span> <span style="color:#a31515;">&quot;&quot;</span>; </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>} </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160; </span>}</span></p>
</blockquote>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"></span></p>
<p>When you select a user in a People Picker it calls a postback. In the Onload event of your page handle the call of the following function</p>
</p>
<blockquote><p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;color:blue;font-size:9pt;">private</span><span style="font-family:&quot;font-size:9pt;"> <span style="color:blue;">void</span> CheckAndFillInfo(<span style="color:#2b91af;">SPWeb</span> site) </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160; </span>{ </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color:green;"></span></span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color:blue;">if</span> (spPELeidinggevende.ResolvedEntities.Count &gt; 0) </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>{ </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color:#2b91af;">PickerEntity</span> _pe = (<span style="color:#2b91af;">PickerEntity</span>)spPELeidinggevende.ResolvedEntities[0]; </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;</span><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color:#2b91af;">SPUser</span> _spuser = site.EnsureUser(_pe.Key); </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"></span></p>
<p>&#160;</p>
</p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color:green;"></span></span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color:#2b91af;">ResultPropertyCollection</span> _results = GetUserProperties(_spuser.LoginName); </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color:blue;">if</span> (_results != <span style="color:blue;">null</span>) </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>{ </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color:green;"></span></span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>txtFunction.Text = GetFromUserProperties(_results, <span style="color:#a31515;">&quot;title&quot;</span>); </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>} </span></p>
</p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>} </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color:blue;">else </span></span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>{ </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color:green;">txtFunction.Text = “”; </span></span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>} </span></p>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;"><span>&#160;&#160;&#160; </span>}</span></p>
</blockquote>
<p style="line-height:normal;margin-bottom:0;" class="MsoNormal"><span style="font-family:&quot;font-size:9pt;">That should do the trick.</span></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/koenvosters.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/koenvosters.wordpress.com/344/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/koenvosters.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/koenvosters.wordpress.com/344/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/koenvosters.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/koenvosters.wordpress.com/344/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/koenvosters.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/koenvosters.wordpress.com/344/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/koenvosters.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/koenvosters.wordpress.com/344/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koenvosters.wordpress.com&blog=4163625&post=344&subd=koenvosters&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://koenvosters.wordpress.com/2009/08/10/howto-getting-the-user-properties-from-active-directory-with-people-picker/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d752a106a68a786a70e1a07e2fe19416?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">koenvosters</media:title>
		</media:content>
	</item>
		<item>
		<title>Putting workflow code in a separate project (using wspbuilder)</title>
		<link>http://koenvosters.wordpress.com/2009/08/07/putting-workflow-code-in-a-separate-project-using-wspbuilder/</link>
		<comments>http://koenvosters.wordpress.com/2009/08/07/putting-workflow-code-in-a-separate-project-using-wspbuilder/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 10:20:51 +0000</pubDate>
		<dc:creator>koenvosters</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Moss 2007]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Visual Studio 2008]]></category>
		<category><![CDATA[WF]]></category>
		<category><![CDATA[Workflows]]></category>

		<guid isPermaLink="false">http://koenvosters.wordpress.com/2009/08/07/putting-workflow-code-in-a-separate-project-using-wspbuilder/</guid>
		<description><![CDATA[As I am rebuilding one of our projects to make it easier to deploy I had to put the workflow code in one separate project. As I thought this would be a piece of cake I didn&#8217;t expect Visual Studio to show me a bunch of errors when doing so. The one that kept appearing [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koenvosters.wordpress.com&blog=4163625&post=343&subd=koenvosters&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>As I am rebuilding one of our projects to make it easier to deploy I had to put the workflow code in one separate project. As I thought this would be a piece of cake I didn&#8217;t expect Visual Studio to show me a bunch of errors when doing so. The one that kept appearing was <strong>&quot;The service &#8216;System.Workflow.ComponentModel.Compiler.ITypeProvider&#8217; must be installed for this operation to succeed. Ensure that this service is available&quot;. </strong>After looking it up I got a bunch of different guids that I could put in my project file, but none of them seemed to do the trick. Until I checked out a WPF workflow post that told me to use some other guids and they worked fine. So, how do we start.</p>
<p>First of all, we will be creating a project that is called MyCustomer.MySuperSolution. We will make it a WSP Project or a class library. We will add a new item, which will be a blank feature (WSPBuilder Item). Secondly, we will be creating another WSP Project or class Library and call it MyCustomer.MySuperSolution.Workflows. We will be adding a sequential workflow feature that project. Let’s call it EmailWorkflow. As this will create it’s own solution (and that is not what we want, we want 1 wsp for the whole project) we will be making some changes. First of all, rename the feature folder that is called EmailWorkflow to MyCustomer.MySuperSolution.EmailWorkflow. That way it will have a decent naming convention in the feature folder. Move that folder to the same location in your MyCustomer.MySuperSolution project. Then delete the complete 12 folder structure from your MyCustomer.MySuperSolution.Workflows project. You can also remove the solutionid.txt file as it is no longer needed. Do not remove the snk as your assembly needs to be strong named. </p>
<p>Two steps remain, which are making sure that when you recompile your workflow solution that it is added to the manifest.xml by wspbuilder when you select build wsp, and to remove the dreadful errors in your workflow project. To make sure the assembly is added, right-click on your project, properties, build, output path. Point the output path to the bin/debug folder of your MyCustomer.MySuperSolution project. It is a good idea to also do that for the release configuration as many times you forget to set that up while building for release (which is then the bin/Release folder). To remove the dreadful ITypeProvider errors you need to open your project with notepad. Change your ProjectTypeGuids to:</p>
<p>&lt;ProjectTypeGuids&gt;{14822709-B5A1-4724-98CA-57A101D1B079};{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}&lt;/ProjectTypeGuids&gt;</p>
<p>and add the following line near the end of the file (there is already one import statement)</p>
<p>&lt;Import Project=&quot;$(MSBuildExtensionsPath)\Microsoft\Windows Workflow Foundation\v3.0\Workflow.Targets&quot; /&gt;</p>
<p>If you want to target the WF of .Net Framework 3.5 just change 3.0 to 3.5</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/koenvosters.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/koenvosters.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/koenvosters.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/koenvosters.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/koenvosters.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/koenvosters.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/koenvosters.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/koenvosters.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/koenvosters.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/koenvosters.wordpress.com/343/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koenvosters.wordpress.com&blog=4163625&post=343&subd=koenvosters&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://koenvosters.wordpress.com/2009/08/07/putting-workflow-code-in-a-separate-project-using-wspbuilder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d752a106a68a786a70e1a07e2fe19416?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">koenvosters</media:title>
		</media:content>
	</item>
		<item>
		<title>Real World Branding in SharePoint on MSDN</title>
		<link>http://koenvosters.wordpress.com/2009/08/07/real-world-branding-in-sharepoint-on-msdn/</link>
		<comments>http://koenvosters.wordpress.com/2009/08/07/real-world-branding-in-sharepoint-on-msdn/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 08:09:56 +0000</pubDate>
		<dc:creator>koenvosters</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Moss 2007]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://koenvosters.wordpress.com/?p=339</guid>
		<description><![CDATA[There is a very nice article on MSDN, published by Andrew Connell and Randy Drisgill explaining you how to customize SharePoint and give it a very sexy look. Definetely a must read.
http://msdn.microsoft.com/en-us/library/ee354191.aspx
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koenvosters.wordpress.com&blog=4163625&post=339&subd=koenvosters&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>There is a very nice article on MSDN, published by Andrew Connell and Randy Drisgill explaining you how to customize SharePoint and give it a very sexy look. Definetely a must read.</p>
<p><a href="http://msdn.microsoft.com/en-us/library/ee354191.aspx">http://msdn.microsoft.com/en-us/library/ee354191.aspx</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/koenvosters.wordpress.com/339/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/koenvosters.wordpress.com/339/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/koenvosters.wordpress.com/339/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/koenvosters.wordpress.com/339/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/koenvosters.wordpress.com/339/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/koenvosters.wordpress.com/339/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/koenvosters.wordpress.com/339/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/koenvosters.wordpress.com/339/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/koenvosters.wordpress.com/339/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/koenvosters.wordpress.com/339/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=koenvosters.wordpress.com&blog=4163625&post=339&subd=koenvosters&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://koenvosters.wordpress.com/2009/08/07/real-world-branding-in-sharepoint-on-msdn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d752a106a68a786a70e1a07e2fe19416?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">koenvosters</media:title>
		</media:content>
	</item>
	</channel>
</rss>