<?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>entwicklungsgedanken &#187; Farm</title>
	<atom:link href="http://www.entwicklungsgedanken.de/tag/farm/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.entwicklungsgedanken.de</link>
	<description>Verschiedene Gedanken rund um die Softwareentwicklung</description>
	<lastBuildDate>Mon, 09 Jan 2012 14:47:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Server Type &#8220;complete&#8221; is missing when installing Office SharePoint Server 2007 on Windows 7 or Windows Vista</title>
		<link>http://www.entwicklungsgedanken.de/2009/08/25/server-type-complete-is-missing-when-installing-office-sharepoint-server-2007-on-windows-7-or-windows-vista/</link>
		<comments>http://www.entwicklungsgedanken.de/2009/08/25/server-type-complete-is-missing-when-installing-office-sharepoint-server-2007-on-windows-7-or-windows-vista/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 19:52:55 +0000</pubDate>
		<dc:creator>Eric Bartels</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint-Development]]></category>
		<category><![CDATA[Farm]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[Missing]]></category>
		<category><![CDATA[MOSS]]></category>
		<category><![CDATA[Role]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://www.entwicklungsgedanken.de/?p=330</guid>
		<description><![CDATA[I really like Windows 7! As I am a SharePoint developer I was happy that (thanks to Bamboo) one can install SharePoint on Vista and Windows 7. After I figured out why my first installation try went wrong I hit another strange issue. When installing MOSS you have to choose which role your server is [...]]]></description>
			<content:encoded><![CDATA[<p>I really like Windows 7! As I am a SharePoint developer I was happy that (thanks to Bamboo) one can <a href="http://community.bamboosolutions.com/forums/t/13186.aspx#22419">install SharePoint on Vista and Windows 7</a>.</p>
<p>After <a href="http://community.bamboosolutions.com/forums/t/13186.aspx#22419">I figured out why my first installation try went wrong</a> I hit another strange issue.</p>
<p><a href="http://www.entwicklungsgedanken.de/wp-content/uploads/2009/08/Server-Type-Missing.png"><img src="http://www.entwicklungsgedanken.de/wp-content/uploads/2009/08/Server-Type-Missing-150x150.png" alt="Server-Type-Missing" title="Server-Type-Missing" width="150" height="150" class="alignright size-thumbnail wp-image-331" /></a>When installing MOSS you have to choose which role your server is in. As I want to develop with BDC, Excel Services, Search Service I need to create a small farm (SQL Server running on the same machine in this case). But during the setup the &#8220;Complete Server Type&#8221; was missing!</p>
<h3>Where are you my PDC?</h3>
<p>I like development. So this installation took place on my home-machine which is not inside a domain.
<p>A little while ago I installed MOSS successfully on Vista including the &#8220;complete role&#8221;. So one difference was the absence of a domain-controller &#8230;</p>
<h3>Conclusion</h3>
<p><strong>After my machine became a member of a domain (and a reboot) the &#8220;Complete Server Type Role&#8221; became available during installation!</strong> SharePoint development on Windows 7 x64 is pure fun &#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.entwicklungsgedanken.de/2009/08/25/server-type-complete-is-missing-when-installing-office-sharepoint-server-2007-on-windows-7-or-windows-vista/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Inconvenient class-naming with feature receiver and scope=&#8221;Farm&#8221;</title>
		<link>http://www.entwicklungsgedanken.de/2008/12/11/inconvenient-class-naming-with-feature-receiver-and-scopefarm/</link>
		<comments>http://www.entwicklungsgedanken.de/2008/12/11/inconvenient-class-naming-with-feature-receiver-and-scopefarm/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 00:36:20 +0000</pubDate>
		<dc:creator>Eric Bartels</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint-Development]]></category>
		<category><![CDATA[Farm]]></category>
		<category><![CDATA[feature]]></category>
		<category><![CDATA[Inconvenient]]></category>
		<category><![CDATA[Receiver]]></category>
		<category><![CDATA[Scope]]></category>

		<guid isPermaLink="false">http://www.entwicklungsgedanken.de/?p=127</guid>
		<description><![CDATA[Writing feature receivers during SharePoint customizing a common task. Depending on the scope your features belongs to your code looks similar to the following: public override void FeatureActivated&#40;SPFeatureReceiverProperties properties&#41; &#123; // Scope=&#34;Web&#34; SPWeb web = properties.Feature.Parent as SPWeb; &#160; // Scope=&#34;Site&#34; SPSite site = properties.Feature.Parent as SPSite; &#160; // Scope=&#34;WebApplication&#34; SPWebApplication app = properties.Feature.Parent as [...]]]></description>
			<content:encoded><![CDATA[<p>Writing feature receivers during SharePoint customizing a common task. Depending on the scope your features belongs to your code looks similar to the following:</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">override</span> <span style="color: #6666cc; font-weight: bold;">void</span> FeatureActivated<span style="color: #008000;">&#40;</span>SPFeatureReceiverProperties properties<span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
  <span style="color: #008080; font-style: italic;">// Scope=&quot;Web&quot;</span>
  SPWeb web <span style="color: #008000;">=</span> properties<span style="color: #008000;">.</span><span style="color: #0000FF;">Feature</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Parent</span> <span style="color: #0600FF; font-weight: bold;">as</span> SPWeb<span style="color: #008000;">;</span>
&nbsp;
  <span style="color: #008080; font-style: italic;">// Scope=&quot;Site&quot;</span>
  SPSite site <span style="color: #008000;">=</span> properties<span style="color: #008000;">.</span><span style="color: #0000FF;">Feature</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Parent</span> <span style="color: #0600FF; font-weight: bold;">as</span> SPSite<span style="color: #008000;">;</span>
&nbsp;
  <span style="color: #008080; font-style: italic;">// Scope=&quot;WebApplication&quot;</span>
  SPWebApplication app <span style="color: #008000;">=</span> properties<span style="color: #008000;">.</span><span style="color: #0000FF;">Feature</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Parent</span> <span style="color: #0600FF; font-weight: bold;">as</span> SPWebApplication<span style="color: #008000;">;</span>
&nbsp;
  <span style="color: #008080; font-style: italic;">// Scope=&quot;Farm&quot;. Does not work</span>
  SPFarm farm <span style="color: #008000;">=</span> properties<span style="color: #008000;">.</span><span style="color: #0000FF;">Feature</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Parent</span> <span style="color: #0600FF; font-weight: bold;">as</span> SPFarm<span style="color: #008000;">;</span>
<span style="color: #008000;">&#125;</span></pre></div></div>

<h3>Farm != SPFarm</h3>
<p>So the last line in the example code does not work. The variables <code>farm</code> is always <code>null</code>.</p>
<p>Here comes the great &#8220;<strong>SharePoint-naming-convention</strong>&#8220;&#8230; The class to get a farm-context is named <code>SPWebService</code>!</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">override</span> <span style="color: #6666cc; font-weight: bold;">void</span> FeatureActivated<span style="color: #008000;">&#40;</span>SPFeatureReceiverProperties properties<span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
  <span style="color: #008080; font-style: italic;">// Scope=&quot;Farm&quot;. Works!</span>
  SPWebService farm <span style="color: #008000;">=</span> properties<span style="color: #008000;">.</span><span style="color: #0000FF;">Feature</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Parent</span> <span style="color: #0600FF; font-weight: bold;">as</span> SPWebService<span style="color: #008000;">;</span>
<span style="color: #008000;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.entwicklungsgedanken.de/2008/12/11/inconvenient-class-naming-with-feature-receiver-and-scopefarm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

