<?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/"
	>

<channel>
	<title>Sigurbjörn Guðjónsson</title>
	<atom:link href="http://www.sigurbjorn.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.sigurbjorn.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 21 May 2009 20:49:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>No post in a long time&#8230;</title>
		<link>http://www.sigurbjorn.com/?p=37</link>
		<comments>http://www.sigurbjorn.com/?p=37#comments</comments>
		<pubDate>Sat, 20 Dec 2008 06:29:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Whatever]]></category>

		<guid isPermaLink="false">http://sigurbjorn.wordpress.com/2008/12/19/no-post-in-a-long-time/</guid>
		<description><![CDATA[I&#8217;ve been working on a fairly extensive SharePoint project the last few weeks and I think I&#8217;ve taken my SharePoint knowledge to another level.
There might be a post or two from what I&#8217;ve experienced and solved in this current project.
Later&#8230;
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working on a fairly extensive SharePoint project the last few weeks and I think I&#8217;ve taken my SharePoint knowledge to another level.</p>
<p>There might be a post or two from what I&#8217;ve experienced and solved in this current project.</p>
<p>Later&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sigurbjorn.com/?feed=rss2&amp;p=37</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SharePoint debugging</title>
		<link>http://www.sigurbjorn.com/?p=36</link>
		<comments>http://www.sigurbjorn.com/?p=36#comments</comments>
		<pubDate>Tue, 05 Aug 2008 11:09:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Debugging]]></category>
		<category><![CDATA[GAC]]></category>

		<guid isPermaLink="false">http://sigurbjorn.wordpress.com/?p=33</guid>
		<description><![CDATA[I finally found a great article about debugging in SharePoint over at elumenotion.com. He talks about how you can debug your SharePoint project (or any other project I think) with your dll file in the Global Assembly Cache (GAC).
Check it out and be sure you set your &#60;compilation debug=&#8221;true&#8221;&#62;.
I got an exception &#8220;Cannot evaluate expression [...]]]></description>
			<content:encoded><![CDATA[<p>I finally found a <a href="http://www.elumenotion.com/Blog/Lists/Posts/Post.aspx?ID=23" target="_blank">great article</a> about debugging in SharePoint over at <a href="http://www.elumenotion.com/">elumenotion.com</a>. He talks about how you can debug your SharePoint project (or any other project I think) with your dll file in the Global Assembly Cache (GAC).</p>
<p>Check it out and be sure you set your &lt;compilation debug=&#8221;true&#8221;&gt;.</p>
<p>I got an exception &#8220;Cannot evaluate expression because the code of the current method is optimized.&#8221; while I debugged for the first time so I had to right-click on my project and uncheck &#8220;Optimize code&#8221; in Visual Studio 2008.</p>
<p>Finally I&#8217;m able to debug my project properly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sigurbjorn.com/?feed=rss2&amp;p=36</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ListInstance and &quot;Object reference not set to an instance of an object&quot;</title>
		<link>http://www.sigurbjorn.com/?p=29</link>
		<comments>http://www.sigurbjorn.com/?p=29#comments</comments>
		<pubDate>Mon, 21 Jul 2008 14:17:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Errors]]></category>

		<guid isPermaLink="false">http://sigurbjorn.wordpress.com/?p=29</guid>
		<description><![CDATA[Description
While activating a feature that contains list instances I get an &#8220;Unknown error&#8221; message in the SharePoint UI.
Log Entry
The element &#8216;NameOfListInstance&#8217; of type &#8216;ListInstance&#8217; for feature &#8216;MyCompany.SharePoint&#8217; (id: 00000000-0000-0000-0000-000000000000) threw an exception during activation: Object reference not set to an instance of an object.
My solution
After a lot of debugging I noticed that if I remove [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Description</strong><br />
While activating a feature that contains list instances I get an &#8220;Unknown error&#8221; message in the SharePoint UI.</p>
<p><strong>Log Entry<br />
</strong>The element &#8216;NameOfListInstance&#8217; of type &#8216;ListInstance&#8217; for feature &#8216;MyCompany.SharePoint&#8217; (id: 00000000-0000-0000-0000-000000000000) threw an exception during activation: Object reference not set to an instance of an object.</p>
<p><strong>My solution<br />
</strong>After a lot of debugging I noticed that if I remove the RootWebOnly=&#8221;TRUE&#8221; attribute from the ListInstance element the error goes away.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sigurbjorn.com/?feed=rss2&amp;p=29</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Storing configuration values</title>
		<link>http://www.sigurbjorn.com/?p=23</link>
		<comments>http://www.sigurbjorn.com/?p=23#comments</comments>
		<pubDate>Wed, 16 Jul 2008 08:41:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Links]]></category>

		<guid isPermaLink="false">http://sigurbjorn.wordpress.com/?p=23</guid>
		<description><![CDATA[I found a create post about storing custom configuration values for your SharePoint solutions. Check it out at Chris O&#8217;Brien&#8217;s blog
]]></description>
			<content:encoded><![CDATA[<p>I found a create post about storing custom configuration values for your SharePoint solutions. Check it out at <a href="http://www.sharepointnutsandbolts.com/2008/05/introducing-sharepoint-config-store-for.html">Chris O&#8217;Brien&#8217;s blog</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sigurbjorn.com/?feed=rss2&amp;p=23</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom Content Type and Rich Text</title>
		<link>http://www.sigurbjorn.com/?p=21</link>
		<comments>http://www.sigurbjorn.com/?p=21#comments</comments>
		<pubDate>Tue, 15 Jul 2008 08:19:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Custom Content Type]]></category>
		<category><![CDATA[Web Controls]]></category>

		<guid isPermaLink="false">http://sigurbjorn.wordpress.com/?p=21</guid>
		<description><![CDATA[Ok so here is my scenario:
I&#8217;m developing a custom SharePoint solution that includes &#8230;

a custom content type
numerous fields including RichText enabled fields
list template
a custom control template for my new/edit/display forms

The problem:
Everything was rendering perfectly except my RichText fields.
The solution:
Define your field and reference it in the ContentType xml file
&#60;Field ID="{D5C2A287-02B5-47b1-9865-AC8300A00E86}"
       Name="MyRichTextField"
       StaticName="MyRichTextField"
       DisplayName="My RichText"
       RichText="TRUE"
       [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Ok so here is my scenario:</strong></p>
<p>I&#8217;m developing a custom SharePoint solution that includes &#8230;</p>
<ul>
<li>a custom content type</li>
<li>numerous fields including RichText enabled fields</li>
<li>list template</li>
<li>a custom control template for my new/edit/display forms</li>
</ul>
<p><strong>The problem:</strong></p>
<p>Everything was rendering perfectly except my RichText fields.</p>
<p><strong>The solution:</strong></p>
<p>Define your field and reference it in the ContentType xml file</p>
<pre><span style="color:#000000;">&lt;Field ID="{D5C2A287-02B5-47b1-9865-AC8300A00E86}"
       Name="MyRichTextField"
       StaticName="MyRichTextField"
       DisplayName="My RichText"
</span><span style="color:#000000;"><span>       <strong>RichText="TRUE"</strong>
       <strong>RichTextMode="FullHtml"</strong>
       <strong>Type="Note"</strong>
</span>       Hidden="FALSE"
       /&gt;</span></pre>
<p>Remember to put this field definition also in the <strong>schema.xml</strong> file</p>
<p>In your control template simply write</p>
<pre>&lt;SharePoint:FormField FieldName="MyRichTextField"
                      runat="server" /&gt;</pre>
<p>That&#8217;s it. My headache was because I had forgot to update the <strong>field definition</strong> in the <strong>schema.xml</strong> file with my rich text parameters.</p>
<p>And also if you would like to control the richtext fields width for example. Override the<strong> .ms-rtelong</strong> style with your preferred width like</p>
<pre>.ms-rtelong { width: 100%; }</pre>
<p>Best regards,<br />
Sigurbjörn</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sigurbjorn.com/?feed=rss2&amp;p=21</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Err&#8230; Value does not fall within the expected range</title>
		<link>http://www.sigurbjorn.com/?p=20</link>
		<comments>http://www.sigurbjorn.com/?p=20#comments</comments>
		<pubDate>Mon, 14 Jul 2008 11:38:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Debugging]]></category>

		<guid isPermaLink="false">http://sigurbjorn.wordpress.com/?p=20</guid>
		<description><![CDATA[I got this beautiful error message earlier when trying to activate a custom feature I&#8217;m working on. &#8220;Value does not fall within the expected range.&#8221; Did a google search and found out that there might be something wrong with one of the XML files.
After a good hour and a half I noticed that I had [...]]]></description>
			<content:encoded><![CDATA[<p>I got this beautiful error message earlier when trying to activate a custom feature I&#8217;m working on. &#8220;Value does not fall within the expected range.&#8221; Did a google search and found out that there might be something wrong with one of the XML files.</p>
<p>After a good hour and a half I noticed that I had left a bracket &#8220;}&#8221; in the &lt;ContentType&gt; ID attribute, bad!</p>
<p>Be careful with those ID&#8217;s.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sigurbjorn.com/?feed=rss2&amp;p=20</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Part 1 &#8211; Creating the SharePoint project</title>
		<link>http://www.sigurbjorn.com/?p=35</link>
		<comments>http://www.sigurbjorn.com/?p=35#comments</comments>
		<pubDate>Sun, 13 Jul 2008 23:19:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[WSS 3.0]]></category>

		<guid isPermaLink="false">http://sigurbjorn.wordpress.com/?p=5</guid>
		<description><![CDATA[This is the first part in a series of walkthroughs specially written for developers beginning SharePoint development. I&#8217;m also a beginner and after a few weeks of reading books, blogs and watching countless screen-casts I&#8217;ve finally got to that point where I&#8217;m familiar with the fundamental elements and environment of SharePoint development.
 
Part 1 is only [...]]]></description>
			<content:encoded><![CDATA[<div class="mceTemp" style="text-align:left;">This is the first part in a series of walk<span><span>throughs</span></span> specially written for developers beginning <span><span>SharePoint</span></span> development. I&#8217;m also a beginner and after a few weeks of reading books, blogs and watching countless screen-casts I&#8217;ve finally got to that point where I&#8217;m familiar with the fundamental elements and environment of <span><span>SharePoint</span></span> development.</div>
<div class="mceTemp" style="text-align:left;"> </div>
<div class="mceTemp" style="text-align:left;">Part 1 is only the beginning and should be a walk in the park for everybody. We will set up our Visual Studio project and deploy a simple-do-nothing feature to <span><span>SharePoint</span></span>. I encourage you to follow this walk-through shouldn&#8217;t take more than 10 minutes or so.</div>
<div class="mceTemp" style="text-align:left;"> </div>
<div class="mceTemp" style="text-align:left;">If you are not familiar with <span><span>STSDEV</span></span> I would recommend that you go to the <a href="http://sigurbjorn.wordpress.com/2008/07/13/developing-a-custom-sharepoint-solution/">introduction</a> of these series and read up on some prerequisites.</div>
<h2 class="mceTemp" style="text-align:left;">Lets begin</h2>
<ul>
<li>Open up <strong>Visual Studio 2008</strong></li>
<li>Click <strong>Tools › <span><span>STSDEV</span></span></strong></li>
<li>Insert the <strong>Solution Name</strong>&#8220;<span><span>SG</span></span>.<span><span>SharePoint</span></span>&#8221; (or something you prefer)</li>
<li>Choose your <strong>Parent Directory</strong> &#8220;C:\Demo&#8221;</li>
<li>Create a new <strong>Signing Key</strong>&#8220;C:\Demo\<span><span>DemoKey</span></span>.<span><span>snk</span></span>&#8220;</li>
<li>Choose <strong>Simple Feature Solution</strong> as your <strong>Solution Type</strong></li>
<li>Choose <strong>Visual Studio 2008 .Net 3.0</strong> as your project version type</li>
<li>Click the <strong>Create Solution</strong> button</li>
</ul>
<blockquote><p><a href="http://sigurbjorn.files.wordpress.com/2008/07/001_stsdev.png"><img class="alignnone size-full wp-image-7" src="http://sigurbjorn.files.wordpress.com/2008/07/001_stsdev.png" alt="" width="507" height="201" /></a></p></blockquote>
<ul>
<li>Choose <strong>Site Collection</strong> from the <strong>Feature Scope</strong> dialog box</li>
</ul>
<blockquote><p><a href="http://sigurbjorn.files.wordpress.com/2008/07/002_sitecollection.png"><img class="alignnone size-full wp-image-8" src="http://sigurbjorn.files.wordpress.com/2008/07/002_sitecollection.png" alt="" width="268" height="178" /></a></p>
<h2> </h2>
</blockquote>
<h2>Customise the project</h2>
<p>Now you have created the <span><span>SharePoint</span></span> project that we are going to work with in these series of walk-troughs. We are only going to customise it a little bit for now.</p>
<ul>
<li>Go to <strong>File › Open › Project/Solution&#8230;</strong> and open the project you created above.</li>
<li>You are presented with a security warning but don&#8217;t worry just choose <strong>&#8220;Load project normally&#8221;</strong> and click <strong>OK</strong></li>
</ul>
<blockquote><p><strong><a href="http://sigurbjorn.files.wordpress.com/2008/07/loadprojectnormally.png"><img class="alignnone size-full wp-image-9" src="http://sigurbjorn.files.wordpress.com/2008/07/loadprojectnormally.png" alt="" width="501" height="78" /></a></strong></p></blockquote>
<ul>
<li>No we have our project open and we are just going to change a couple of parameters and then test our solution</li>
<li>Open up <strong><span><span>RootFiles</span></span>\TEMPLATE\FEATURES\<span><span>SG</span></span>.<span><span>SharePoint</span></span>\feature.<span><span>xml</span></span></strong></li>
</ul>
<blockquote><p><strong><a href="http://sigurbjorn.files.wordpress.com/2008/07/solutionexplorer.png"><img class="alignnone size-full wp-image-10" src="http://sigurbjorn.files.wordpress.com/2008/07/solutionexplorer.png" alt="" width="316" height="372" /></a>       </strong></p></blockquote>
<ul>
<li>Change the Title and Description attribute to what you prefer.</li>
</ul>
<h2>Simple Feature ready</h2>
<p>As I mentioned in the beginning of this part that we are only going to make the simplest feature possible. Just to make sure that everything builds and deploys correctly to begin with.</p>
<ul>
<li>In the <strong>Solution Configuration</strong> <span>drop-down</span> list select <strong><span><span>DebugDeploy</span></span></strong> and build your project <strong><span><span>CTRL</span></span>+SHIFT+B</strong>. (I prefer to do a Rebuild cause sometimes my solution doesn&#8217;t build)</li>
</ul>
<blockquote><p><a href="http://sigurbjorn.files.wordpress.com/2008/07/debugdeploy.png"><img class="size-full wp-image-11   alignnone" src="http://sigurbjorn.files.wordpress.com/2008/07/debugdeploy.png" alt="" width="174" height="175" /></a></p></blockquote>
<ul>
<li>You can watch the build progress in the output window</li>
</ul>
<blockquote><p><a href="http://sigurbjorn.files.wordpress.com/2008/07/outputwindow.png"><img class="alignnone size-full wp-image-12" src="http://sigurbjorn.files.wordpress.com/2008/07/outputwindow.png" alt="" width="488" height="74" /></a></p></blockquote>
<ul>
<li>When the build has completed fire up a browser and browse to the <strong><span><span>SharePoint</span></span> server</strong></li>
<li>Click on <strong>Site Actions › Site Settings</strong></li>
<li>Choose <strong>Site Collection Features</strong> from the <strong>Site Collection Administration</strong> section</li>
<li>Now you should be able to see your new feature.</li>
</ul>
<blockquote>
<h2><a href="http://sigurbjorn.files.wordpress.com/2008/07/features.png"><img class="alignnone size-full wp-image-13" src="http://sigurbjorn.files.wordpress.com/2008/07/features.png" alt="" width="404" height="210" /></a></h2>
</blockquote>
<h2>Conclusion</h2>
<p>We have now created a basic SharePoint project that we are going to use and build upon in future parts of this series.</p>
<p>That&#8217;s it for this part. Stick around for the next part as we are going to take it a step further and prepare our project for some advanced features, like <span><span>Workflows</span></span> and integrate our custom .<span><span>aspx</span></span> pages with code-behind.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sigurbjorn.com/?feed=rss2&amp;p=35</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Developing a custom SharePoint solution</title>
		<link>http://www.sigurbjorn.com/?p=34</link>
		<comments>http://www.sigurbjorn.com/?p=34#comments</comments>
		<pubDate>Sun, 13 Jul 2008 23:17:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[WSS 3.0]]></category>

		<guid isPermaLink="false">http://sigurbjorn.wordpress.com/?p=4</guid>
		<description><![CDATA[My name is Sigurbjörn Guðjónsson, and I live in Reykjavík, Iceland. I recently started working as a developer for Focal Software &#38; Consulting (www.focal.is). My job description is a .Net developer and I&#8217;m currently working in the SharePoint environment.
I was first introduced to SharePoint late last June so I&#8217;ve got just about +3 weeks of [...]]]></description>
			<content:encoded><![CDATA[<p>My name is Sigurbjörn Guðjónsson, and I live in Reykjavík, Iceland. I recently started working as a developer for <strong>Focal Software &amp; Consulting</strong> (<a href="http://www.focal.is">www.focal.is</a>). My job description is a <strong>.Net developer</strong> and I&#8217;m currently working in the <strong>SharePoint</strong> environment.</p>
<p>I was first introduced to SharePoint late last June so I&#8217;ve got just about +3 weeks of trial and error (mostly error) under my belt. I&#8217;ve read books, blogs and watch quite a few screencasts. So I guess that right now you can consider me to be a <strong>beginner </strong>in SharePoint development.</p>
<p>This post is an introduction into a series of walk-throughs for developers beginning ( or just interested in) SharePoint development. I&#8217;ll try to show you how you can create a custom SharePoint solution from scratch that, as far as I know, uses the most common elements of SharePoint.</p>
<p>We will create a simple feature solution that includes a <strong>content-type</strong>, <strong>custom field type</strong>, <strong>list template</strong> and <strong>definition</strong> along with <strong>workflows</strong> and <strong>custom .aspx pages</strong> that use <strong>code-behind</strong> like we all love (and hate). I&#8217;ll show you how I combine all these elements together into a custom application specially written for <strong>Windows SharePoint Services 3.0</strong> (WSS).</p>
<p>Oh and by-the-way. This is my first time writing a blog so bare with my (I&#8217;ll hopefully get better) and keep those comments coming.</p>
<h2>Prerequisites</h2>
<p>I&#8217;ll be using <strong>Visual Studio 2008</strong> running on<strong> Windows Server 2003</strong> in a <strong>virtual machine</strong> environment and the <strong>STSDEV 1.3</strong> (<a href="http://www.codeplex.com/stsdev">http://www.codeplex.com/stsdev</a>) plugin to assist me in creating my project.</p>
<p>I strongly recommend that you setup your development environment in a virtual machine, tough it might be slower it beats having to constantly re-install SharePoint on your desktop/laptop and saves you from screw-ups you might get yourself into.</p>
<p>Also I recommend you to visit the STSDEV website at <a href="http://www.codeplex.com/stsdev">CodePlex</a> on how to install this magnificent application and watch their tutorials.</p>
<h2>What&#8217;s next</h2>
<p>I hope that my effort will help somebody out there starting their journey into SharePoint.</p>
<p><a href="http://sigurbjorn.wordpress.com/2008/07/13/part-1-creating-the-sharepoint-project">So here is part 1 of my series, enjoy.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sigurbjorn.com/?feed=rss2&amp;p=34</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
