<?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>Gav&#039;s Blog - SharePoint .NET &#38; Tech</title>
	<atom:link href="http://gavinb.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://gavinb.net</link>
	<description>My adventures in the world of SharePoint</description>
	<lastBuildDate>Thu, 19 Apr 2012 09:15:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='gavinb.net' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Gav&#039;s Blog - SharePoint .NET &#38; Tech</title>
		<link>http://gavinb.net</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://gavinb.net/osd.xml" title="Gav&#039;s Blog - SharePoint .NET &#38; Tech" />
	<atom:link rel='hub' href='http://gavinb.net/?pushpress=hub'/>
		<item>
		<title>Document Set Limitations and Considerations in SharePoint 2010</title>
		<link>http://gavinb.net/2012/04/02/document-set-limitations-and-considerations-in-sharepoint-2010/</link>
		<comments>http://gavinb.net/2012/04/02/document-set-limitations-and-considerations-in-sharepoint-2010/#comments</comments>
		<pubDate>Mon, 02 Apr 2012 04:49:00 +0000</pubDate>
		<dc:creator>gavinbarron</dc:creator>
				<category><![CDATA[Caveats]]></category>
		<category><![CDATA[Document Sets]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">https://gavinbdotnet.wordpress.com/?p=331</guid>
		<description><![CDATA[First of all, go and read the excellent article Document Set Limitations and Considerations in SharePoint 2010 written by Michal Pisarek. Ok, you’re back and have read all those? Great! I’ve got a few more for you. Shared Fields are &#8230; <a href="http://gavinb.net/2012/04/02/document-set-limitations-and-considerations-in-sharepoint-2010/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=331&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>First of all, go and read the excellent article <a href="http://www.sharepointanalysthq.com/2011/09/document-set-limitations-and-considerations-in-sharepoint-2010/">Document Set Limitations and Considerations in SharePoint 2010</a> written by <a href="http://www.sharepointanalysthq.com/about/">Michal Pisarek</a>. </p>
<p>Ok, you’re back and have read all those? Great! I’ve got a few more for you.</p>
<ol>
<li>
<h4>Shared Fields are push down only:</h4>
<p>If you go into a document within a document and edit a property which is set as a shared property for the Document Set that change does not get propagated to the either the containing Document Set or to other documents within the set. If you need to change these across the entire Document Set you must make the change to the Document Set itself and then SharePoint will propagate these changes down.</p>
<li>
<h4>Versions have to be declared: </h4>
<p>Despite the fact that a Document Set itself can have metadata which users change there is no automatic tracking of changes made. You must use the Capture Version functionality manually to record changes made against the metadata at a Document Set level.</p>
<li>
<h4>No Check-In/Check-Out functionality: </h4>
<p>The notion of check-in/check-out does not apply to Document Sets. This kind of makes sense when you consider that they are just special folders and a check-out at the folder level would imply that they user had also checked out all child documents. But it’s a little annoying, especially as there is metadata against the Document Set which users can freely edit with no automatic version history captured.</p>
</li>
</ol>
<br />Filed under: <a href='http://gavinb.net/category/caveats/'>Caveats</a>, <a href='http://gavinb.net/category/document-sets/'>Document Sets</a>, <a href='http://gavinb.net/category/sharepoint/'>SharePoint</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gavinbdotnet.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gavinbdotnet.wordpress.com/331/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gavinbdotnet.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gavinbdotnet.wordpress.com/331/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gavinbdotnet.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gavinbdotnet.wordpress.com/331/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gavinbdotnet.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gavinbdotnet.wordpress.com/331/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gavinbdotnet.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gavinbdotnet.wordpress.com/331/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gavinbdotnet.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gavinbdotnet.wordpress.com/331/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gavinbdotnet.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gavinbdotnet.wordpress.com/331/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=331&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gavinb.net/2012/04/02/document-set-limitations-and-considerations-in-sharepoint-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">gavinbarron</media:title>
		</media:content>
	</item>
		<item>
		<title>VS 2010: Missing Source Control Icons</title>
		<link>http://gavinb.net/2012/04/02/vs-2010-missing-source-control-icons/</link>
		<comments>http://gavinb.net/2012/04/02/vs-2010-missing-source-control-icons/#comments</comments>
		<pubDate>Sun, 01 Apr 2012 23:54:03 +0000</pubDate>
		<dc:creator>gavinbarron</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[TFS]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[source control]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">https://gavinbdotnet.wordpress.com/?p=326</guid>
		<description><![CDATA[So I’m working on a project with a number of other developers at present. However every so often when another developer adds files to source control when they are added to my local solution they appear unbound to source control &#8230; <a href="http://gavinb.net/2012/04/02/vs-2010-missing-source-control-icons/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=326&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So I’m working on a project with a number of other developers at present. However every so often when another developer adds files to source control when they are added to my local solution they appear unbound to source control and Visual Studio treats them as though they are not bound to TFS.</p>
<p><a href="http://gavinbdotnet.files.wordpress.com/2012/04/missing_bindings.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;border-top:0;margin-right:auto;border-right:0;padding-top:0;" title="Missing_Bindings" border="0" alt="Missing_Bindings" src="http://gavinbdotnet.files.wordpress.com/2012/04/missing_bindings_thumb.png?w=287&#038;h=453" width="287" height="453"></a></p>
<p>Note the missing padlock icons on some files. The files missing the padlock were retrieved on my last Get Latest operation.</p>
<p>To ensure that Visual Studio treats these correctly and enforces source control behaviour you have to refresh the source control connection. Ensure that you select the solution file, to refresh all projects, or just a single project to target the refresh at just that project. Then select <strong>File &gt; Source Control &gt; Refresh Status </strong>or <strong>Alt + F, Alt + R, Alt + T</strong> for you keyboard jockeys out there.</p>
<p><a href="http://gavinbdotnet.files.wordpress.com/2012/04/refresh_status.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;border-top:0;margin-right:auto;border-right:0;padding-top:0;" title="Refresh_Status" border="0" alt="Refresh_Status" src="http://gavinbdotnet.files.wordpress.com/2012/04/refresh_status_thumb.png?w=658&#038;h=642" width="658" height="642"></a></p>
<p>Lo and behold, padlocks are present and source control behaviour is correct!</p>
<p><a href="http://gavinbdotnet.files.wordpress.com/2012/04/bindings_present.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;border-top:0;margin-right:auto;border-right:0;padding-top:0;" title="Bindings_Present" border="0" alt="Bindings_Present" src="http://gavinbdotnet.files.wordpress.com/2012/04/bindings_present_thumb.png?w=291&#038;h=457" width="291" height="457"></a></p>
<br />Filed under: <a href='http://gavinb.net/category/development/'>Development</a>, <a href='http://gavinb.net/category/tfs/'>TFS</a>, <a href='http://gavinb.net/category/visual-studio/'>Visual Studio</a> Tagged: <a href='http://gavinb.net/tag/source-control/'>source control</a>, <a href='http://gavinb.net/tag/visual-studio-2/'>visual studio</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gavinbdotnet.wordpress.com/326/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gavinbdotnet.wordpress.com/326/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gavinbdotnet.wordpress.com/326/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gavinbdotnet.wordpress.com/326/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gavinbdotnet.wordpress.com/326/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gavinbdotnet.wordpress.com/326/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gavinbdotnet.wordpress.com/326/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gavinbdotnet.wordpress.com/326/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gavinbdotnet.wordpress.com/326/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gavinbdotnet.wordpress.com/326/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gavinbdotnet.wordpress.com/326/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gavinbdotnet.wordpress.com/326/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gavinbdotnet.wordpress.com/326/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gavinbdotnet.wordpress.com/326/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=326&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gavinb.net/2012/04/02/vs-2010-missing-source-control-icons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">gavinbarron</media:title>
		</media:content>

		<media:content url="http://gavinbdotnet.files.wordpress.com/2012/04/missing_bindings_thumb.png" medium="image">
			<media:title type="html">Missing_Bindings</media:title>
		</media:content>

		<media:content url="http://gavinbdotnet.files.wordpress.com/2012/04/refresh_status_thumb.png" medium="image">
			<media:title type="html">Refresh_Status</media:title>
		</media:content>

		<media:content url="http://gavinbdotnet.files.wordpress.com/2012/04/bindings_present_thumb.png" medium="image">
			<media:title type="html">Bindings_Present</media:title>
		</media:content>
	</item>
		<item>
		<title>Create a Document Set in Code</title>
		<link>http://gavinb.net/2012/03/15/create-a-document-set-in-code/</link>
		<comments>http://gavinb.net/2012/03/15/create-a-document-set-in-code/#comments</comments>
		<pubDate>Thu, 15 Mar 2012 04:06:30 +0000</pubDate>
		<dc:creator>gavinbarron</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Document Sets]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">https://gavinbdotnet.wordpress.com/?p=314</guid>
		<description><![CDATA[I have a solution where we need to create custom Documents Set via code, luckily there are some good samples out there. However I ran into a strange piece of behaviour. My Document Sets were appearing as folders without Welcome &#8230; <a href="http://gavinb.net/2012/03/15/create-a-document-set-in-code/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=314&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have a solution where we need to create custom Documents Set via code, luckily there are some good samples out there. However I ran into a strange piece of behaviour. My Document Sets were appearing as folders without Welcome Pages….</p>
<p><a href="http://gavinbdotnet.files.wordpress.com/2012/03/docsetpopoutmenu.png"><img style="background-image:none;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;margin-right:auto;padding-top:0;border-width:0;" title="docsetpopoutmenu" src="http://gavinbdotnet.files.wordpress.com/2012/03/docsetpopoutmenu_thumb.png?w=656&#038;h=336" alt="docsetpopoutmenu" width="656" height="336" border="0" /></a></p>
<p>I’d been using this code to create my document sets:</p>
<p><pre class="brush: csharp; pad-line-numbers: true;">/*
Broken but sort of works
*/
public static void GenerateNewApplicationDocumentSet(string applicationNumber, SPList targetLibrary, SPWeb web)
{
	if (applicationNumber == null) throw new ArgumentNullException(&quot;applicationNumber&quot;);
	if (targetLibrary == null) throw new ArgumentNullException(&quot;targetLibrary&quot;);
	if (web == null) throw new ArgumentNullException(&quot;web&quot;);
	//You can use a hashtable to populate properties of the document set
	var docsetProperties = new Hashtable {{&quot;Name&quot;, applicationNumber}};
	var documentSetContentType = web.ContentTypes[ContentTypeNames.ApplicationDocumentSet];
	documentSet = DocumentSet.Create(targetLibrary.RootFolder,
                                                    	applicationNumber,
                                                    	documentSetContentType.Id,
                                                    	docsetProperties,
                                                    	true);
}</pre></p>
<p>Creating my Document Sets via the UI worked fine and gave me the right icon and a link to my Welcome Page. I was well puzzled. After a bit of head scratching and getting back to SharePoint basics I realised my mistake. I was creating an instance of the Documents Set Content Type that was on the SPWeb and not that which was bound to the Document Library.</p>
<p>Once I start using the content type from the library things started working perfectly!</p>
<p><pre class="brush: csharp; pad-line-numbers: true;">public static void GenerateNewApplicationDocumentSet(string applicationNumber, SPList targetLibrary)
{
	if (applicationNumber == null) throw new ArgumentNullException(&quot;applicationNumber&quot;);
	if (targetLibrary == null) throw new ArgumentNullException(&quot;targetLibrary&quot;);
	//You can use a hashtable to populate properties of the document set
	var docsetProperties = new Hashtable {{&quot;Name&quot;, applicationNumber}};
	var documentSetContentType = targetLibrary.ContentTypes[ContentTypeNames.ApplicationDocumentSet];
	documentSet = DocumentSet.Create(targetLibrary.RootFolder,
                                                    	applicationNumber,
                                                    	documentSetContentType.Id,
                                                    	docsetProperties,
                                                    	true);
}</pre></p>
<p><a href="http://gavinbdotnet.files.wordpress.com/2012/03/docsets.png"><img style="background-image:none;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;margin-right:auto;padding-top:0;border:0;" title="docsets" src="http://gavinbdotnet.files.wordpress.com/2012/03/docsets_thumb.png?w=328&#038;h=151" alt="docsets" width="328" height="151" border="0" /></a></p>
<p>Subtle but telling reminder that the content types bound to lists are different from those site wide content types that they inherit from.</p>
<br />Filed under: <a href='http://gavinb.net/category/development/'>Development</a>, <a href='http://gavinb.net/category/document-sets/'>Document Sets</a>, <a href='http://gavinb.net/category/sharepoint/'>SharePoint</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gavinbdotnet.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gavinbdotnet.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gavinbdotnet.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gavinbdotnet.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gavinbdotnet.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gavinbdotnet.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gavinbdotnet.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gavinbdotnet.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gavinbdotnet.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gavinbdotnet.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gavinbdotnet.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gavinbdotnet.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gavinbdotnet.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gavinbdotnet.wordpress.com/314/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=314&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gavinb.net/2012/03/15/create-a-document-set-in-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">gavinbarron</media:title>
		</media:content>

		<media:content url="http://gavinbdotnet.files.wordpress.com/2012/03/docsetpopoutmenu_thumb.png" medium="image">
			<media:title type="html">docsetpopoutmenu</media:title>
		</media:content>

		<media:content url="http://gavinbdotnet.files.wordpress.com/2012/03/docsets_thumb.png" medium="image">
			<media:title type="html">docsets</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint Search: Custom Managed Property Woes</title>
		<link>http://gavinb.net/2012/03/03/sharepoint-search-custom-managed-property-woes/</link>
		<comments>http://gavinb.net/2012/03/03/sharepoint-search-custom-managed-property-woes/#comments</comments>
		<pubDate>Sat, 03 Mar 2012 06:28:16 +0000</pubDate>
		<dc:creator>gavinbarron</dc:creator>
				<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Search]]></category>

		<guid isPermaLink="false">https://gavinbdotnet.wordpress.com/?p=290</guid>
		<description><![CDATA[So I was working on some custom search interfaces that my team had built and was getting the infamous “Property doesn&#8217;t exist or is used in a manner inconsistent with schema settings”. Now usually this means that you’re trying to &#8230; <a href="http://gavinb.net/2012/03/03/sharepoint-search-custom-managed-property-woes/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=290&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So I was working on some custom search interfaces that my team had built and was getting the infamous <font color="#c0504d"><strong>“Property doesn&#8217;t exist or is used in a manner inconsistent with schema settings”</strong><font color="#000000"><strong>.</strong> </font></font></p>
<p><font color="#333333">Now usually this means that you’re trying to use a managed property without mapping it to a crawled property or before doing a full crawl after creating the managed property. Neither of these were the case for me. </font></p>
<p>In my case I was trying to search on a DateTime field, which I’d set up as a Managed Property called DocDate, and I’d decided to base the format of the search term off what SharePoint creates from the advanced search screen which is “Write&gt;=02/03/2012”. </p>
<p>When I was looking for a known document in my corpus which should have a DocDate of 15/02/2012 using the search term “DocDate=15/02/25012” I was presented a familiar message, however I knew I’d wired up the Managed Property correctly.</p>
<p><a href="http://gavinbdotnet.files.wordpress.com/2012/03/infamous_error.png"><img style="background-image:none;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;margin-right:auto;padding-top:0;border-width:0;" title="Infamous_Error" border="0" alt="Infamous_Error" src="http://gavinbdotnet.files.wordpress.com/2012/03/infamous_error_thumb.png?w=452&#038;h=129" width="452" height="129"></a></p>
<p>So I downloaded the <a href="http://sharepointsearchserv.codeplex.com/">SharePoint Search Service Tool</a> and tested another search to verify that my DocDate property was populated and getting returned, sure enough, it’s coming back in search results.</p>
<p><a href="http://gavinbdotnet.files.wordpress.com/2012/03/managed_property_returned.png"><img style="background-image:none;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;margin-right:auto;padding-top:0;border-width:0;" title="Managed_Property_Returned" border="0" alt="Managed_Property_Returned" src="http://gavinbdotnet.files.wordpress.com/2012/03/managed_property_returned_thumb.png?w=644&#038;h=182" width="644" height="182"></a></p>
<p>After a bit of head scratching and cursing I hit upon the problem.</p>
<p>1033.</p>
<p>I was getting bitten by the fact that the only “English” installation of SharePoint anybody can use is actually American, and their horribly broken date format is used by the query engine despite the fact that the Search Centre site has the locale set to en-NZ. A quick change of query to use ISO date formatting and BOOM! I’ve got results!</p>
<p><a href="http://gavinbdotnet.files.wordpress.com/2012/03/search_with_results.png"><img style="background-image:none;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;margin-right:auto;padding-top:0;border-width:0;" title="Search_With_Results" border="0" alt="Search_With_Results" src="http://gavinbdotnet.files.wordpress.com/2012/03/search_with_results_thumb.png?w=485&#038;h=374" width="485" height="374"></a></p>
<p>In short, SharePoint will give you the “Property doesn&#8217;t exist or is used in a manner inconsistent with schema settings” error message when it couldn’t parse a Date.</p>
<br />Filed under: <a href='http://gavinb.net/category/configuration/'>Configuration</a>, <a href='http://gavinb.net/category/development/'>Development</a>, <a href='http://gavinb.net/category/search/'>Search</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gavinbdotnet.wordpress.com/290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gavinbdotnet.wordpress.com/290/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gavinbdotnet.wordpress.com/290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gavinbdotnet.wordpress.com/290/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gavinbdotnet.wordpress.com/290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gavinbdotnet.wordpress.com/290/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gavinbdotnet.wordpress.com/290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gavinbdotnet.wordpress.com/290/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gavinbdotnet.wordpress.com/290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gavinbdotnet.wordpress.com/290/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gavinbdotnet.wordpress.com/290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gavinbdotnet.wordpress.com/290/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gavinbdotnet.wordpress.com/290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gavinbdotnet.wordpress.com/290/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=290&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gavinb.net/2012/03/03/sharepoint-search-custom-managed-property-woes/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">gavinbarron</media:title>
		</media:content>

		<media:content url="http://gavinbdotnet.files.wordpress.com/2012/03/infamous_error_thumb.png" medium="image">
			<media:title type="html">Infamous_Error</media:title>
		</media:content>

		<media:content url="http://gavinbdotnet.files.wordpress.com/2012/03/managed_property_returned_thumb.png" medium="image">
			<media:title type="html">Managed_Property_Returned</media:title>
		</media:content>

		<media:content url="http://gavinbdotnet.files.wordpress.com/2012/03/search_with_results_thumb.png" medium="image">
			<media:title type="html">Search_With_Results</media:title>
		</media:content>
	</item>
		<item>
		<title>Data import and &#8216;old&#8217; dates</title>
		<link>http://gavinb.net/2012/03/03/data-import-and-old-dates/</link>
		<comments>http://gavinb.net/2012/03/03/data-import-and-old-dates/#comments</comments>
		<pubDate>Sat, 03 Mar 2012 06:27:41 +0000</pubDate>
		<dc:creator>gavinbarron</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">https://gavinbdotnet.wordpress.com/?p=294</guid>
		<description><![CDATA[Running a data importing tool my team had developed I ran into this little gem: “Unhandled Exception: Microsoft.SharePoint.SPInvalidPropertyException: Date Times before 1/1/1970 are not supported”. What the hell? I’ve entered dates prior to 1970 via the UI before. A quick &#8230; <a href="http://gavinb.net/2012/03/03/data-import-and-old-dates/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=294&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Running a data importing tool my team had developed I ran into this little gem: <span style="color:#c0504d;">“Unhandled Exception: Microsoft.SharePoint.SPInvalidPropertyException: Date Times before 1/1/1970 are not supported”</span><span style="color:#333333;">.</span></p>
<p>What the hell? I’ve entered dates prior to 1970 via the UI before. A quick search showed me this great post: <a href="http://www.tonytestasworld.com/post/2007/12/18/Proper-way-to-set-DateTime-format-of-a-Sharepoint-list-item-datetime-property.aspx">Proper way to set DateTime format of a Sharepoint list item datetime property</a>. Perfect.</p>
<p>I have one small addition to make to that. You can use the DateTime format string of “s” for ‘sortable’ date times.<br />
<pre class="brush: csharp; pad-line-numbers: true;">
fileToUpload.Properties[&quot;DateField&quot;] = date.ToString(&quot;s&quot;);
</pre></p>
<br />Filed under: <a href='http://gavinb.net/category/development/'>Development</a>, <a href='http://gavinb.net/category/sharepoint/'>SharePoint</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gavinbdotnet.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gavinbdotnet.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gavinbdotnet.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gavinbdotnet.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gavinbdotnet.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gavinbdotnet.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gavinbdotnet.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gavinbdotnet.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gavinbdotnet.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gavinbdotnet.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gavinbdotnet.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gavinbdotnet.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gavinbdotnet.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gavinbdotnet.wordpress.com/294/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=294&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gavinb.net/2012/03/03/data-import-and-old-dates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">gavinbarron</media:title>
		</media:content>
	</item>
		<item>
		<title>It&#8217;s been a while&#8230;..</title>
		<link>http://gavinb.net/2012/03/03/its-been-a-while/</link>
		<comments>http://gavinb.net/2012/03/03/its-been-a-while/#comments</comments>
		<pubDate>Sat, 03 Mar 2012 06:07:00 +0000</pubDate>
		<dc:creator>gavinbarron</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">https://gavinbdotnet.wordpress.com/?p=292</guid>
		<description><![CDATA[Yeah, I’ve been neglecting my blog. My last post was waaaaay back in October, while I was attending the SharePoint Conference in Anaheim. I thoroughly enjoyed my time at the conference. However I didn’t follow through on a couple of &#8230; <a href="http://gavinb.net/2012/03/03/its-been-a-while/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=292&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Yeah, I’ve been neglecting my blog. My last post was waaaaay back in October, while I was attending the SharePoint Conference in Anaheim. I thoroughly enjoyed my time at the conference. However I didn’t follow through on a couple of blog posts I’d planned and some CSS/HTML resources I was going to post as a follow up to the session I co-presented.</p>
<p>Sorry.</p>
<p>In all honestly when I got back from the US after that trip I was a bit burnt out. Pulling large hours for an extended period of time just caught up with me. I really love the work I got to do over that time, building a keynote demo for the SharePoint Conference was an amazing experience! But it’s nice to slow down a little and enjoy life too.</p>
<p>So I took a bit of a break from the long hours to spend more time with my wonderful fiancée and spent some time getting out hiking the Waiatakere ranges. Well I’m glad to say that I’m starting to blog again, this is the first of three posts that will go out today. </p>
<p>I’m going to TRY to keep up&nbsp; a cadence of a post per week, but I do throw out the caveat that I am getting married in September so I’ll likely go dark for a few weeks around that.</p>
<p>I’m really excited about lots of cool things things that are happening this year, the first, and second, of these being the <a href="http://www.sharepointconference.com.au/">Australian</a> and <a href="http://www.sharepointconference.co.nz">New Zealand SharePoint Conferences</a> where I’ll be presenting on using <a href="http://www.sharepointconference.co.nz/2012/SitePages/SessionInfo.aspx?SessionID=1111">LiveID and Claims based authentication</a>. Even if my topic isn’t your bag they’ll be a great pair of events industry leading experts, MVPs and two MCMs presenting. So I strongly urge you to hit up your boss and get yourself to Melbourne for March 20&amp;21 or Auckland for March 28&amp;29.</p>
<p>Anyway, it’s good to be back.</p>
<br />Filed under: <a href='http://gavinb.net/category/general/'>General</a>, <a href='http://gavinb.net/category/personal/'>Personal</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gavinbdotnet.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gavinbdotnet.wordpress.com/292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gavinbdotnet.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gavinbdotnet.wordpress.com/292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gavinbdotnet.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gavinbdotnet.wordpress.com/292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gavinbdotnet.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gavinbdotnet.wordpress.com/292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gavinbdotnet.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gavinbdotnet.wordpress.com/292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gavinbdotnet.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gavinbdotnet.wordpress.com/292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gavinbdotnet.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gavinbdotnet.wordpress.com/292/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=292&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gavinb.net/2012/03/03/its-been-a-while/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">gavinbarron</media:title>
		</media:content>
	</item>
		<item>
		<title>SPC366 Making SharePoint Websites Sing on your Smartphone</title>
		<link>http://gavinb.net/2011/10/05/spc366-making-sharepoint-websites-sing-on-your-smartphone/</link>
		<comments>http://gavinb.net/2011/10/05/spc366-making-sharepoint-websites-sing-on-your-smartphone/#comments</comments>
		<pubDate>Tue, 04 Oct 2011 21:00:28 +0000</pubDate>
		<dc:creator>gavinbarron</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://gavinb.net/?p=265</guid>
		<description><![CDATA[Well that was fun! I had a real blast co-presesnting that session with Chris. As promised I have a bunch of resources for you to download and peruse. Disabling Mobile Re-direction via PowerShell Hmmm, apparently WordPress won&#8217;t let me host &#8230; <a href="http://gavinb.net/2011/10/05/spc366-making-sharepoint-websites-sing-on-your-smartphone/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=265&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Well that was fun!</strong></p>
<p>I had a real blast co-presesnting that session with <a href="http://syringe.net.nz/" title="Chris' Blog">Chris</a>. As promised I have a bunch of resources for you to <del datetime="2011-10-04T20:57:20+00:00">download and</del> peruse.</p>
<p><a href="http://gavinb.net/2011/06/13/disable-mobile-redirection-for-a-web-application-via-powershell/" title="Disable Mobile Redirection for a Web Application via PowerShell">Disabling Mobile Re-direction via PowerShell</a></p>
<p>Hmmm, apparently WordPress won&#8217;t let me host any useful file formats in my site (not even plain .txt files!!!) so sorry&#8230;. My plans of giving you folks full Visual Studio solutions as zip files has been foiled! I&#8217;ll work out a cunning plan to get around this later.</p>
<p>In the meantime:</p>
<p>The custom re-director I showed off was based off this MSDN article: <a href="http://msdn.microsoft.com/en-us/library/ms441925.aspx" Title="How to: Customize the Mobile Home Page Through Redirection">http://msdn.microsoft.com/en-us/library/ms441925.aspx</a>. Essentially you should: </p>
<ul>
<li>Create a mapped folder in you SharePoint Solution, mapping it to 14HIVE\TEMPLATE\LAYOUTS\MOBILE</li>
<li>Into this add your own custom aspx page that inherits from Microsoft.SharePoint.MobileRedirection.SPMobilePage</li>
<li>Override the OnInit method to provide your custom redirection</li>
<li>Create a copy of the existing mbllists.aspx as mbllists.old.aspx, or similar </li>
<li>Replace the existing mbllists.aspx with your own custom page that contains:</li>
<p><pre class="brush: xml;">
&lt;SPMobile:SPMobileForm RunAt=&quot;Server&quot; PageType=&quot;HomePage&quot; Paginate=&quot;true&quot;&gt;
	&lt;SPMobile:SPMobileHomePageRedirection ID=&quot;SPMobileHomePageRedirection1&quot; RunAt=&quot;Server&quot; 
    PageFileName=&quot;CustomMobileRedirect.aspx&quot; /&gt;
&lt;/SPMobile:SPMobileForm&gt;
</pre></p>
<li>Deploy the solution</li>
</ul>
<p>
The HttpHandler that I used to trick SharePoint into not re-directing I sourced from the blog of Waldek Mastykarz: <a href="http://blog.mastykarz.nl/inconvenient-sharepoint-2010-mobile-redirect/" title="Mobile Redirection.">http://blog.mastykarz.nl/inconvenient-sharepoint-2010-mobile-redirect/</a>.</p>
<p>I then coupled it with a really simple webpart that contained the following code.
</p>
<p><pre class="brush: csharp;">
using System;
using System.ComponentModel;
using System.Web.UI.WebControls.WebParts;

namespace VariationsRedirector.RedirectWebPart
{
    [ToolboxItemAttribute(false)]
    public class RedirectWebPart : WebPart
    {
        protected override void OnInit(EventArgs e)
        {
            if (Page.Request.Browser.IsMobileDevice)
            {
                string mobileUrl = GetMobileSiteUrl();
                Page.Response.Redirect(mobileUrl);
            }
            base.OnInit(e);
        }

        /// &lt;summary&gt;
        /// Gets the Mobile URL form the config settings list if it exists
        /// &lt;/summary&gt;
        /// &lt;returns&gt;The mobile URL&lt;/returns&gt;
        private string GetMobileSiteUrl()
        {
            //This is just hard coded to change the URL of the current request,
            //swaping the mobile variation label for the www variation label, 
            //hey, it's demo code...
            string mobileUrl = Page.Request.Url.ToString().ToLower().Replace(&quot;/www/&quot;, &quot;/mobile/&quot;);
            return mobileUrl;
        }
    }
}
</pre></p>
<p>
Many thanks to the Conference team for allowing me to present and to all of you that came along to my session<br />
Feel free to reach out to either Chris of myself if you have any further queries <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
<br />Filed under: <a href='http://gavinb.net/category/uncategorized/'>Uncategorized</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gavinbdotnet.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gavinbdotnet.wordpress.com/265/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gavinbdotnet.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gavinbdotnet.wordpress.com/265/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gavinbdotnet.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gavinbdotnet.wordpress.com/265/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gavinbdotnet.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gavinbdotnet.wordpress.com/265/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gavinbdotnet.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gavinbdotnet.wordpress.com/265/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gavinbdotnet.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gavinbdotnet.wordpress.com/265/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gavinbdotnet.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gavinbdotnet.wordpress.com/265/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=265&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gavinb.net/2011/10/05/spc366-making-sharepoint-websites-sing-on-your-smartphone/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">gavinbarron</media:title>
		</media:content>
	</item>
		<item>
		<title>Visual Web Parts for SharePoint in the Sandbox</title>
		<link>http://gavinb.net/2011/09/22/visual-web-parts-for-sharepoint-in-the-sandbox/</link>
		<comments>http://gavinb.net/2011/09/22/visual-web-parts-for-sharepoint-in-the-sandbox/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 23:13:10 +0000</pubDate>
		<dc:creator>gavinbarron</dc:creator>
				<category><![CDATA[Deployment]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Sandbox]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">https://gavinbdotnet.wordpress.com/?p=262</guid>
		<description><![CDATA[Get ‘em while they’re hot! Visual Studio 2010 SharePoint Power Tools plus a sandboxed compilation to ensure you’re not accidentally calling outside of the allowed set of types and members. Filed under: Deployment, Development, Sandbox, SharePoint, Visual Studio<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=262&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Get ‘em while they’re hot! <a href="http://visualstudiogallery.msdn.microsoft.com/8e602a8c-6714-4549-9e95-f3700344b0d9/">Visual Studio 2010 SharePoint Power Tools</a> plus a sandboxed compilation to ensure you’re not accidentally calling outside of the allowed set of types and members.</p>
<br />Filed under: <a href='http://gavinb.net/category/deployment/'>Deployment</a>, <a href='http://gavinb.net/category/development/'>Development</a>, <a href='http://gavinb.net/category/sandbox/'>Sandbox</a>, <a href='http://gavinb.net/category/sharepoint/'>SharePoint</a>, <a href='http://gavinb.net/category/visual-studio/'>Visual Studio</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gavinbdotnet.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gavinbdotnet.wordpress.com/262/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gavinbdotnet.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gavinbdotnet.wordpress.com/262/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gavinbdotnet.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gavinbdotnet.wordpress.com/262/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gavinbdotnet.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gavinbdotnet.wordpress.com/262/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gavinbdotnet.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gavinbdotnet.wordpress.com/262/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gavinbdotnet.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gavinbdotnet.wordpress.com/262/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gavinbdotnet.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gavinbdotnet.wordpress.com/262/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=262&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gavinb.net/2011/09/22/visual-web-parts-for-sharepoint-in-the-sandbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">gavinbarron</media:title>
		</media:content>
	</item>
		<item>
		<title>SPServices Helper Function: Resolve the Guid of a View</title>
		<link>http://gavinb.net/2011/09/21/spservices-helper-function-resolve-the-guid-of-a-view/</link>
		<comments>http://gavinb.net/2011/09/21/spservices-helper-function-resolve-the-guid-of-a-view/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 06:09:26 +0000</pubDate>
		<dc:creator>gavinbarron</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SPServices]]></category>

		<guid isPermaLink="false">https://gavinbdotnet.wordpress.com/?p=253</guid>
		<description><![CDATA[If you’re using the excellent SPServices library to wrap up access to the SharePoint web services from JavaScript, good stuff! If, like me, you want to query a View on a given list you’ll need to pass the Guid of &#8230; <a href="http://gavinb.net/2011/09/21/spservices-helper-function-resolve-the-guid-of-a-view/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=253&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you’re using the excellent <a href="http://spservices.codeplex.com/">SPServices</a> library to wrap up access to the SharePoint web services from JavaScript, good stuff! <br />If, like me, you want to query a View on a given list you’ll need to pass the Guid of the view as the viewName parameter. Using the display name will give you the error: Parameter viewName is missing or invalid. 0&#215;82000001</p>
<p>To resolve this you’ll need to call the GetViewCollection method for a given list and then parse the result to find your Guid. I’m a total newbie to jQuery and client side scripting so I found this a little tricky to get right, but I got there. So, here’s a helper for you use:</p>
<p><pre class="brush: jscript; pad-line-numbers: true;">
function ResolveListGuidFromName(webUrl, listName, viewName){
	var guid;
	var filter = &quot;View[DisplayName='&quot;+ viewName +&quot;']&quot;;
	$().SPServices({
	    operation: &quot;GetViewCollection&quot;,
	    async: false,
	    webURL: webUrl,
	    listName: &quot;Votes&quot;,
	    completefunc:function (xData, Status) {
			guid = $(xData.responseXML).find(filter).attr(&quot;Name&quot;);
		}
	});
	return guid;
}
</pre></p>
<p>Not too bad for my first hack at this stuff.</p>
<br />Filed under: <a href='http://gavinb.net/category/development/'>Development</a>, <a href='http://gavinb.net/category/jquery/'>jQuery</a>, <a href='http://gavinb.net/category/sharepoint/'>SharePoint</a>, <a href='http://gavinb.net/category/spservices/'>SPServices</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gavinbdotnet.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gavinbdotnet.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gavinbdotnet.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gavinbdotnet.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gavinbdotnet.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gavinbdotnet.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gavinbdotnet.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gavinbdotnet.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gavinbdotnet.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gavinbdotnet.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gavinbdotnet.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gavinbdotnet.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gavinbdotnet.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gavinbdotnet.wordpress.com/253/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=253&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gavinb.net/2011/09/21/spservices-helper-function-resolve-the-guid-of-a-view/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">gavinbarron</media:title>
		</media:content>
	</item>
		<item>
		<title>TFS 2010: Add to security groups from outside of the current domain</title>
		<link>http://gavinb.net/2011/09/14/tfs-2010-add-to-security-groups-from-outside-of-the-current-domain/</link>
		<comments>http://gavinb.net/2011/09/14/tfs-2010-add-to-security-groups-from-outside-of-the-current-domain/#comments</comments>
		<pubDate>Tue, 13 Sep 2011 22:04:10 +0000</pubDate>
		<dc:creator>gavinbarron</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[TFS]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">https://gavinbdotnet.wordpress.com/?p=248</guid>
		<description><![CDATA[If you’re a SharePoint developer like me, chances are that the dev server you’re working on is joined to a different domain from your corporate identity. Now this makes it tricky to add users to your TFS Security Groups from &#8230; <a href="http://gavinb.net/2011/09/14/tfs-2010-add-to-security-groups-from-outside-of-the-current-domain/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=248&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you’re a SharePoint developer like me, chances are that the dev server you’re working on is joined to a different domain from your corporate identity. Now this makes it tricky to add users to your TFS Security Groups from inside of Visual Studio as you can’t browse the AD users on your corporate domain</p>
<p>Thankfully there is a handy command line tool that you can use called TFSSecurity.exe, by default you can find it in C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE</p>
<p>What you need to run is:</p>
<blockquote><p>TFSSecurity.exe /collection:http://&lt;serverUri&gt;:&lt;port&gt;/&lt;virtualDirectory&gt;/&lt;collectionName&gt;/g+ &#8220;[&lt;projectName&gt;]\&lt;group&gt;&#8221; n:&#8221;&lt;DOMAIN&gt;\&lt;user&gt;&#8221;</p>
</blockquote>
<p>Replace everything in angle brackets with the values that match your environment. As a rule of thumb for default install the virtual directory is tfs, the port is 8080 and the collection is default. So to add INTERGEN\Gavinb to project Awesome as a contributor the command looks like this:</p>
<blockquote><p>TFSSecurity.exe /collection:http://tfsserver:8080/tfs/default /g+ &#8220;[Awesome]\Contributors&#8221; n:&#8221;INTERGEN\gavinb&#8221;</p>
</blockquote>
<br />Filed under: <a href='http://gavinb.net/category/security/'>Security</a>, <a href='http://gavinb.net/category/tfs/'>TFS</a>, <a href='http://gavinb.net/category/visual-studio/'>Visual Studio</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gavinbdotnet.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gavinbdotnet.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gavinbdotnet.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gavinbdotnet.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gavinbdotnet.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gavinbdotnet.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gavinbdotnet.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gavinbdotnet.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gavinbdotnet.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gavinbdotnet.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gavinbdotnet.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gavinbdotnet.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gavinbdotnet.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gavinbdotnet.wordpress.com/248/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=248&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gavinb.net/2011/09/14/tfs-2010-add-to-security-groups-from-outside-of-the-current-domain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">gavinbarron</media:title>
		</media:content>
	</item>
	</channel>
</rss>
