<?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>Dev Team Assemble &#187; Configuration</title>
	<atom:link href="http://www.calvinirwin.net/tag/configuration/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.calvinirwin.net</link>
	<description>Evil beware!</description>
	<lastBuildDate>Wed, 28 Jul 2010 12:55:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SharePoint 2007 on Windows 2008 R2 x64</title>
		<link>http://www.calvinirwin.net/2009/12/01/sharepoint-2007-on-windows-2008-r2-x64/</link>
		<comments>http://www.calvinirwin.net/2009/12/01/sharepoint-2007-on-windows-2008-r2-x64/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 16:11:00 +0000</pubDate>
		<dc:creator>Calvin</dc:creator>
				<category><![CDATA[Configuration]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[windows 2008 r2]]></category>
		<category><![CDATA[x64]]></category>

		<guid isPermaLink="false">http://www.calvinirwin.net/?p=239</guid>
		<description><![CDATA[I was trying to install install SharePoint 2007 onto Windows 2008 r2 and was getting a strange error referencing KB article 962935. Funny enough this article is not live yet so it left me a little unhappy. Apprarently Microsoft does not support the distributed SP1 installation package of SharePoint for this version of the OS. [...]]]></description>
			<content:encoded><![CDATA[<p>I was trying to install install SharePoint 2007 onto Windows 2008 r2 and was getting a strange error referencing KB article 962935. Funny enough this article is not live yet so it left me a little unhappy. Apprarently Microsoft does not support the distributed SP1 installation package of SharePoint for this version of the OS. Turns out Jei Li posting on his msdn blog detailing how to go about creating a slipstreamed installation for SP2 on this server <a href="http://blogs.msdn.com/sharepoint/archive/2009/10/02/install-sharepoint-server-2007-on-windows-server-2008-r2.aspx">Click here for the article</a>. Basically the steps are (pretty much word for word from Jei Li's blog):</p>
<ul>
<li>Install .Net Framework 3.5 SP1 in the features applet</li>
<li>Copy the installtion media contents to a folder on the computer (c:\install)</li>
<li>Download the<a href="http://www.microsoft.com/downloads/details.aspx?familyid=79BADA82-C13F-44C1-BDC1-D0447337051B&amp;displaylang=en"> WSS x64 SP package </a>and the <a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=b7816d90-5fc6-4347-89b0-a80deb27a082">MOSS 2007 SP2 x64 </a></li>
<li>Delete everything inside <strong>Updates</strong> folder in the install folder you setup.</li>
<li>Open a command prompt,  change directory to the folder you put the downloaded patches, and run the following two commands: 
<ul>
<li>wssv3sp2-kb953338-x64-fullfile-en-us.exe /extract:<strong>[Path to installation bits]</strong>\Updates /quiet</li>
<li>officeserver2007sp2-kb953334-x64-fullfile-en-us.exe /extract:<strong> [Path to installation bits]</strong>\Updates /quiet</li>
</ul>
</li>
<li>Delete the <strong>wsssetup.dll</strong> filein the updates dir. This is a very important step so please don’t miss it.</li>
<li>If you also need the Cumulative Updates to be applied when install SharePoint, download the latest Windows SharePoint Services 3.0 and SharePoint Server 2007 Cumulative Update packages and extract them into <strong>Updates</strong> folder like step 4.</li>
<li>Your slipstream build of SharePoint Server 2007 is done!</li>
<li>Go and install it on your Windows Server 2008 R2 box, after the installation, the site version will show <strong>12.0.0.6421 </strong>or possibly a higher version.</li>
</ul>
<p>Please reference Jei Li's post for furthur instuctions.  I only posted all the steps here because things have a mysterious way of dissappearing or not appearing at all on Microsofts site.</p>
<p>After doing all of this everything seems to be fine...seems to be <img src='http://www.calvinirwin.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
<p>Links</p>
<ul>
<li><a href="http://technet.microsoft.com/en-us/library/cc261890.aspx">http://technet.microsoft.com/en-us/library/cc261890.aspx</a></li>
<li><a href="http://blogs.msdn.com/sharepoint/archive/2009/10/02/install-sharepoint-server-2007-on-windows-server-2008-r2.aspx">http://blogs.msdn.com/sharepoint/archive/2009/10/02/install-sharepoint-server-2007-on-windows-server-2008-r2.aspx</a></li>
<li><a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=b7816d90-5fc6-4347-89b0-a80deb27a082">http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=b7816d90-5fc6-4347-89b0-a80deb27a082</a></li>
<li><a href="http://www.microsoft.com/downloads/details.aspx?familyid=79BADA82-C13F-44C1-BDC1-D0447337051B&amp;displaylang=en">http://www.microsoft.com/downloads/details.aspx?familyid=79BADA82-C13F-44C1-BDC1-D0447337051B&amp;displaylang=en</a></li>
</ul>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/Configuration' rel='tag' target='_self'>Configuration</a>, <a class='technorati-link' href='http://technorati.com/tag/server' rel='tag' target='_self'>server</a>, <a class='technorati-link' href='http://technorati.com/tag/SharePoint' rel='tag' target='_self'>SharePoint</a>, <a class='technorati-link' href='http://technorati.com/tag/Windows' rel='tag' target='_self'>Windows</a>, <a class='technorati-link' href='http://technorati.com/tag/windows+2008+r2' rel='tag' target='_self'>windows 2008 r2</a>, <a class='technorati-link' href='http://technorati.com/tag/x64' rel='tag' target='_self'>x64</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://www.calvinirwin.net/2009/12/01/sharepoint-2007-on-windows-2008-r2-x64/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Variations Failed: An error was encountered performing this operation. You may re-try the operation&#8230;</title>
		<link>http://www.calvinirwin.net/2009/10/30/variations-failed-an-error-was-encountered-performing-this-operation-you-may-re-try-the-operation/</link>
		<comments>http://www.calvinirwin.net/2009/10/30/variations-failed-an-error-was-encountered-performing-this-operation-you-may-re-try-the-operation/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 20:16:27 +0000</pubDate>
		<dc:creator>Calvin</dc:creator>
				<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[moss 2007]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[variations]]></category>

		<guid isPermaLink="false">http://www.calvinirwin.net/?p=225</guid>
		<description><![CDATA[So I got this error the other day when putting together a dev site collection usign varations:
An error was encountered performing this operation. You may re-try the operation, and you may need to clean up the half-created data first before re-trying. If the problem persists, please contact your system administrator
This was actually a fairly easy [...]]]></description>
			<content:encoded><![CDATA[<p>So I got this error the other day when putting together a dev site collection usign varations:</p>
<p><em>An error was encountered performing this operation. You may re-try the operation, and you may need to clean up the half-created data first before re-trying. If the problem persists, please contact your system administrator</em></p>
<p>This was actually a fairly easy fix for me.  I simply had to enable the publishing features in my site.  Which is funny...because they should have been on but I must have overlooked that.  <img src='http://www.calvinirwin.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/Configuration' rel='tag' target='_self'>Configuration</a>, <a class='technorati-link' href='http://technorati.com/tag/error' rel='tag' target='_self'>error</a>, <a class='technorati-link' href='http://technorati.com/tag/moss+2007' rel='tag' target='_self'>moss 2007</a>, <a class='technorati-link' href='http://technorati.com/tag/SharePoint' rel='tag' target='_self'>SharePoint</a>, <a class='technorati-link' href='http://technorati.com/tag/variations' rel='tag' target='_self'>variations</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://www.calvinirwin.net/2009/10/30/variations-failed-an-error-was-encountered-performing-this-operation-you-may-re-try-the-operation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lookup Fields and Content Types</title>
		<link>http://www.calvinirwin.net/2009/09/09/lookup-fields-and-content-types/</link>
		<comments>http://www.calvinirwin.net/2009/09/09/lookup-fields-and-content-types/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 04:43:35 +0000</pubDate>
		<dc:creator>Calvin</dc:creator>
				<category><![CDATA[.Net Framework]]></category>
		<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[content types]]></category>
		<category><![CDATA[lookup fields]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://www.calvinirwin.net/?p=201</guid>
		<description><![CDATA[For the last little bit I have been working on learning how to package up all site infrastructure into a single feature.  All of this is pretty straight forward and I didn't really have any issues.....UNTIL  I tried to get lookup columns working.
Using CAML
I did some reading on the subject and apparently you can do all [...]]]></description>
			<content:encoded><![CDATA[<p>For the last little bit I have been working on learning how to package up all site infrastructure into a single feature.  All of this is pretty straight forward and I didn't really have any issues.....UNTIL  I tried to get lookup columns working.</p>
<h3>Using CAML</h3>
<p>I did some reading on the subject and apparently you can do all of this using CAML alone.  I came across a<a href="http://blogs.msdn.com/joshuag/archive/2008/03/14/add-sharepoint-lookup-column-declaratively-through-caml-xml.aspx"> post from Josh Gaffery</a> supporting this claim, but I simply could not get this working...so i gave up after spinning my wheels on it for longer than I wanted to.  Josh's approach is to use the list URL as opposed to the GUID that links the column to the source list and he has put up an update explaining it further.  Nonetheless....didn't work for me.</p>
<h3>Using Feature Receiver</h3>
<p>I knew that at this point I would have to take the feature reciever approach and modify the fields in place or create them.  I found two sources that both take different approachs to this problem.</p>
<ul>
<li>Chris O'Brien has put together the a project on <a href="http://www.codeplex.com/SP2007LookupFields">CodePlex </a>that will create the lookup columns at activation time.  This actully sounds like a pretty good approach but unfortunately it didn't work for me.  I dont know if there is something wrong with my environment but I encountered a few errors doing this...things like the fields not rendering on the page layouts and getting the "<strong>The local device name is already in use. (Exception from HRESULT: 0x80070055)</strong>" error.</li>
<li>Waldek Mastykarz has a great post on creating the columns via code <a href="http://blog.mastykarz.nl/sharepoint-programmatically-provisioning-lookup-fields/">here</a>.</li>
</ul>
<p>Basically I took a hybrid approach to doing this by mixing the two approaches mentioned above.  I created a custom XML file that I deploy into the layouts directory and then use a feature reciever to read the xml content and create lookup columns based on this.  I also added a deactiving event to remove the fields when the feature is deactivated.  Heres the feature reciever code:</p>
<pre class="csharp"><span style="color: #0600FF;">public</span> <span style="color: #0600FF;">override</span> <span style="color: #0600FF;">void</span> FeatureActivated<span style="color: #000000;">&#40;</span>SPFeatureReceiverProperties properties<span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            <span style="color: #0600FF;">using</span> <span style="color: #000000;">&#40;</span>SPSite site = properties.<span style="color: #0000FF;">Feature</span>.<span style="color: #0000FF;">Parent</span> <span style="color: #0600FF;">as</span> SPSite<span style="color: #000000;">&#41;</span>
            <span style="color: #000000;">&#123;</span>
                <span style="color: #FF0000;">string</span> contentTypes = <span style="color: #0600FF;">null</span>;
                <span style="color: #FF0000;">string</span> listName = <span style="color: #0600FF;">null</span>;
                <span style="color: #FF0000;">string</span> fieldName = <span style="color: #0600FF;">null</span>;
                <span style="color: #FF0000;">string</span> groupName = <span style="color: #0600FF;">null</span>;
                <span style="color: #FF0000;">string</span> staticName = <span style="color: #0600FF;">null</span>;
                <span style="color: #FF0000;">string</span> lookupFieldName = <span style="color: #808080;">&quot;Title&quot;</span>;
                <span style="color: #FF0000;">bool</span> mult = <span style="color: #0600FF;">false</span>;
                <span style="color: #FF0000;">bool</span> required = <span style="color: #0600FF;">false</span>;
                <span style="color: #FF0000;">string</span> filePath = properties.<span style="color: #0000FF;">Feature</span>.<span style="color: #0000FF;">Properties</span><span style="color: #000000;">&#91;</span>
                   <span style="color: #808080;">&quot;ColumnDefinitionPath&quot;</span><span style="color: #000000;">&#93;</span>.<span style="color: #0000FF;">Value</span>;
&nbsp;
                XmlTextReader xReader = <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XmlTextReader<span style="color: #000000;">&#40;</span>
                  HttpContext.<span style="color: #0000FF;">Current</span>.<span style="color: #0000FF;">Server</span>.<span style="color: #0000FF;">MapPath</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">@"~\_layouts\&quot;</span> + filePath<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;
                <span style="color: #0600FF;">while</span> <span style="color: #000000;">&#40;</span>xReader.<span style="color: #0000FF;">Read</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
                <span style="color: #000000;">&#123;</span>
                    <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>xReader.<span style="color: #0000FF;">LocalName</span> == <span style="color: #808080;">&quot;Field&quot;</span><span style="color: #000000;">&#41;</span>
                    <span style="color: #000000;">&#123;</span>
                        <span style="color: #008080;">#region Get values from attributes</span>
                        <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>xReader.<span style="color: #0000FF;">MoveToAttribute</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;List&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
                        <span style="color: #000000;">&#123;</span>
                            listName = xReader.<span style="color: #0000FF;">Value</span>;
                            xReader.<span style="color: #0000FF;">MoveToElement</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
                        <span style="color: #000000;">&#125;</span>
                        <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>xReader.<span style="color: #0000FF;">MoveToAttribute</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;Name&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
                        <span style="color: #000000;">&#123;</span>
                            fieldName = xReader.<span style="color: #0000FF;">Value</span>;
                            xReader.<span style="color: #0000FF;">MoveToElement</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
                        <span style="color: #000000;">&#125;</span>
                        <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>xReader.<span style="color: #0000FF;">MoveToAttribute</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;StaticName&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
                        <span style="color: #000000;">&#123;</span>
                            staticName = xReader.<span style="color: #0000FF;">Value</span>;
                            xReader.<span style="color: #0000FF;">MoveToElement</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
                        <span style="color: #000000;">&#125;</span>
                        <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>xReader.<span style="color: #0000FF;">MoveToAttribute</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;Group&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
                        <span style="color: #000000;">&#123;</span>
                            groupName = xReader.<span style="color: #0000FF;">Value</span>;
                            xReader.<span style="color: #0000FF;">MoveToElement</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
                        <span style="color: #000000;">&#125;</span>
                        <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>xReader.<span style="color: #0000FF;">MoveToAttribute</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;LookUpField&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
                        <span style="color: #000000;">&#123;</span>
                            lookupFieldName = xReader.<span style="color: #0000FF;">Value</span>;
                            xReader.<span style="color: #0000FF;">MoveToElement</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
                        <span style="color: #000000;">&#125;</span>
                        <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>xReader.<span style="color: #0000FF;">MoveToAttribute</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;ExistInContentTypes&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
                        <span style="color: #000000;">&#123;</span>
                            contentTypes = xReader.<span style="color: #0000FF;">Value</span>;
                            xReader.<span style="color: #0000FF;">MoveToElement</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
                        <span style="color: #000000;">&#125;</span>
                        <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>xReader.<span style="color: #0000FF;">MoveToAttribute</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;Mult&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
                        <span style="color: #000000;">&#123;</span>
                            <span style="color: #FF0000;">bool</span>.<span style="color: #0000FF;">TryParse</span><span style="color: #000000;">&#40;</span>xReader.<span style="color: #0000FF;">Value</span>, <span style="color: #0600FF;">out</span> mult<span style="color: #000000;">&#41;</span>;
                            xReader.<span style="color: #0000FF;">MoveToElement</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
                        <span style="color: #000000;">&#125;</span>
                        <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>xReader.<span style="color: #0000FF;">MoveToAttribute</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;Required&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
                        <span style="color: #000000;">&#123;</span>
                            <span style="color: #FF0000;">bool</span>.<span style="color: #0000FF;">TryParse</span><span style="color: #000000;">&#40;</span>xReader.<span style="color: #0000FF;">Value</span>, <span style="color: #0600FF;">out</span> required<span style="color: #000000;">&#41;</span>;
                            xReader.<span style="color: #0000FF;">MoveToElement</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
                        <span style="color: #000000;">&#125;</span>
&nbsp;
                        <span style="color: #008080;">#endregion</span>
&nbsp;
                        SPFieldLookup lookup = CreateLookupField<span style="color: #000000;">&#40;</span>
                          fieldName, groupName, required, mult, site.<span style="color: #0000FF;">RootWeb</span>,
                          site.<span style="color: #0000FF;">RootWeb</span>.<span style="color: #0000FF;">Lists</span><span style="color: #000000;">&#91;</span>listName<span style="color: #000000;">&#93;</span>, lookupFieldName, staticName<span style="color: #000000;">&#41;</span>;
                        <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>contentTypes != <span style="color: #0600FF;">null</span><span style="color: #000000;">&#41;</span>
                            <span style="color: #0600FF;">foreach</span> <span style="color: #000000;">&#40;</span><span style="color: #FF0000;">string</span> s <span style="color: #0600FF;">in</span> contentTypes.<span style="color: #0000FF;">Split</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">','</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
                            <span style="color: #000000;">&#123;</span>
                                LinkFieldToContentType<span style="color: #000000;">&#40;</span>s.<span style="color: #0000FF;">Trim</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span>SPField<span style="color: #000000;">&#41;</span>lookup<span style="color: #000000;">&#41;</span>;
                            <span style="color: #000000;">&#125;</span>
                    <span style="color: #000000;">&#125;</span>
                <span style="color: #000000;">&#125;</span>
&nbsp;
                xReader.<span style="color: #0000FF;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
&nbsp;
            <span style="color: #000000;">&#125;</span>
        <span style="color: #000000;">&#125;</span>
&nbsp;
        <span style="color: #0600FF;">public</span> <span style="color: #0600FF;">static</span> SPFieldLookup CreateLookupField<span style="color: #000000;">&#40;</span>
          <span style="color: #FF0000;">string</span> fieldName, <span style="color: #FF0000;">string</span> group, <span style="color: #FF0000;">bool</span> required, <span style="color: #FF0000;">bool</span> allowMultipleValues,
          SPWeb w, SPList lookupList, <span style="color: #FF0000;">string</span> lookupField, <span style="color: #FF0000;">string</span> staticName<span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            w.<span style="color: #0000FF;">Fields</span>.<span style="color: #0000FF;">AddLookup</span><span style="color: #000000;">&#40;</span>fieldName, lookupList.<span style="color: #0000FF;">ID</span>,
               lookupList.<span style="color: #0000FF;">ParentWeb</span>.<span style="color: #0000FF;">ID</span>, required<span style="color: #000000;">&#41;</span>;
            SPFieldLookup lookup = <span style="color: #000000;">&#40;</span>SPFieldLookup<span style="color: #000000;">&#41;</span>w.<span style="color: #0000FF;">Fields</span><span style="color: #000000;">&#91;</span>fieldName<span style="color: #000000;">&#93;</span>;
            lookup.<span style="color: #0000FF;">AllowMultipleValues</span> = allowMultipleValues;
            lookup.<span style="color: #0000FF;">LookupField</span> = lookupField;
            lookup.<span style="color: #0000FF;">StaticName</span> = staticName;
            lookup.<span style="color: #0000FF;">Group</span> = group;
            lookup.<span style="color: #0000FF;">Update</span><span style="color: #000000;">&#40;</span><span style="color: #0600FF;">true</span><span style="color: #000000;">&#41;</span>;
            <span style="color: #0600FF;">return</span> lookup;
        <span style="color: #000000;">&#125;</span>
&nbsp;
        <span style="color: #0600FF;">public</span> <span style="color: #0600FF;">static</span> <span style="color: #0600FF;">void</span> LinkFieldToContentType<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">string</span> contentType, SPField field<span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            <span style="color: #0600FF;">using</span> <span style="color: #000000;">&#40;</span>SPSite site = SPContext.<span style="color: #0000FF;">Current</span>.<span style="color: #0000FF;">Web</span>.<span style="color: #0000FF;">Site</span> <span style="color: #0600FF;">as</span> SPSite<span style="color: #000000;">&#41;</span>
            <span style="color: #000000;">&#123;</span>
                SPContentType ct = site.<span style="color: #0000FF;">RootWeb</span>.<span style="color: #0000FF;">ContentTypes</span><span style="color: #000000;">&#91;</span>contentType<span style="color: #000000;">&#93;</span>;
                ct.<span style="color: #0000FF;">FieldLinks</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> SPFieldLink<span style="color: #000000;">&#40;</span>field<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;
                ct.<span style="color: #0000FF;">Update</span><span style="color: #000000;">&#40;</span><span style="color: #0600FF;">true</span><span style="color: #000000;">&#41;</span>; <span style="color: #008080; font-style: italic;">// will update children</span>
            <span style="color: #000000;">&#125;</span>
        <span style="color: #000000;">&#125;</span></pre>
<p>As you can read from the above code the xml file would need to have a node like below for each lookup column:</p>
<pre class="xml">&nbsp;
<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;Field</span>
         <span style="color: #000066;">Type</span>=<span style="color: #ff0000;">&quot;Lookup&quot;</span>
         <span style="color: #000066;">List</span>=<span style="color: #ff0000;">&quot;Access Type&quot;</span>
         <span style="color: #000066;">Name</span>=<span style="color: #ff0000;">&quot;AccessTypeColumn&quot;</span>
         <span style="color: #000066;">StaticName</span>=<span style="color: #ff0000;">&quot;Access_x0020_Type&quot;</span>
         <span style="color: #000066;">Group</span>=<span style="color: #ff0000;">&quot;Infrastructure&quot;</span>
         <span style="color: #000066;">ExistInContentTypes</span>=<span style="color: #ff0000;">&quot;THIS IS A COMMA DELIMITED LIST OF CONTENT NAMES&quot;</span>
         <span style="color: #000066;">LookUpField</span>=<span style="color: #ff0000;">&quot;Title&quot;</span>
         <span style="color: #000066;">Mult</span>=<span style="color: #ff0000;">&quot;TRUE&quot;</span>
         <span style="color: #000066;">Required</span>=<span style="color: #ff0000;">&quot;FALSE&quot;</span>
        <span style="font-weight: bold; color: black;">/&gt;</span></span>
&nbsp;</pre>
<h3>The Final Project</h3>
<p>So here are all the pieces of my infrastructure project. Notice the placement of the lookupfields xml file...this is because the layouts directory is setup as a virtual directory for every sharepoint site and we can read files from there without a permissions problem.</p>
<table>
<tr>
<td><em>12/TEMPLATES/FEATURES/myfeature/lists.xml</em></td>
<td>this contains the source lists for the lookup fields</td>
</tr>
<tr>
<td><em>12/TEMPLATES/FEATURES/myfeature/contenttypes.xml</em></td>
<td>this contains the content type definitions MINUS the lookup fields</td>
</tr>
<tr>
<td><em>12/TEMPLATES/FEATURES/myfeature/sitecolumns.xml</em></td>
<td>this contains all the other fields included in the content types</td>
</tr>
<tr>
<td><em>12/TEMPLATES/FEATURES/myfeature/feature.xml</em></td>
<td>the feature def</td>
</tr>
<tr>
<td><em>12/TEMPLATES/LAYOUTS/myfeature/lookupfields.xml</em></td>
<td>this contains all the lookup fields that need to be provisioned</td>
</tr>
</table>
<p>Hopefully this helps anyone who's been having problems getting this going.  And a big thanks to Waldek, Chris and Josh for their posts.</p>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/Configuration' rel='tag' target='_self'>Configuration</a>, <a class='technorati-link' href='http://technorati.com/tag/content+types' rel='tag' target='_self'>content types</a>, <a class='technorati-link' href='http://technorati.com/tag/Development' rel='tag' target='_self'>Development</a>, <a class='technorati-link' href='http://technorati.com/tag/lookup+fields' rel='tag' target='_self'>lookup fields</a>, <a class='technorati-link' href='http://technorati.com/tag/SharePoint' rel='tag' target='_self'>SharePoint</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://www.calvinirwin.net/2009/09/09/lookup-fields-and-content-types/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GACUtil missing&#8230;Windows 2008/Visual Studio 2008 development machine</title>
		<link>http://www.calvinirwin.net/2009/08/24/gacutil-missing-windows-2008visual-studio-2008-development-machine/</link>
		<comments>http://www.calvinirwin.net/2009/08/24/gacutil-missing-windows-2008visual-studio-2008-development-machine/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 17:26:44 +0000</pubDate>
		<dc:creator>Calvin</dc:creator>
				<category><![CDATA[.Net Framework]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Configuration]]></category>
		<category><![CDATA[gac]]></category>
		<category><![CDATA[gacutil]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://www.calvinirwin.net/?p=188</guid>
		<description><![CDATA[Great post here with a fix/workaround.  Essentially when you go to look in the windows .net framework directory that program is not there.  In order to run this utility program you will need to use the Visual Studio command prompt that is in the Programs/Visual Studio menu.



Technorati Tags: Configuration, gac, gacutil, visual studio, [...]]]></description>
			<content:encoded><![CDATA[<p>Great post <a href="http://weblogs.asp.net/wenching/archive/2008/05/22/gacutil-missing-in-windows-server-2008-visual-studio-2008-installation.aspx">here</a> with a fix/workaround.  Essentially when you go to look in the windows .net framework directory that program is not there.  In order to run this utility program you will need to use the Visual Studio command prompt that is in the Programs/Visual Studio menu.</p>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/Configuration' rel='tag' target='_self'>Configuration</a>, <a class='technorati-link' href='http://technorati.com/tag/gac' rel='tag' target='_self'>gac</a>, <a class='technorati-link' href='http://technorati.com/tag/gacutil' rel='tag' target='_self'>gacutil</a>, <a class='technorati-link' href='http://technorati.com/tag/visual+studio' rel='tag' target='_self'>visual studio</a>, <a class='technorati-link' href='http://technorati.com/tag/Windows' rel='tag' target='_self'>Windows</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://www.calvinirwin.net/2009/08/24/gacutil-missing-windows-2008visual-studio-2008-development-machine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Server Shrink Logs and Custom Backup Script</title>
		<link>http://www.calvinirwin.net/2009/08/24/sql-server-shrink-logs-and-custom-backup-script/</link>
		<comments>http://www.calvinirwin.net/2009/08/24/sql-server-shrink-logs-and-custom-backup-script/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 17:07:24 +0000</pubDate>
		<dc:creator>Calvin</dc:creator>
				<category><![CDATA[Configuration]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[DBCC Shinkfile]]></category>
		<category><![CDATA[logfile]]></category>
		<category><![CDATA[shink]]></category>
		<category><![CDATA[sql server 2005]]></category>

		<guid isPermaLink="false">http://www.calvinirwin.net/?p=165</guid>
		<description><![CDATA[A little while ago I was having a problem with MS SQL Server 2005, It was ballooning my log files and not recovering space after a backup and I posted a fix for this here.  The only issue I had left at that point was rolling it into a complete solution that can be run [...]]]></description>
			<content:encoded><![CDATA[<p>A little while ago I was having a problem with MS SQL Server 2005, It was ballooning my log files and not recovering space after a backup and I posted a fix for this <a href="http://www.calvinirwin.net/2009/07/26/operation-aborted-exception-from-hresult-0x80004004-e_abort/">here</a>.  The only issue I had left at that point was rolling it into a complete solution that can be run on the server and does not require being run manually.  The following script I put together can run as a Job (or as a SQL task in a Maintenance plan) and will backup all of the databases on your server with the exception of the system db's (master, msdb, temp, model) .  There are also sections in the script to add your own exclusions in case you want to remove long running backups or databases that do not require this sort of treatment, search for <strong>DB_2EXCLUDE. </strong></p>
<p>NOTE: The word press plug-in for code formatting changes my greater than and less than sign into &amp;gt; and &amp;lt; respectivly so you will need to change this back if copying the code....until i figure it out anyway.</p>
<pre class="oracle8"><span style="color: #993333; font-weight: bold; text-transform: uppercase;">DECLARE</span> @dbExt <span style="color: #993333; font-weight: bold; text-transform: uppercase;">VARCHAR</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">4</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">DECLARE</span> @logExt <span style="color: #993333; font-weight: bold; text-transform: uppercase;">VARCHAR</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">4</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">DECLARE</span> @backupLocation <span style="color: #993333; font-weight: bold; text-transform: uppercase;">VARCHAR</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">100</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">DECLARE</span> @<span style="color: #993333; font-weight: bold; text-transform: uppercase;">DATE</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">VARCHAR</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">50</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">DECLARE</span> @tempFile <span style="color: #993333; font-weight: bold; text-transform: uppercase;">VARCHAR</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">4000</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">DECLARE</span> @tempPath <span style="color: #993333; font-weight: bold; text-transform: uppercase;">VARCHAR</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">4000</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">DECLARE</span> @<span style="color: #993333; font-weight: bold; text-transform: uppercase;">LOG</span> nvarchar<span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold; text-transform: uppercase;">MAX</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">DECLARE</span> @lasterror int
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">DECLARE</span> @mailprofile <span style="color: #993333; font-weight: bold; text-transform: uppercase;">VARCHAR</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">100</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">DECLARE</span> @mail_rec <span style="color: #993333; font-weight: bold; text-transform: uppercase;">VARCHAR</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1000</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #808080; font-style: italic;">-- cursor vars</span>
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">DECLARE</span> @dbname <span style="color: #993333; font-weight: bold; text-transform: uppercase;">VARCHAR</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">100</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">DECLARE</span> @dbid int
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">DECLARE</span> @recModel int
&nbsp;
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> @dbExt = N<span style="color: #ff0000;">'.bak'</span>
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> @logExt = N<span style="color: #ff0000;">'.trn'</span>
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> @backuplocation = N<span style="color: #ff0000;">'F:<span style="color: #000099; font-weight: bold;">\S</span>QL Backup'</span>
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> @<span style="color: #993333; font-weight: bold; text-transform: uppercase;">DATE</span> = <span style="color: #993333; font-weight: bold; text-transform: uppercase;">CONVERT</span><span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold; text-transform: uppercase;">VARCHAR</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">8</span><span style="color: #66cc66;">&#41;</span>, GETDATE<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>, <span style="color: #cc66cc;">112</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> @mailprofile = <span style="color: #ff0000;">'default'</span>
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> @mail_rec = <span style="color: #ff0000;">'myemailAddress@mycompany.com'</span>
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> @<span style="color: #993333; font-weight: bold; text-transform: uppercase;">LOG</span> = <span style="color: #ff0000;">'SQL Server Backup'</span> + CAST<span style="color: #66cc66;">&#40;</span>GETDATE<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">AS</span> nvarchar<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">100</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">-- cycle the log</span>
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">EXEC</span> sp_cycle_errorlog
&nbsp;
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">CREATE</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">TABLE</span> #dbInfo
<span style="color: #66cc66;">&#40;</span>
database_id int <span style="color: #993333; font-weight: bold; text-transform: uppercase;">NOT</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">NULL</span>,
dbName nvarchar<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">100</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">NOT</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">NULL</span>,
recoveryModel int
<span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> TOP <span style="color: #cc66cc;">1</span> @dbid = database_id <span style="color: #993333; font-weight: bold; text-transform: uppercase;">FROM</span> sys.databases <span style="color: #993333; font-weight: bold; text-transform: uppercase;">WHERE</span> <span style="color: #66cc66;">&#91;</span>name<span style="color: #66cc66;">&#93;</span>
   <span style="color: #993333; font-weight: bold; text-transform: uppercase;">NOT</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">LIKE</span> <span style="color: #ff0000;">'DB_2EXCLUDE%'</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">AND</span> database_id &amp;gt; <span style="color: #cc66cc;">4</span>  <span style="color: #993333; font-weight: bold; text-transform: uppercase;">ORDER</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">BY</span> database_id <span style="color: #993333; font-weight: bold; text-transform: uppercase;">ASC</span>;
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> @dbname = <span style="color: #66cc66;">&#91;</span>name<span style="color: #66cc66;">&#93;</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">FROM</span> sys.databases <span style="color: #993333; font-weight: bold; text-transform: uppercase;">WHERE</span> database_id = @dbid;
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> @recModel = recovery_model <span style="color: #993333; font-weight: bold; text-transform: uppercase;">FROM</span> sys.databases <span style="color: #993333; font-weight: bold; text-transform: uppercase;">WHERE</span> database_id = @dbid;
&nbsp;
<span style="color: #808080; font-style: italic;">-- begin backup process</span>
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">WHILE</span> @dbid &amp;gt; <span style="color: #cc66cc;">0</span>
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">BEGIN</span>
&nbsp;
   <span style="color: #993333; font-weight: bold; text-transform: uppercase;">INSERT</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">INTO</span> #dbInfo
      <span style="color: #66cc66;">&#40;</span>database_id, dbName, recoveryModel<span style="color: #66cc66;">&#41;</span>
      <span style="color: #993333; font-weight: bold; text-transform: uppercase;">VALUES</span>
      <span style="color: #66cc66;">&#40;</span>@dbid, @dbname, @recModel<span style="color: #66cc66;">&#41;</span>;
&nbsp;
   <span style="color: #993333; font-weight: bold; text-transform: uppercase;">IF</span> @recModel = <span style="color: #cc66cc;">1</span>
   <span style="color: #993333; font-weight: bold; text-transform: uppercase;">BEGIN</span>
&nbsp;
      <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> @tempFile = @backuplocation + N<span style="color: #ff0000;">'<span style="color: #000099; font-weight: bold;">\t</span>ransactionlog_backup_'</span>
      + @dbname + @<span style="color: #993333; font-weight: bold; text-transform: uppercase;">DATE</span> + @logExt
      <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> @<span style="color: #993333; font-weight: bold; text-transform: uppercase;">LOG</span> = @<span style="color: #993333; font-weight: bold; text-transform: uppercase;">LOG</span> + <span style="color: #ff0000;">'
      Backing up ['</span> + @dbname + <span style="color: #ff0000;">'] transaction log file to: '</span>  + @tempFile
      PRINT <span style="color: #ff0000;">'Backing up ['</span> + @dbname + <span style="color: #ff0000;">'] transaction log file to: '</span>  + @tempFile
&nbsp;
      CHECKPOINT
      BACKUP <span style="color: #993333; font-weight: bold; text-transform: uppercase;">LOG</span> @dbname <span style="color: #993333; font-weight: bold; text-transform: uppercase;">TO</span> DISK = @tempFile <span style="color: #993333; font-weight: bold; text-transform: uppercase;">WITH</span> NOFORMAT, NOINIT,
        NAME = N<span style="color: #ff0000;">'Transaction Log  Backup'</span>, SKIP, NOREWIND, NOUNLOAD,  STATS = <span style="color: #cc66cc;">10</span>
      <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> @lasterror = @@ERROR
      <span style="color: #993333; font-weight: bold; text-transform: uppercase;">IF</span> @lasterror &amp;lt;&amp;gt; <span style="color: #cc66cc;">0</span>
      <span style="color: #993333; font-weight: bold; text-transform: uppercase;">BEGIN</span>
       <span style="color: #808080; font-style: italic;">-- log the error</span>
       <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> @<span style="color: #993333; font-weight: bold; text-transform: uppercase;">LOG</span> = @<span style="color: #993333; font-weight: bold; text-transform: uppercase;">LOG</span> + <span style="color: #ff0000;">'-ERROR: Backing up database log for ['</span> +
          @dbname + <span style="color: #ff0000;">'] with error number '</span> +
          CAST<span style="color: #66cc66;">&#40;</span>@lasterror <span style="color: #993333; font-weight: bold; text-transform: uppercase;">AS</span> nvarchar<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">25</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
       PRINT <span style="color: #ff0000;">'ERROR: Backing up database log for ['</span> + @dbname + <span style="color: #ff0000;">'] with error number '</span> +
          CAST<span style="color: #66cc66;">&#40;</span>@lasterror <span style="color: #993333; font-weight: bold; text-transform: uppercase;">AS</span> nvarchar<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">25</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
      <span style="color: #993333; font-weight: bold; text-transform: uppercase;">END</span>
   <span style="color: #993333; font-weight: bold; text-transform: uppercase;">END</span>
&nbsp;
   <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> @tempFile = @backuplocation + N<span style="color: #ff0000;">'<span style="color: #000099; font-weight: bold;">\b</span>ackup_'</span> + @dbname + @<span style="color: #993333; font-weight: bold; text-transform: uppercase;">DATE</span> + @dbExt
   <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> @<span style="color: #993333; font-weight: bold; text-transform: uppercase;">LOG</span> = @<span style="color: #993333; font-weight: bold; text-transform: uppercase;">LOG</span> + <span style="color: #ff0000;">'Backing up ['</span> + @dbname + <span style="color: #ff0000;">'] database file to: '</span>  + @tempFile
   PRINT <span style="color: #ff0000;">'Backing up ['</span> + @dbname + <span style="color: #ff0000;">'] database file to: '</span>  + @tempFile
&nbsp;
   BACKUP <span style="color: #993333; font-weight: bold; text-transform: uppercase;">DATABASE</span> @dbName <span style="color: #993333; font-weight: bold; text-transform: uppercase;">TO</span>  DISK =  @tempFile <span style="color: #993333; font-weight: bold; text-transform: uppercase;">WITH</span> NOFORMAT, NOINIT,
      NAME = N<span style="color: #ff0000;">'Full Database Backup'</span>, SKIP, NOREWIND, NOUNLOAD,  STATS = <span style="color: #cc66cc;">10</span>
&nbsp;
   <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> @lasterror = @@ERROR
   <span style="color: #993333; font-weight: bold; text-transform: uppercase;">IF</span> @lasterror &amp;lt;&amp;gt; <span style="color: #cc66cc;">0</span>
   <span style="color: #993333; font-weight: bold; text-transform: uppercase;">BEGIN</span>
      <span style="color: #808080; font-style: italic;">-- log the error</span>
      <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> @<span style="color: #993333; font-weight: bold; text-transform: uppercase;">LOG</span> = @<span style="color: #993333; font-weight: bold; text-transform: uppercase;">LOG</span> + <span style="color: #ff0000;">'-ERROR: Backing up database: ['</span>
         + @dbname + <span style="color: #ff0000;">'] with error number '</span> +
         CAST<span style="color: #66cc66;">&#40;</span>@lasterror <span style="color: #993333; font-weight: bold; text-transform: uppercase;">AS</span> nvarchar<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">25</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
      PRINT <span style="color: #ff0000;">'ERROR: Backing up database: ['</span> + @dbname + <span style="color: #ff0000;">'] with error number '</span> +
         CAST<span style="color: #66cc66;">&#40;</span>@lasterror <span style="color: #993333; font-weight: bold; text-transform: uppercase;">AS</span> nvarchar<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">25</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
   <span style="color: #993333; font-weight: bold; text-transform: uppercase;">END</span>
&nbsp;
   <span style="color: #993333; font-weight: bold; text-transform: uppercase;">DECLARE</span> @<span style="color: #993333; font-weight: bold; text-transform: uppercase;">SQL</span> nvarchar<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">4000</span><span style="color: #66cc66;">&#41;</span>
   <span style="color: #993333; font-weight: bold; text-transform: uppercase;">DECLARE</span> @logName nvarchar<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">100</span><span style="color: #66cc66;">&#41;</span>
   <span style="color: #993333; font-weight: bold; text-transform: uppercase;">DECLARE</span> @param nvarchar<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">4000</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
   <span style="color: #808080; font-style: italic;">-- get the transaction log name</span>
   <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> @<span style="color: #993333; font-weight: bold; text-transform: uppercase;">LOG</span> = @<span style="color: #993333; font-weight: bold; text-transform: uppercase;">LOG</span> + <span style="color: #ff0000;">'
   Getting Log File Name ['</span> + @dbname + <span style="color: #ff0000;">']'</span>
   PRINT <span style="color: #ff0000;">'Getting Log File Name ['</span> + @dbname + <span style="color: #ff0000;">']'</span>
&nbsp;
   <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> @<span style="color: #993333; font-weight: bold; text-transform: uppercase;">SQL</span> = <span style="color: #ff0000;">'SELECT TOP 1 @out = name FROM '</span> + @dbname
      + <span style="color: #ff0000;">'.sys.sysfiles where FileName like '</span><span style="color: #ff0000;">'%.ldf'</span><span style="color: #ff0000;">' '</span>
   <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> @param = N<span style="color: #ff0000;">'@out varchar(100) OUTPUT'</span>
   <span style="color: #993333; font-weight: bold; text-transform: uppercase;">EXEC</span> sp_executesql @<span style="color: #993333; font-weight: bold; text-transform: uppercase;">SQL</span>, @param, @<span style="color: #993333; font-weight: bold; text-transform: uppercase;">OUT</span> = @logName OUTPUT
&nbsp;
   <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> @<span style="color: #993333; font-weight: bold; text-transform: uppercase;">LOG</span> = @<span style="color: #993333; font-weight: bold; text-transform: uppercase;">LOG</span> + <span style="color: #ff0000;">'Log File Name Is '</span> + @logName
   PRINT <span style="color: #ff0000;">'Log File Name Is '</span> + @logName
&nbsp;
   <span style="color: #808080; font-style: italic;">-- shrink the transaction log file</span>
   <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> @<span style="color: #993333; font-weight: bold; text-transform: uppercase;">SQL</span> = <span style="color: #ff0000;">'USE '</span> + @dbname
   <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> @<span style="color: #993333; font-weight: bold; text-transform: uppercase;">SQL</span> = @<span style="color: #993333; font-weight: bold; text-transform: uppercase;">SQL</span> + <span style="color: #ff0000;">' DBCC SHRINKFILE (@dblogname, 0, TRUNCATEONLY);'</span>
   <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> @<span style="color: #993333; font-weight: bold; text-transform: uppercase;">SQL</span> = @<span style="color: #993333; font-weight: bold; text-transform: uppercase;">SQL</span> + <span style="color: #ff0000;">' SELECT @lasterr = @@ERROR;'</span>
   <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> @param = <span style="color: #ff0000;">'@dblogname nvarchar(500), @lasterr int'</span>
   <span style="color: #808080; font-style: italic;">--SELECT @tempPath = @dbname+'_log'</span>
&nbsp;
   <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> @<span style="color: #993333; font-weight: bold; text-transform: uppercase;">LOG</span> = @<span style="color: #993333; font-weight: bold; text-transform: uppercase;">LOG</span> + <span style="color: #ff0000;">'
   Performing Log File Shrink ['</span> + @dbname + <span style="color: #ff0000;">']'</span>
   PRINT <span style="color: #ff0000;">'Performing Log File Shrink ['</span> + @dbname + <span style="color: #ff0000;">']'</span>
&nbsp;
   <span style="color: #993333; font-weight: bold; text-transform: uppercase;">EXEC</span> sp_executesql @<span style="color: #993333; font-weight: bold; text-transform: uppercase;">SQL</span>, @param, @dblogname = @logName, @lasterr = @lasterror
   <span style="color: #808080; font-style: italic;">-- error obtained in the stored procedure</span>
   <span style="color: #993333; font-weight: bold; text-transform: uppercase;">IF</span> @lasterror &amp;lt;&amp;gt; <span style="color: #cc66cc;">0</span>
   <span style="color: #993333; font-weight: bold; text-transform: uppercase;">BEGIN</span>
      <span style="color: #808080; font-style: italic;">-- log the error</span>
      <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> @<span style="color: #993333; font-weight: bold; text-transform: uppercase;">LOG</span> = @<span style="color: #993333; font-weight: bold; text-transform: uppercase;">LOG</span> + <span style="color: #ff0000;">'-ERROR: Shrinking the database log file: ['</span>
         + @dbname + <span style="color: #ff0000;">'] with error number '</span> +
         CAST<span style="color: #66cc66;">&#40;</span>@lasterror <span style="color: #993333; font-weight: bold; text-transform: uppercase;">AS</span> nvarchar<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">25</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
      PRINT <span style="color: #ff0000;">'ERROR: Shrinking the database log file: ['</span>
         + @dbname + <span style="color: #ff0000;">'] with error number '</span> +
         CAST<span style="color: #66cc66;">&#40;</span>@lasterror <span style="color: #993333; font-weight: bold; text-transform: uppercase;">AS</span> nvarchar<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">25</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
   <span style="color: #993333; font-weight: bold; text-transform: uppercase;">END</span>
&nbsp;
   <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> @<span style="color: #993333; font-weight: bold; text-transform: uppercase;">LOG</span> = @<span style="color: #993333; font-weight: bold; text-transform: uppercase;">LOG</span> + <span style="color: #ff0000;">'Log File Shrink Completed'</span>
&nbsp;
   <span style="color: #808080; font-style: italic;">-- get a new record</span>
   <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> @dbid = <span style="color: #cc66cc;">0</span>;
   <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> TOP <span style="color: #cc66cc;">1</span> @dbid =  database_id <span style="color: #993333; font-weight: bold; text-transform: uppercase;">FROM</span> sys.databases
      <span style="color: #993333; font-weight: bold; text-transform: uppercase;">WHERE</span> <span style="color: #66cc66;">&#91;</span>name<span style="color: #66cc66;">&#93;</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">NOT</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">LIKE</span> <span style="color: #ff0000;">'DB_2EXCLUDE%'</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">AND</span> database_id &amp;gt; <span style="color: #cc66cc;">4</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">AND</span>
      database_id <span style="color: #993333; font-weight: bold; text-transform: uppercase;">NOT</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">IN</span> <span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">DISTINCT</span> x.database_id <span style="color: #993333; font-weight: bold; text-transform: uppercase;">FROM</span> #dbInfo x<span style="color: #66cc66;">&#41;</span>;
   <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> @dbname = <span style="color: #66cc66;">&#91;</span>name<span style="color: #66cc66;">&#93;</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">FROM</span> sys.databases <span style="color: #993333; font-weight: bold; text-transform: uppercase;">WHERE</span> database_id = @dbid;
   <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> @recModel = recovery_model <span style="color: #993333; font-weight: bold; text-transform: uppercase;">FROM</span> sys.databases <span style="color: #993333; font-weight: bold; text-transform: uppercase;">WHERE</span> database_id = @dbid;
&nbsp;
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">END</span>
&nbsp;
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">DROP</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">TABLE</span> #dbInfo
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">EXEC</span> msdb.dbo.sp_send_dbmail @profile_name=<span style="color: #ff0000;">'default'</span>,
   @recipients=@mail_rec,@Body_Format = <span style="color: #ff0000;">'HTML'</span>, @<span style="color: #993333; font-weight: bold; text-transform: uppercase;">BODY</span>=@<span style="color: #993333; font-weight: bold; text-transform: uppercase;">LOG</span>;
PRINT @<span style="color: #993333; font-weight: bold; text-transform: uppercase;">LOG</span></pre>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/Configuration' rel='tag' target='_self'>Configuration</a>, <a class='technorati-link' href='http://technorati.com/tag/DBCC+Shinkfile' rel='tag' target='_self'>DBCC Shinkfile</a>, <a class='technorati-link' href='http://technorati.com/tag/logfile' rel='tag' target='_self'>logfile</a>, <a class='technorati-link' href='http://technorati.com/tag/shink' rel='tag' target='_self'>shink</a>, <a class='technorati-link' href='http://technorati.com/tag/SQL+Server' rel='tag' target='_self'>SQL Server</a>, <a class='technorati-link' href='http://technorati.com/tag/sql+server+2005' rel='tag' target='_self'>sql server 2005</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://www.calvinirwin.net/2009/08/24/sql-server-shrink-logs-and-custom-backup-script/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SharePoint Variations Not Deploying</title>
		<link>http://www.calvinirwin.net/2009/08/18/sharepoint-variations-not-deploying/</link>
		<comments>http://www.calvinirwin.net/2009/08/18/sharepoint-variations-not-deploying/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 22:19:23 +0000</pubDate>
		<dc:creator>Calvin</dc:creator>
				<category><![CDATA[Configuration]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[services]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.calvinirwin.net/?p=160</guid>
		<description><![CDATA[While working on my sharepoint development machine today I was mucking about with variations and doing a proof of concept.  Now I know they worked before but for some reason when I created a new page in the source site they were not being propagated through to the variation label sites.  In Centeral Admin under [...]]]></description>
			<content:encoded><![CDATA[<p>While working on my sharepoint development machine today I was mucking about with variations and doing a proof of concept.  Now I know they worked before but for some reason when I created a new page in the source site they were not being propagated through to the variation label sites.  In Centeral Admin under the Timer Status I found that the Variations Propagate Page Job Definition and the Variations Propagate Site Job Definition were both stuck at 0% and Initialized, see below:</p>
<p><img class="alignnone size-full wp-image-161" title="variations" src="http://www.calvinirwin.net/wp-content/uploads/2009/08/variations.gif" alt="variations" width="642" height="59" /></p>
<p>Seeing this, I now knew that the Timer service was not creating my variation pages and sites so a quick check under the windows services control panel applet  revealed that the Windows SharePoint Services Timer Service had been shut off.  Turning this back fixed my problem.</p>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/Configuration' rel='tag' target='_self'>Configuration</a>, <a class='technorati-link' href='http://technorati.com/tag/services' rel='tag' target='_self'>services</a>, <a class='technorati-link' href='http://technorati.com/tag/SharePoint' rel='tag' target='_self'>SharePoint</a>, <a class='technorati-link' href='http://technorati.com/tag/Windows' rel='tag' target='_self'>Windows</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://www.calvinirwin.net/2009/08/18/sharepoint-variations-not-deploying/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mysql &#8211; PHP &#8211; Linux and whats left of my sanity</title>
		<link>http://www.calvinirwin.net/2009/07/26/mysql-php-linux-and-whats-left-of-my-sanity/</link>
		<comments>http://www.calvinirwin.net/2009/07/26/mysql-php-linux-and-whats-left-of-my-sanity/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 20:04:08 +0000</pubDate>
		<dc:creator>Calvin</dc:creator>
				<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.calvinirwin.net/?p=58</guid>
		<description><![CDATA[So I have been working on setting up a Linux box with PHP5 and mysql mostly just to fart around with but also because I like learning how to do these things. I was having a hell of a time getting PHP and mysql to install properly on my distro - ubuntu 8
I originally installed [...]]]></description>
			<content:encoded><![CDATA[<p>So I have been working on setting up a Linux box with PHP5 and mysql mostly just to fart around with but also because I like learning how to do these things. I was having a hell of a time getting PHP and mysql to install properly on my distro - ubuntu 8</p>
<p>I originally installed PHP using apt-get and then installed mysql doing the same but was having issues getting them to work...no big shocker considering I am still fairly new to Linux. Eventually I did the following to get everything working, well so far anyway <img src='http://www.calvinirwin.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Here it is:</p>
<p>1. sudo tasksel install lamp-server - this installs the entire LAMP stack (Linux-Apache-MySQL-PHP) and does most of the work for you (i like this)</p>
<p>2. sudo apt-get install phpmyadmin - configure it for apache2 (installed above) this helped me get rid of the Fatal error: Call to undefined function: mysql_connect() I was getting...basically php was not configured to speak to mysql</p>
<p>3. I really cheated on this one because I was getting the following error Lost connection to MySQL server at ‘reading initial communication packet’, system error: 111 like any good linux noob I decided to google that up and came up with an article located <a style="font-family: arial;" href="http://imdad.wordpress.com/2008/11/02/2013-lost-connection-to-mysql-server-at-reading-initial-communication-packet-system-error-111/">here </a>that worked like a charm.  Here are the steps:</p>
<p>* <span style="font-family: courier new;">sudo gedit /etc/mysql/my.conf</span> -  comment the line corresponding to ‘bind-address’<br />
* <span style="font-family: courier new;">sudo gedit config.inc.php</span> - in the /etc/phpmyadmin folder<br />
* add or edit a line <span style="font-family: courier new;">$cfg['Servers'][$i]['host'] = ‘localhost’;</span><br />
* restart mysql using  <span style="font-family: courier new;">sudo /etc/init.d/mysql restart</span></p>
<p>Anyway...HTH</p>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/Configuration' rel='tag' target='_self'>Configuration</a>, <a class='technorati-link' href='http://technorati.com/tag/Development' rel='tag' target='_self'>Development</a>, <a class='technorati-link' href='http://technorati.com/tag/Linux' rel='tag' target='_self'>Linux</a>, <a class='technorati-link' href='http://technorati.com/tag/mysql' rel='tag' target='_self'>mysql</a>, <a class='technorati-link' href='http://technorati.com/tag/PHP' rel='tag' target='_self'>PHP</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://www.calvinirwin.net/2009/07/26/mysql-php-linux-and-whats-left-of-my-sanity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Operation aborted (Exception from HRESULT: 0&#215;80004004 (E_ABORT))</title>
		<link>http://www.calvinirwin.net/2009/07/26/operation-aborted-exception-from-hresult-0x80004004-e_abort/</link>
		<comments>http://www.calvinirwin.net/2009/07/26/operation-aborted-exception-from-hresult-0x80004004-e_abort/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 19:53:23 +0000</pubDate>
		<dc:creator>Calvin</dc:creator>
				<category><![CDATA[Configuration]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[sql server 2005]]></category>

		<guid isPermaLink="false">http://www.calvinirwin.net/?p=54</guid>
		<description><![CDATA[You may get the following error sometimes when trying to do something in SharePoint: Operation aborted (Exception from HRESULT: 0x80004004 (E_ABORT))
This is not actually a SharePoint issue but more a SQL issue...usually a result of the transaction log being full or no drive space available to it.
To view the log information use DBCC LOGINFO('[dbName]')
To fix [...]]]></description>
			<content:encoded><![CDATA[<p>You may get the following error sometimes when trying to do something in SharePoint: Operation aborted (Exception from HRESULT: 0x80004004 (E_ABORT))</p>
<p>This is not actually a SharePoint issue but more a SQL issue...usually a result of the transaction log being full or no drive space available to it.</p>
<p>To view the log information use <span style="font-family: courier new; color: #000099;">DBCC LOGINFO('[dbName]')</span></p>
<p>To fix the issue above, use the following code to reduce the size of the transaction log (replacing the items in square brackets with your variables - [dbName]):</p>
<div style="padding-left:15px; font-family: courier new;  color: #000099;">use [dbName]<br />
go</p>
<p>BACKUP LOG [dbName] TO DISK = N'[driveLetter]:\SQL Backup\[backupName].trn'<br />
WITH NOFORMAT, NOINIT, NAME = N'[dbName]-Transaction Log Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10<br />
GO</p>
<p>DBCC SHRINKFILE (N'[dbLogFileName]' , 0, TRUNCATEONLY)<br />
GO</p>
<p>DBCC LOGINFO('[dbName]')</p></div>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/Configuration' rel='tag' target='_self'>Configuration</a>, <a class='technorati-link' href='http://technorati.com/tag/SharePoint' rel='tag' target='_self'>SharePoint</a>, <a class='technorati-link' href='http://technorati.com/tag/SQL+Server' rel='tag' target='_self'>SQL Server</a>, <a class='technorati-link' href='http://technorati.com/tag/sql+server+2005' rel='tag' target='_self'>sql server 2005</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://www.calvinirwin.net/2009/07/26/operation-aborted-exception-from-hresult-0x80004004-e_abort/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Setup your GAC to view it naked</title>
		<link>http://www.calvinirwin.net/2009/07/26/setup-your-gac-to-view-it-naked/</link>
		<comments>http://www.calvinirwin.net/2009/07/26/setup-your-gac-to-view-it-naked/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 19:32:19 +0000</pubDate>
		<dc:creator>Calvin</dc:creator>
				<category><![CDATA[.Net Framework]]></category>
		<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[gac]]></category>

		<guid isPermaLink="false">http://www.calvinirwin.net/?p=39</guid>
		<description><![CDATA[Heres a simple way for you to view your GAC in its naked state, go to the following registry location:

HKLM\Software\Microsoft\Fusion, once there create a DWORD value named "DisableCacheViewer" and set it to value 1. 
Easy!




Technorati Tags: .net, Configuration, gac


]]></description>
			<content:encoded><![CDATA[<p><span style="font-family: arial;">Heres a simple way for you to view your GAC in its naked state, go to the following registry location:<br />
</span></p>
<p><span style="font-family: arial;">HKLM\Software\Microsoft\Fusion, once there create a DWORD value named "DisableCacheViewer" and set it to value 1. </span></p>
<p><span style="font-family: arial;">Easy!<br />
</span></p>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/.net' rel='tag' target='_self'>.net</a>, <a class='technorati-link' href='http://technorati.com/tag/Configuration' rel='tag' target='_self'>Configuration</a>, <a class='technorati-link' href='http://technorati.com/tag/gac' rel='tag' target='_self'>gac</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://www.calvinirwin.net/2009/07/26/setup-your-gac-to-view-it-naked/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>403 Access Denied on SharePoint SSP Search setting access attempt</title>
		<link>http://www.calvinirwin.net/2009/07/26/403-access-denied-on-sharepoint-ssp-search-setting-access-attempt/</link>
		<comments>http://www.calvinirwin.net/2009/07/26/403-access-denied-on-sharepoint-ssp-search-setting-access-attempt/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 19:10:17 +0000</pubDate>
		<dc:creator>Calvin</dc:creator>
				<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://www.calvinirwin.net/?p=29</guid>
		<description><![CDATA[http://[your sspname here]/ssp/admin/_layouts/searchsspsettings.aspx
This problem has to do with an issue that comes up after you apply a hotfix to your servers. Essentially it enforces new security rules. To resolve it add the Sharepoint service account to the Box Administrators, WSS_ADMIN_WPG and WSS_RESTRICTED_WPG. Once this is done reset your IIS and you should be good to [...]]]></description>
			<content:encoded><![CDATA[<p>http://[your sspname here]/ssp/admin/_layouts/searchsspsettings.aspx</p>
<p>This problem has to do with an issue that comes up after you apply a hotfix to your servers. Essentially it enforces new security rules. To resolve it add the Sharepoint service account to the Box Administrators, WSS_ADMIN_WPG and WSS_RESTRICTED_WPG. Once this is done reset your IIS and you should be good to go.</p>
<p>Props to Søren Nielsen for the following post:<br />
<a href="http://soerennielsen.wordpress.com/2008/02/08/make-the-search-work-for-you/" target="_blank">http://soerennielsen.wordpress.com/2008/02/08/make-the-search-work-for-you/</a></p>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/Configuration' rel='tag' target='_self'>Configuration</a>, <a class='technorati-link' href='http://technorati.com/tag/search' rel='tag' target='_self'>search</a>, <a class='technorati-link' href='http://technorati.com/tag/Security' rel='tag' target='_self'>Security</a>, <a class='technorati-link' href='http://technorati.com/tag/SharePoint' rel='tag' target='_self'>SharePoint</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://www.calvinirwin.net/2009/07/26/403-access-denied-on-sharepoint-ssp-search-setting-access-attempt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
