<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<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/"
	>

<channel>
	<title>splife &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/splife/</link>
	<description>Feed of posts on WordPress.com tagged "splife"</description>
	<pubDate>Tue, 22 Dec 2009 10:32:14 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[SharePoint Life Lessons #001]]></title>
<link>http://stevepietrek.com/2008/02/26/sharepoint-life-lessons-001/</link>
<pubDate>Tue, 26 Feb 2008 16:00:49 +0000</pubDate>
<dc:creator>Steve Pietrek</dc:creator>
<guid>http://stevepietrek.com/2008/02/26/sharepoint-life-lessons-001/</guid>
<description><![CDATA[Ran into a few anomalies I wanted to get down. 1. I was attempting to create a site using the stsadm]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Ran into a few anomalies I wanted to get down.</p>
<p><!--more--></p>
<p>1. I was attempting to create a site using the stsadm command &#8220;createsite&#8221;. I was receiving the error:</p>
<p><code>The URL '/sites/intranet/' is invalid.  It may contain illegal characters, or be too long</code></p>
<p>My script was defined below:</p>
<p><code>"%SPDIR%binstsadm.exe" -o createsite -url http://localhost:22000/sites/intranet/ -ownerlogin localhostadministrator -owneremail administrator@sharepoint.net</code></p>
<p>The issue is with the trailing slash in the URL. It needs to be removed.</p>
<p><code>"%SPDIR%binstsadm.exe" -o createsite -url http://localhost:22000/sites/intranet<strike><font color="#ff0000">/</font></strike>-ownerlogin localhostadministrator -owneremail administrator@sharepoint.net</code></p>
<p>The trailing slash did not cause issues with deletesite or installing/activating features.</p>
<p>2. When accessing fields in a Sharepoint list, I would receive the error:</p>
<p><code>Object set to null reference</code></p>
<p>I was using the code to access the field:</p>
<p><code>item["URL"].ToString();</code></p>
<p>The problem is the column was not required so there may not be any data in the column. To resolve, use the following code when accessing the field:</p>
<p><code>Convert.ToString(item["URL"]);</code></p>
</div>]]></content:encoded>
</item>

</channel>
</rss>
