<?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>mylifeinaminute.com &#187; TechNet</title>
	<atom:link href="http://www.mylifeinaminute.com/category/microsoft/technet/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mylifeinaminute.com</link>
	<description>You can learn a lot in a minute</description>
	<lastBuildDate>Wed, 18 Jan 2012 02:33:27 +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>Setting AutoCleanupDays With PowerShell in SharePoint 2010</title>
		<link>http://www.mylifeinaminute.com/2011/09/08/setting-autocleanupdays-with-powershell-in-sharepoint-2010/</link>
		<comments>http://www.mylifeinaminute.com/2011/09/08/setting-autocleanupdays-with-powershell-in-sharepoint-2010/#comments</comments>
		<pubDate>Thu, 08 Sep 2011 18:39:34 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[MSDN]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[Sharepoint Server]]></category>
		<category><![CDATA[SharePoint Server 2010]]></category>
		<category><![CDATA[TechNet]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[Workflow]]></category>

		<guid isPermaLink="false">http://www.mylifeinaminute.com/?p=1117</guid>
		<description><![CDATA[The Problem In it&#8217;s default configuration, SharePoint (2007 and 2010) will delete workflow associations after 60 days (e.g. the information found on the Workflow Status page). There are times when you may want to alter this functionality and retain the association for a longer period of time. In SharePoint 2007, the recommendation from Microsoft (per [...]]]></description>
			<content:encoded><![CDATA[<h2>The Problem</h2>
<p>In it&#8217;s default configuration, <a href="/tag/sharepoint/" title="SharePoint">SharePoint</a> (<a href="/tag/sharepoint-2007/" title="SharePoint 2007">2007</a> and <a href="/tag/sharepoint-2010/" title="SharePoint 2010">2010</a>) will delete <a href="/tag/workflow/" title="Workflow">workflow</a> associations after 60 days (<em>e.g.</em> the information found on the Workflow Status page). There are times when you may want to alter this functionality and retain the association for a longer period of time.</p>
<p>In SharePoint 2007, the <a title="Disable automatic cleanup of workflow history (SharePoint Server 2007)" href="http://technet.microsoft.com/en-us/library/cc298800(office.12).aspx">recommendation from Microsoft</a> (per <a href="/category/microsoft/technet/" title="TechNet">TechNet</a>), is to disable the <strong>Workflow Auto Cleanup</strong> timer job. The <strong>Workflow Auto Cleanup</strong> timer job is a web application scoped timer job. As such, disabling the job is often not the optimal solution; as disabling the job will ensure that cleanup is not occurring for all of the site collections within the web application for which the timer job was disabled.</p>
<p><a href="http://www.mylifeinaminute.com/images/2011/09/TimerJob.png" rel="lightbox[1117]"><img class="aligncenter size-medium wp-image-1120" title="Timer Jobs" src="http://www.mylifeinaminute.com/images/2011/09/TimerJob-300x184.png" alt="" width="300" height="184" /></a><a href="http://www.mylifeinaminute.com/images/2011/09/TimerJobDisable.png" rel="lightbox[1117]"><img class="aligncenter size-medium wp-image-1121" title="Disable Timer Job" src="http://www.mylifeinaminute.com/images/2011/09/TimerJobDisable-300x135.png" alt="" width="300" height="135" /></a></p>
<h2>The Solution</h2>
<p>Thankfully, there is a property (<a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.workflow.spworkflowassociation.autocleanupdays.aspx" title="SPWorkflowAssociation.AutoCleanupDays Property">SPWorkflowAssociation.AutoCleanupDays</a>) that is exposed with the workflows associated with a given list/content type. And once again, <a href="/tag/powershell/" title="PowerShell">PowerShell</a> comes to the rescue, giving us the ability to manipulate the cleanup days at a more granular level. This ensures that we do not disable the timer job for an entire web application.</p>
<p>Presented as two functions, we can manipulate the workflow association settings for either the workflows associated with a list or the workflows associated with a content type attached to a list.</p>
<h3>Set-SPListWorkflowAssocationCleanup</h3>
<p>The following function allows us to set the AutoCleanupDays for all of the workflows associated with a given list.</p>
<pre class="brush: powershell; title: ; notranslate">
Set-SPListWorkflowAssocationCleanup -WebUrl &quot;http://intranet&quot; -ListName &quot;Shared Documents&quot; -CleanupDays 365 -ReportOnly:$false
</pre>
<pre class="brush: powershell; title: ; notranslate">
function Set-SPListWorkflowAssocationCleanup {
    param (
        [string] $WebUrl = $(Read-Host -prompt &quot;Enter a Url&quot;),
        [string] $ListName = $(Read-Host -prompt &quot;Enter a List Name&quot;),
        [int32] $CleanupDays = $(Read-Host -prompt &quot;Enter the number of Cleanup Days&quot;),
        [switch] $ReportOnly = $true
        )        

    $web = Get-SPWeb $WebUrl;
    if ($web -eq $null) {
        Write-Error -message &quot;Error: Web Not Found&quot; -category InvalidArgument
    } else {
        $list = $web.Lists[$ListName];
        if ($list -eq $null) {
            Write-Error -message &quot;Error: List Not Found&quot; -category InvalidArgument
        } else {
            [Microsoft.SharePoint.Workflow.SPWorkflowAssociation[]] $wfaMods = @();
            foreach ($wfa in $list.WorkflowAssociations) {
                $message = &quot;Found Workflow Association for &quot; + $wfa.Name + &quot; with AutoCleanupDays set to &quot; + $wfa.AutoCleanupDays
                Write-Verbose -message $message -verbose

                if ($ReportOnly -eq $false) {
                    $wfa.AutoCleanupDays = $CleanupDays;
                    $wfaMods = $wfaMods + $wfa;
                }
            }

            if ($ReportOnly -eq $false) {
                foreach ($wfa in $wfaMods) {
                    $message = &quot;Setting AutoCleanupDays for &quot; + $wfa.Name + &quot; to &quot; + $CleanupDays
                    Write-Verbose -message $message -verbose
                    $list.WorkflowAssociations.Update($wfa);
                }
            }
        }
    }
}
</pre>
<h3>Set-SPListContentTypeWorkflowAssocationCleanup</h3>
<p>The following function allows us to set the AutoCleanupDays for all of the workflows associated with content type for a given list.</p>
<pre class="brush: powershell; title: ; notranslate">
Set-SPListContentTypeWorkflowAssocationCleanup -WebUrl &quot;http://intranet&quot; -ListName &quot;Shared Documents&quot; -ContentTypeName &quot;Document Content Type&quot; -CleanupDays 365 -ReportOnly:$false
</pre>
<pre class="brush: powershell; title: ; notranslate">
function Set-SPListContentTypeWorkflowAssocationCleanup {
    param (
        [string] $WebUrl = $(Read-Host -prompt &quot;Enter a Url&quot;),
        [string] $ListName = $(Read-Host -prompt &quot;Enter a List Name&quot;),
        [string] $ContentTypeName = $(Read-Host -prompt &quot;Enter a Content Type Name&quot;),
        [int32] $CleanupDays = $(Read-Host -prompt &quot;Enter the number of Cleanup Days&quot;),
        [switch] $ReportOnly = $true
        )        

    $web = Get-SPWeb $WebUrl;
    if ($web -eq $null) {
        Write-Error -message &quot;Error: Web Not Found&quot; -category InvalidArgument
    } else {
        $list = $web.Lists[$ListName];
        if ($list -eq $null) {
            Write-Error -message &quot;Error: List Not Found&quot; -category InvalidArgument
        } else {
            $ct = $list.ContentTypes[$ContentTypeName];
            if ($ct -eq $null) {
                Write-Error -message &quot;Error: Content Type Not Found&quot; - category InvalidArgument
            } else {
                [Microsoft.SharePoint.Workflow.SPWorkflowAssociation[]] $wfaMods = @();
                foreach ($wfa in $ct.WorkflowAssociations) {
                    $message = &quot;Found Workflow Association for &quot; + $wfa.Name + &quot; with AutoCleanupDays set to &quot; + $wfa.AutoCleanupDays
                    Write-Verbose -message $message -verbose

                    if ($ReportOnly -eq $false) {
                        $wfa.AutoCleanupDays = $CleanupDays;
                        $wfaMods = $wfaMods + $wfa;
                    }
                }

                if ($ReportOnly -eq $false) {
                    foreach ($wfa in $wfaMods) {
                        $message = &quot;Setting AutoCleanupDays for &quot; + $wfa.Name + &quot; to &quot; + $CleanupDays
                        Write-Verbose -message $message -verbose
                        $ct.WorkflowAssociations.Update($wfa);
                    }
                }
            }
        }
    }
}
</pre>
<h2>Conclusion</h2>
<p>By manipulating the workflow associations for a list at the list/content type level the default configuration of a SharePoint farm can be retained (<em>e.g.</em> Workflow associations removed after 60 days) and in those cases where there is a business need, the workflow associations can be maintained for a longer period of time.</p>
<h2>Reference</h2>
<ul>
<li><a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.workflow.spworkflowassociation.autocleanupdays.aspx" title="SPWorkflowAssociation.AutoCleanupDays Property">SPWorkflowAssociation.AutoCleanupDays Property</a></li>
<li><a title="SharePoint Timer job reference (Office SharePoint Server)" href="http://technet.microsoft.com/en-us/library/cc678870(office.12).aspx">SharePoint Timer job reference (Office SharePoint Server)</a></li>
<li><a title="Timer job reference (SharePoint Server 2010)" href="http://technet.microsoft.com/en-us/library/cc678870.aspx">Timer job reference (SharePoint Server 2010)</a></li>
<li><a href="http://sympmarc.com/2008/10/14/sharepoint-workflow-history-disappears/" title="SharePoint Workflow History Disappears">SharePoint Workflow History &#8220;Disappears&#8221;</a></li>
</ul>
<p><map name='google_ad_map_1117_0feb153b14d1a0fb'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/1117?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_1117_0feb153b14d1a0fb' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=1117&amp;url= http%3A%2F%2Fwww.mylifeinaminute.com%2F2011%2F09%2F08%2Fsetting-autocleanupdays-with-powershell-in-sharepoint-2010%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.mylifeinaminute.com/2011/09/08/setting-autocleanupdays-with-powershell-in-sharepoint-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SharePoint 2010 Downloadable Content</title>
		<link>http://www.mylifeinaminute.com/2011/04/08/sharepoint-2010-downloadable-content/</link>
		<comments>http://www.mylifeinaminute.com/2011/04/08/sharepoint-2010-downloadable-content/#comments</comments>
		<pubDate>Fri, 08 Apr 2011 13:24:37 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[SharePoint Server 2010]]></category>
		<category><![CDATA[TechNet]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint Guidance]]></category>
		<category><![CDATA[sharepoint resources]]></category>

		<guid isPermaLink="false">http://www.mylifeinaminute.com/?p=785</guid>
		<description><![CDATA[Microsoft provides a number of free resources for &#8220;getting to know&#8221; SharePoint 2010. Note that the most of the CHMs are updated monthly. Downloadable Books Downloadable content for SharePoint Foundation 2010 Downloadable content for SharePoint Server 2010 Downloadable content for FAST Search Server 2010 for SharePoint Guide for IT Pros for Microsoft Search Server 2010 [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Microsoft" href="/tag/microsoft/">Microsoft</a> provides a number of free resources for &#8220;getting to know&#8221; <a title="SharePoint" href="/tag/sharepoint/">SharePoint</a> <a title="SharePoint 2010" href="/tag/sharepoint-2010/">2010</a>. Note that the most of the CHMs are updated monthly.</p>
<h4>Downloadable Books</h4>
<ul>
<li><a title="Downloadable content for SharePoint Foundation 2010" href="http://technet.microsoft.com/en-us/library/cc288773.aspx">Downloadable content for SharePoint Foundation 2010</a></li>
<li><a title="Downloadable content for SharePoint Server 2010" href="http://technet.microsoft.com/en-us/library/cc262788.aspx">Downloadable content for SharePoint Server 2010</a></li>
<li><a title="Downloadable content for FAST Search Server 2010 for SharePoint" href="http://technet.microsoft.com/en-us/library/ff793351.aspx">Downloadable content for FAST Search Server 2010 for SharePoint</a></li>
<li><a title="Guide for IT Pros for Microsoft Search Server 2010" href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=14715005-c1e1-4411-b553-150b3721ccc8&amp;displaylang=en">Guide for IT Pros for Microsoft Search Server 2010</a></li>
<li><a title="Guide for IT Pros for Microsoft Project Server 2010" href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=e730b697-9f7a-486d-9814-6fb7ba8d9cd1&amp;displaylang=en">Guide for IT Pros for Microsoft Project Server 2010</a></li>
<li><a title="Downloadable content for the Office 2010 Resource Kit" href="http://technet.microsoft.com/en-us/library/cc178979.aspx">Downloadable content for the Office 2010 Resource Kit</a></li>
</ul>
<h4>Downloadable CHM</h4>
<ul>
<li><a title="Microsoft SharePoint Foundation 2010 Technical Library in Compiled Help format" href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c8cf1631-0f48-4a02-a18d-54b04eb7f0a7&amp;displaylang=en">Microsoft SharePoint Foundation 2010 Technical Library in Compiled Help format</a></li>
<li><a title="Microsoft SharePoint Server 2010 Technical Library in Compiled Help format" href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=3629425d-1505-456e-89e2-ede95f75ffe5&amp;displaylang=en">Microsoft SharePoint Server 2010 Technical Library in Compiled Help format</a></li>
<li><a title="Microsoft Search Server 2010 Technical Library in Compiled Help format" href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=73b58b97-847a-4d86-892e-464826603d2b&amp;displaylang=en">Microsoft Search Server 2010 Technical Library in Compiled Help format</a></li>
<li><a title="Microsoft FAST Search Server 2010 for SharePoint Technical Library in Compiled Help format" href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=ead44c66-7d02-4edf-9e56-2f56c6f59f22&amp;displaylang=en">Microsoft FAST Search Server 2010 for SharePoint Technical Library in Compiled Help format</a></li>
<li><a title="Microsoft Project Server 2010 Technical Library in Compiled Help format" href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=8e434c5c-0c6e-41e2-86ad-79fa30558feb&amp;displaylang=en">Microsoft Project Server 2010 Technical Library in Compiled Help format</a></li>
<li><a title="Microsoft Groove Server 2010 Technical Library in Compiled Help format" href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c6ad103d-5dc3-438a-bdc5-3fa3cc9937c7&amp;displaylang=en">Microsoft Groove Server 2010 Technical Library in Compiled Help format</a></li>
<li><a title="Office 2010 Resource Kit Technical Library in Compiled Help format" href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=e6dcc787-4653-49da-aeef-564a64dd4ac5&amp;displaylang=en">Office 2010 Resource Kit Technical Library in Compiled Help format</a></li>
</ul>
<p><map name='google_ad_map_785_0feb153b14d1a0fb'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/785?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_785_0feb153b14d1a0fb' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=785&amp;url= http%3A%2F%2Fwww.mylifeinaminute.com%2F2011%2F04%2F08%2Fsharepoint-2010-downloadable-content%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.mylifeinaminute.com/2011/04/08/sharepoint-2010-downloadable-content/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UserProfileServiceUserStatisticsWebPart:LoadControl failed</title>
		<link>http://www.mylifeinaminute.com/2011/04/06/userprofileserviceuserstatisticswebpartloadcontrol-failed/</link>
		<comments>http://www.mylifeinaminute.com/2011/04/06/userprofileserviceuserstatisticswebpartloadcontrol-failed/#comments</comments>
		<pubDate>Wed, 06 Apr 2011 15:38:02 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[SharePoint Server 2010]]></category>
		<category><![CDATA[TechNet]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2010]]></category>

		<guid isPermaLink="false">http://www.mylifeinaminute.com/?p=776</guid>
		<description><![CDATA[If you&#8217;re experiencing any kind of LoadControl failed errors after provisioning a User Profile Service Application when attempting to manage the service application, you may have forgotten to perform an iisreset. Reference Configure profile synchronization (SharePoint Server 2010)]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re experiencing any kind of <em>LoadControl failed</em> errors after provisioning a User Profile Service Application when attempting to manage the service application, you may have forgotten to perform an <a title="IIS Reset Activity" href="http://technet.microsoft.com/en-us/library/dd364067%28WS.10%29.aspx"><strong>iisreset</strong></a>.</p>
<pre class="brush: plain; title: ; notranslate">
04/06/2011 11:17:40.48	w3wp.exe (0x18B8)	0x1BEC	SharePoint Portal Server	User Profiles	et8j	High	UserProfileServiceUserStatisticsWebPart:LoadControl failed, Exception: System.IO.FileLoadException: The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)     at Microsoft.Office.Server.UserProfiles.UserProfileConfigManager.InitializeIlmClient(String ILMMachineName, Int32 FIMWebClientTimeOut)     at Microsoft.Office.Server.UserProfiles.UserProfileConfigManager..ctor(UserProfileApplicationProxy userProfileApplicationProxy, Guid partitionID)     at Microsoft.SharePoint.Portal.WebControls.UserProfileServiceStatisticsWebPartBase.LoadControl(Object sender, EventArgs e)	59a0ca16-b035-420c-a6d4-c62ec550fc0c
04/06/2011 11:17:40.49	w3wp.exe (0x18B8)	0x1BEC	SharePoint Portal Server	User Profiles	et8j	High	UserProfileServiceAudienceStatisticsWebPart:LoadControl failed, Exception: System.IO.FileLoadException: The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)     at Microsoft.Office.Server.UserProfiles.UserProfileConfigManager.InitializeIlmClient(String ILMMachineName, Int32 FIMWebClientTimeOut)     at Microsoft.Office.Server.UserProfiles.UserProfileConfigManager..ctor(UserProfileApplicationProxy userProfileApplicationProxy, Guid partitionID)     at Microsoft.SharePoint.Portal.WebControls.UserProfileServiceStatisticsWebPartBase.LoadControl(Object sender, EventArgs e)	59a0ca16-b035-420c-a6d4-c62ec550fc0c
04/06/2011 11:17:40.49	w3wp.exe (0x18B8)	0x1BEC	SharePoint Portal Server	User Profiles	et8j	High	UserProfileServiceImportStatisticsWebPart:LoadControl failed, Exception: System.IO.FileLoadException: The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)     at Microsoft.Office.Server.UserProfiles.UserProfileConfigManager.InitializeIlmClient(String ILMMachineName, Int32 FIMWebClientTimeOut)     at Microsoft.Office.Server.UserProfiles.UserProfileConfigManager..ctor(UserProfileApplicationProxy userProfileApplicationProxy, Guid partitionID)     at Microsoft.SharePoint.Portal.WebControls.UserProfileServiceStatisticsWebPartBase.LoadControl(Object sender, EventArgs e)	59a0ca16-b035-420c-a6d4-c62ec550fc0c
04/06/2011 11:18:22.48	w3wp.exe (0x18B8)	0x1C98	SharePoint Portal Server	User Profiles	et8j	High	UserProfileServiceUserStatisticsWebPart:LoadControl failed, Exception: System.IO.FileLoadException: The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)     at Microsoft.Office.Server.UserProfiles.UserProfileConfigManager.InitializeIlmClient(String ILMMachineName, Int32 FIMWebClientTimeOut)     at Microsoft.Office.Server.UserProfiles.UserProfileConfigManager..ctor(UserProfileApplicationProxy userProfileApplicationProxy, Guid partitionID)     at Microsoft.SharePoint.Portal.WebControls.UserProfileServiceStatisticsWebPartBase.LoadControl(Object sender, EventArgs e)	5e9291a6-c7ee-4f1d-91d2-f0689697e9da
04/06/2011 11:18:22.49	w3wp.exe (0x18B8)	0x1C98	SharePoint Portal Server	User Profiles	et8j	High	UserProfileServiceAudienceStatisticsWebPart:LoadControl failed, Exception: System.IO.FileLoadException: The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)     at Microsoft.Office.Server.UserProfiles.UserProfileConfigManager.InitializeIlmClient(String ILMMachineName, Int32 FIMWebClientTimeOut)     at Microsoft.Office.Server.UserProfiles.UserProfileConfigManager..ctor(UserProfileApplicationProxy userProfileApplicationProxy, Guid partitionID)     at Microsoft.SharePoint.Portal.WebControls.UserProfileServiceStatisticsWebPartBase.LoadControl(Object sender, EventArgs e)	5e9291a6-c7ee-4f1d-91d2-f0689697e9da
04/06/2011 11:18:22.49	w3wp.exe (0x18B8)	0x1C98	SharePoint Portal Server	User Profiles	et8j	High	UserProfileServiceImportStatisticsWebPart:LoadControl failed, Exception: System.IO.FileLoadException: The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)     at Microsoft.Office.Server.UserProfiles.UserProfileConfigManager.InitializeIlmClient(String ILMMachineName, Int32 FIMWebClientTimeOut)     at Microsoft.Office.Server.UserProfiles.UserProfileConfigManager..ctor(UserProfileApplicationProxy userProfileApplicationProxy, Guid partitionID)     at Microsoft.SharePoint.Portal.WebControls.UserProfileServiceStatisticsWebPartBase.LoadControl(Object sender, EventArgs e)	5e9291a6-c7ee-4f1d-91d2-f0689697e9da
</pre>
<h4>Reference</h4>
<ul>
<li><a title="Configure profile synchronization (SharePoint Server 2010)" href="http://technet.microsoft.com/en-us/library/ee721049.aspx#StartUPSProc">Configure profile synchronization (SharePoint Server 2010)</a></li>
</ul>
<p><map name='google_ad_map_776_0feb153b14d1a0fb'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/776?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_776_0feb153b14d1a0fb' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=776&amp;url= http%3A%2F%2Fwww.mylifeinaminute.com%2F2011%2F04%2F06%2Fuserprofileserviceuserstatisticswebpartloadcontrol-failed%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.mylifeinaminute.com/2011/04/06/userprofileserviceuserstatisticswebpartloadcontrol-failed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SharePoint 2010: System.Security.SecurityException when you try to start the User Profile Synchronization Service</title>
		<link>http://www.mylifeinaminute.com/2011/04/06/sharepoint-2010-system-security-securityexception-when-you-try-to-start-the-user-profile-synchronization-service/</link>
		<comments>http://www.mylifeinaminute.com/2011/04/06/sharepoint-2010-system-security-securityexception-when-you-try-to-start-the-user-profile-synchronization-service/#comments</comments>
		<pubDate>Wed, 06 Apr 2011 13:40:39 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[SharePoint Server 2010]]></category>
		<category><![CDATA[TechNet]]></category>
		<category><![CDATA[Error Message]]></category>
		<category><![CDATA[kerberos]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[sharepoint quirks]]></category>

		<guid isPermaLink="false">http://www.mylifeinaminute.com/?p=750</guid>
		<description><![CDATA[System.Security.SecurityException: There are currently no logon servers available to service the logon request with a KerbS4ULogon exception? Kerberos strikes again. The Error UserProfileApplication.SynchronizeMIIS: Failed to configure ILM, will attempt during next rerun. Exception: System.Security.SecurityException: There are currently no logon servers available to service the logon request. at System.Security.Principal.WindowsIdentity.KerbS4ULogon(String upn) at System.Security.Principal.WindowsIdentity..ctor(String sUserPrincipalName, String type) at [...]]]></description>
			<content:encoded><![CDATA[<p><em>System.Security.SecurityException: There are currently no logon servers available to service the logon request</em> with a <a title="Windows Server 2003 Kerberos Extensions" href="http://technet.microsoft.com/en-us/library/cc738207%28WS.10%29.aspx"><em>KerbS4ULogon</em></a> exception? <a title="Kerberos" href="/tag/kerberos/">Kerberos</a> strikes again.</p>
<h4>The Error</h4>
<blockquote><p><em><span style="color: #ff0000;">UserProfileApplication.SynchronizeMIIS: Failed to configure ILM, will attempt during next rerun. Exception: System.Security.SecurityException: There are currently no logon servers available to service the logon request.<br />
at System.Security.Principal.WindowsIdentity.KerbS4ULogon(String upn)<br />
at System.Security.Principal.WindowsIdentity..ctor(String sUserPrincipalName, String type)<br />
at System.Security.Principal.WindowsIdentity..ctor(String sUserPrincipalName)<br />
at Microsoft.IdentityManagement.SetupUtils.IlmWSSetup.GetDomainAccountSIDHexString(String domainName, String accountName)<br />
at Microsoft.IdentityManagement.SetupUtils.IlmWSSetup.GrantSQLRightsToServiceAccount()<br />
at Microsoft.IdentityManagement.SetupUtils.IlmWSSetup.IlmBuildDatabase()<br />
at Microsoft.Office.Server.UserProfiles.Synchronization.ILMPostSetupConfiguration.ConfigureIlmWebService(Boolean existingDatabase)<br />
at Microsoft.Office.Server.Administration.UserProfileApplication.SetupSynchronizationService(ProfileSynchronizationServiceInstance profileSyncInstance)  The Zone of the assembly that failed was:  MyComputer.</span></em></p></blockquote>
<h4>Root Cause</h4>
<p>A security feature introduced in Windows Server 2003 prevents the KDC from distributing a service ticket (TGS) for an account that does not have a <a title="Service Principal Names" href="http://msdn.microsoft.com/en-us/library/ms677949%28v=vs.85%29.aspx">Service Principle Name</a> (SPN) defined. As the SPTimerV4 account is unable to obtain a valid service ticket, the above exception is thrown. At the end of the day, without properly set SPNs, Kerberos authentication is not possible.</p>
<h4>The Fix</h4>
<p>As stated on <a title="You get a System.Security.SecurityException when you try to start the User Profile Synchronization Service" href="http://blogs.msdn.com/b/yvan_duhamel/archive/2010/06/29/you-get-a-system-security-securityexception-when-you-try-to-start-the-fim-synchronization.aspx">Yvan Duhamel&#8217;s blog</a>, setting a temporary SPN on the account running the SPTimerV4 (OWSTIMER) service will allow you to start the service.</p>
<pre class="brush: plain; title: ; notranslate">
setspn –a NONE/NONE OWSTimerAccount
</pre>
<p>The SPN can be removed after the service is provisioned and the FIM services will continue to start properly after restarts. However, if the <a title="Configure profile synchronization (SharePoint Server 2010)" href="http://technet.microsoft.com/en-us/library/ee721049.aspx">User Profile Synchronization Service</a> ever needs to be restarted through <a title="Manage service applications (SharePoint Server 2010)" href="http://technet.microsoft.com/en-us/library/ee704544.aspx">Central Administration</a>, the SPN will need to be in place. That being said, it is most likely best to keep the SPN on the account.</p>
<h4>Reference</h4>
<ul>
<li><a title="You get a System.Security.SecurityException when you try to start the User Profile Synchronization Service" href="http://blogs.msdn.com/b/yvan_duhamel/archive/2010/06/29/you-get-a-system-security-securityexception-when-you-try-to-start-the-fim-synchronization.aspx">You get a System.Security.SecurityException when you try to start the User Profile Synchronization Service</a></li>
<li><a title="How the Kerberos Version 5 Authentication Protocol Works" href="http://technet.microsoft.com/fr-fr/library/cc772815%28WS.10%29.aspx">How the Kerberos Version 5 Authentication Protocol Works</a></li>
</ul>
<p><map name='google_ad_map_750_0feb153b14d1a0fb'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/750?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_750_0feb153b14d1a0fb' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=750&amp;url= http%3A%2F%2Fwww.mylifeinaminute.com%2F2011%2F04%2F06%2Fsharepoint-2010-system-security-securityexception-when-you-try-to-start-the-user-profile-synchronization-service%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.mylifeinaminute.com/2011/04/06/sharepoint-2010-system-security-securityexception-when-you-try-to-start-the-user-profile-synchronization-service/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IIS 7 and Idle Timeouts</title>
		<link>http://www.mylifeinaminute.com/2011/02/16/iis-7-and-idle-timeouts/</link>
		<comments>http://www.mylifeinaminute.com/2011/02/16/iis-7-and-idle-timeouts/#comments</comments>
		<pubDate>Wed, 16 Feb 2011 18:22:11 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Internet Information Services]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Server 2008]]></category>
		<category><![CDATA[TechNet]]></category>
		<category><![CDATA[iis]]></category>
		<category><![CDATA[iis 7]]></category>
		<category><![CDATA[Technet]]></category>

		<guid isPermaLink="false">http://www.mylifeinaminute.com/?p=665</guid>
		<description><![CDATA[There is a bug in the IIS 7 user interface which prevents setting the idleTimeout property of an application pool when both the time (&#8220;Regular Time Interval (minutes)&#8221;) property and idleTimeout properties are set to zero. A quick trip to the command line and the appcmd interface can solve the problem. The following command will [...]]]></description>
			<content:encoded><![CDATA[<p>There is a bug in the <a title="IIS" href="/tag/iis/">IIS</a> 7 user interface which prevents setting the <a title="Configure Idle Time-out Settings for an Application Pool (IIS 7)" href="http://technet.microsoft.com/en-us/library/cc771956(WS.10).aspx"><strong>idleTimeout</strong></a> property of an application pool when both the <strong><a title="Configure an Application Pool to Recycle after an Elapsed Time (IIS 7)" href="http://technet.microsoft.com/en-us/library/cc733120(WS.10).aspx">time</a> </strong>(&#8220;Regular Time Interval (minutes)&#8221;) property and <a title="Configure Idle Time-out Settings for an Application Pool (IIS 7)" href="http://technet.microsoft.com/en-us/library/cc771956(WS.10).aspx"><strong>idleTimeout</strong></a> properties are set to zero.</p>
<p>A quick trip to the command line and the appcmd interface can solve the problem. The following command will set the <strong><a title="Configure Idle Time-out Settings for an Application Pool (IIS 7)" href="http://technet.microsoft.com/en-us/library/cc771956(WS.10).aspx">idleTimeout</a> </strong>property to 10 minutes.</p>
<pre class="brush: plain; light: true; title: ; notranslate">
appcmd set apppool &quot;Application Pool Name&quot; /processModel.idleTimeout:0.00:10:00
</pre>
<p>When properly executed, the command will output the following:</p>
<pre class="brush: plain; light: true; title: ; notranslate">
APPPOOL object &quot;Application Pool Name&quot; changed
</pre>
<p><map name='google_ad_map_665_0feb153b14d1a0fb'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/665?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_665_0feb153b14d1a0fb' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=665&amp;url= http%3A%2F%2Fwww.mylifeinaminute.com%2F2011%2F02%2F16%2Fiis-7-and-idle-timeouts%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.mylifeinaminute.com/2011/02/16/iis-7-and-idle-timeouts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SharePoint Governance Resources</title>
		<link>http://www.mylifeinaminute.com/2011/01/19/sharepoint-governance-resources/</link>
		<comments>http://www.mylifeinaminute.com/2011/01/19/sharepoint-governance-resources/#comments</comments>
		<pubDate>Wed, 19 Jan 2011 14:21:45 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[MSDN]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Sharepoint Server]]></category>
		<category><![CDATA[TechNet]]></category>
		<category><![CDATA[Windows SharePoint Services]]></category>
		<category><![CDATA[governance]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint documentation]]></category>
		<category><![CDATA[SharePoint Installation]]></category>

		<guid isPermaLink="false">http://www.mylifeinaminute.com/?p=654</guid>
		<description><![CDATA[Governance is something that should be at the top of the list for any SharePoint implementation (no matter how small). The following are some checklists/whitepapers/etc. provided by Microsoft that can get you started. Plan Governance SharePoint Governance Checklist Guide SharePoint Collaboration Service Governance Plan SharePoint Intranet Portal Governance White Paper SharePoint Deployment Guide and Checklists [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Governance" href="/tag/governance/">Governance</a> is something that should be at the top of the list for any SharePoint implementation (no matter how small). The following are some checklists/whitepapers/etc. provided by <a title="Microsoft" href="/category/microsoft/">Microsoft</a> that can get you started.</p>
<ul>
<li><a title="Plan Governance" href="http://technet.microsoft.com/en-us/library/cc263341(office.12).aspx">Plan Governance</a></li>
<li><a title="SharePoint Governance Checklist Guide" href="http://office.microsoft.com/download/afile.aspx?AssetID=AM102306291033">SharePoint Governance Checklist Guide</a></li>
<li><a title="SharePoint Collaboration Service Governance Plan" href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=ed2e4753-f162-4c23-ba9e-beb8c88f74d4&amp;displaylang=en">SharePoint Collaboration Service Governance Plan</a></li>
<li><a title="SharePoint Intranet Portal Governance White Paper" href="http://go.microsoft.com/fwlink/?LinkId=163922&amp;clcid=0x409">SharePoint Intranet Portal Governance White Paper</a></li>
<li><a title="SharePoint Deployment Guide and Checklists" href="http://office.microsoft.com/download/afile.aspx?AssetID=AM102552101033">SharePoint Deployment Guide and Checklists</a></li>
</ul>
<p>This is of course only sampling of what&#8217;s available. Feel free to sound off in the comments with your go-to resources for <a title="SharePoint" href="/tag/sharepoint/">SharePoint</a> governance.</p>
<p><map name='google_ad_map_654_0feb153b14d1a0fb'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/654?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_654_0feb153b14d1a0fb' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=654&amp;url= http%3A%2F%2Fwww.mylifeinaminute.com%2F2011%2F01%2F19%2Fsharepoint-governance-resources%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.mylifeinaminute.com/2011/01/19/sharepoint-governance-resources/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Global Deployments of Multiple Farms</title>
		<link>http://www.mylifeinaminute.com/2010/11/23/global-deployments-of-multiple-farms/</link>
		<comments>http://www.mylifeinaminute.com/2010/11/23/global-deployments-of-multiple-farms/#comments</comments>
		<pubDate>Tue, 23 Nov 2010 14:29:15 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[SharePoint Server 2010]]></category>
		<category><![CDATA[TechNet]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[Technet]]></category>

		<guid isPermaLink="false">http://www.mylifeinaminute.com/?p=625</guid>
		<description><![CDATA[Guidance for Global deployment of multiple farms has just landed on Technet. The Client solutions for WAN environments points out some good items as well.]]></description>
			<content:encoded><![CDATA[<p>Guidance for <a title="Global deployment of multiple farms" href="http://technet.microsoft.com/en-us/library/gg441257.aspx">Global deployment of multiple farms</a> has just landed on Technet. The <a title="Client solutions for WAN environments" href="http://technet.microsoft.com/en-us/library/gg441256.aspx">Client solutions for WAN environments</a> points out some good items as well.</p>
<p><map name='google_ad_map_625_0feb153b14d1a0fb'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/625?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_625_0feb153b14d1a0fb' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=625&amp;url= http%3A%2F%2Fwww.mylifeinaminute.com%2F2010%2F11%2F23%2Fglobal-deployments-of-multiple-farms%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.mylifeinaminute.com/2010/11/23/global-deployments-of-multiple-farms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SharePoint 2010 Products scripted deployment</title>
		<link>http://www.mylifeinaminute.com/2010/07/06/sharepoint-2010-products-scripted-deployment/</link>
		<comments>http://www.mylifeinaminute.com/2010/07/06/sharepoint-2010-products-scripted-deployment/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 18:36:27 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SharePoint Server 2010]]></category>
		<category><![CDATA[TechNet]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint Installation]]></category>

		<guid isPermaLink="false">http://www.mylifeinaminute.com/?p=491</guid>
		<description><![CDATA[It seems I missed it when Microsoft published the SPModule PowerShell module to aid in a scripted installation of a SharePoint 2010 farm. If anything, it can serve as a handy guide for how to script out individual actions pertaining to installation and farm maintenance. Reference SharePoint 2010 Products scripted deployment SPModule .zip file Install [...]]]></description>
			<content:encoded><![CDATA[<p>It seems I missed it when <a title="Microsoft" href="/tag/microsoft/">Microsoft </a>published the <a title="SPModule" href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=c57556ff-8df0-44fd-aba6-3df01b9f80ce">SPModule </a><a title="PowerShell" href="/category/microsoft/powershell/">PowerShell </a>module to aid in a scripted installation of a SharePoint 2010 farm.</p>
<p>If anything, it can serve as a handy guide for how to script out individual actions pertaining to installation and farm maintenance.</p>
<h4>Reference</h4>
<ul>
<li><a title="SharePoint 2010 Products scripted deployment SPModule .zip file" href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=c57556ff-8df0-44fd-aba6-3df01b9f80ce">SharePoint 2010 Products scripted deployment SPModule .zip file</a></li>
<li><a title="Install SharePoint Server 2010 by using Windows PowerShell" href="http://technet.microsoft.com/en-us/library/cc262839.aspx">Install SharePoint Server 2010 by using Windows PowerShell</a></li>
<li><a title="Install SharePoint Foundation 2010 by using Windows PowerShell" href="http://technet.microsoft.com/en-us/library/cc752946.aspx">Install SharePoint Foundation 2010 by using Windows PowerShell</a></li>
</ul>
<p><map name='google_ad_map_491_0feb153b14d1a0fb'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/491?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_491_0feb153b14d1a0fb' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=491&amp;url= http%3A%2F%2Fwww.mylifeinaminute.com%2F2010%2F07%2F06%2Fsharepoint-2010-products-scripted-deployment%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.mylifeinaminute.com/2010/07/06/sharepoint-2010-products-scripted-deployment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>stsadm, Site Collection Restore, and the &#8220;File Not Found&#8221; error</title>
		<link>http://www.mylifeinaminute.com/2010/05/20/stsadm-site-collection-restore-and-the-file-not-found-error/</link>
		<comments>http://www.mylifeinaminute.com/2010/05/20/stsadm-site-collection-restore-and-the-file-not-found-error/#comments</comments>
		<pubDate>Thu, 20 May 2010 14:46:53 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[Sharepoint Server]]></category>
		<category><![CDATA[TechNet]]></category>
		<category><![CDATA[moss 2007]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[stsadm]]></category>

		<guid isPermaLink="false">http://www.mylifeinaminute.com/?p=461</guid>
		<description><![CDATA[Restoring site collections with stsadm is normally a straightforward affair, requiring little to no manual intervention to get things back up and running. That is of course, unless you are restoring sites based on the Publishing Site template. I recently wanted to take an existing site collection, make a copy of it in the same [...]]]></description>
			<content:encoded><![CDATA[<p>Restoring site collections with stsadm is normally a straightforward affair, requiring little to no manual intervention to get things back up and running. That is of course, unless you are restoring sites based on the Publishing Site template.</p>
<p>I recently wanted to take an existing site collection, make a copy of it in the same web application under a newly created managed path and have it reside in a new content database. The backup went smooth, utilizing <em><span style="color: #ff0000;">stsadm -o backup</span></em>. The creation of the new managed path went off without a hitch. The creation of a new content database and the restoration of the site collection into that database also occurred with no issues.</p>
<p>Browsing the site however told a different story. I was immediately greeted with a standard error page stating &#8220;File Not Found&#8221;. Browsing to other pages within the site (eg. &#8220;<em>/_layouts/settings.aspx</em>&#8220;) yielded the same result. After turning on the callstack/debugging and disabling the custom error page, I was greeted with the following:</p>
<p style="text-align: center;"><a href="http://www.mylifeinaminute.com/images/2010/05/file_not_found.jpg" target="blank" rel="lightbox[461]"><img class="aligncenter size-medium wp-image-462" title="File No Found Error" src="http://www.mylifeinaminute.com/images/2010/05/file_not_found-300x144.jpg" alt="File No Found Error" width="300" height="144" /></a></p>
<p>The problem? Each publishing page points to an incorrect page layout after the restoration. One would think that the restore via stsadm would recognize this and fix it, but it does not.</p>
<p>The fix? The <a title="SharePoint Automation" href="http://stsadm.blogspot.com/">stsadm extensions</a> published by <a title="SharePoint Automation" href="http://stsadm.blogspot.com/">Gary Lapointe</a>. The package built by Gary offers a command call <em><span style="color: #ff0000;"><a title="gl-fixpublishingpagespagelayouturl" href="http://stsadm.blogspot.com/2007/08/fix-publishing-pages-page-layout-url.html">gl-fixpublishingpagespagelayouturl</a></span></em>. Verbose? Yes. Does it work? Absolutely.</p>
<p>After running the command and executing an <em><span style="color: #ff0000;">iisreset</span></em>, the site was once again able to be browsed and appears to be intact.</p>
<h4>Reference</h4>
<ul>
<li><a title="SharePoint Automation: Fix Publishing Pages Page Layout URL" href="http://stsadm.blogspot.com/2007/08/fix-publishing-pages-page-layout-url.html">SharePoint Automation: Fix Publising Pages Page Layout URL</a></li>
<li><a title="File not found error when restoring a site collection" href="http://www.synergyonline.com/blog/blog-moss/Lists/Posts/Post.aspx?ID=56">File not found errors when restoring a site collection</a></li>
<li><a title="stsadm backup Operation" href="http://technet.microsoft.com/en-us/library/cc263441(office.12).aspx">stsadm backup Operation</a></li>
<li><a title="stsadm restore Operation" href="http://technet.microsoft.com/en-us/library/cc262087(office.12).aspx">stsadm restore Operation</a></li>
</ul>
<p><em><em> </em></em></p>
<p><map name='google_ad_map_461_0feb153b14d1a0fb'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/461?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_461_0feb153b14d1a0fb' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=461&amp;url= http%3A%2F%2Fwww.mylifeinaminute.com%2F2010%2F05%2F20%2Fstsadm-site-collection-restore-and-the-file-not-found-error%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.mylifeinaminute.com/2010/05/20/stsadm-site-collection-restore-and-the-file-not-found-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SharePoint 2010: Provisioning a new Farm with Powershell</title>
		<link>http://www.mylifeinaminute.com/2010/05/17/sharepoint-2010-provisioning-a-new-farm-with-powershell/</link>
		<comments>http://www.mylifeinaminute.com/2010/05/17/sharepoint-2010-provisioning-a-new-farm-with-powershell/#comments</comments>
		<pubDate>Mon, 17 May 2010 13:45:25 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Sharepoint Server]]></category>
		<category><![CDATA[SharePoint Server 2010]]></category>
		<category><![CDATA[TechNet]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint Installation]]></category>

		<guid isPermaLink="false">http://www.mylifeinaminute.com/?p=452</guid>
		<description><![CDATA[SharePoint 2007 always required some level of scripting in it&#8217;s installation to allow for greater control of the installation process (i.e. creating database names without GUIDs). SharePoint 2010 is not any different in that scripting is still required to gain the finer control over installation. What has changed is that now PowerShell can be used [...]]]></description>
			<content:encoded><![CDATA[<p>SharePoint 2007 always required some level of scripting in it&#8217;s installation to allow for greater control of the installation process (i.e. creating database names without GUIDs). SharePoint 2010 is not any different in that scripting is still required to gain the finer control over installation. What has changed is that now PowerShell can be used in place of <strong>psconfig</strong>/<strong>stsadm</strong>. With that in mind, let&#8217;s begin.</p>
<ol>
<li>Install the SharePoint binaries on each server in your farm. Select &#8220;Complete&#8221; as the installation type. This will allow you to create a farm as opposed to a single server installation.After the install has completed, you will asked if you would like to complete the &#8220;SharePoint Products Configuration Wizard&#8221;. Do not run the wizard at this time.</li>
<li>On the server which you wish to provision Central Administration:
<ol>
<li>Open the  &#8221;SharePoint 2010 Management Shell&#8221; (right-click and select &#8220;Run as administrator&#8221;). The shell will load with a message that the local farm is not accessible. This is expected as we have only installed the binaries.</li>
<li>Run the following command to create the initial configuration/content database for the farm.
<pre class="brush: powershell; light: true; title: ; notranslate">
New-SPConfigurationDatabase –DatabaseName “SharePoint2010_Config” –DatabaseServer “SharePoint2010SQL” –AdministrationContentDatabaseName “SharePoint2010_Content_Admin” –Passphrase (ConvertTo-SecureString “Pass@word1” –AsPlaintext –Force) –FarmCredentials (Get-Credential)
</pre>
</li>
<li>After the initial creation of the farm, close and reload the &#8220;SharePoint 2010 Management Shell&#8221;. You should no longer receive any error messages.</li>
<li>Install the help files.
<pre class="brush: powershell; light: true; title: ; notranslate">
Install-SPHelpCollection -All
</pre>
</li>
<li>Secure the resources used by the server (files and registry).
<pre class="brush: powershell; light: true; title: ; notranslate">
Initialize-SPResourceSecurity
</pre>
</li>
<li>Install and provision the farm services.
<pre class="brush: powershell; light: true; title: ; notranslate">
Install-SPService
</pre>
</li>
<li>Install the features on the server.
<pre class="brush: powershell; light: true; title: ; notranslate">
Install-SPFeature –AllExistingFeatures
</pre>
</li>
<li>Provision Central Administration.
<pre class="brush: powershell; light: true; title: ; notranslate">
New-SPCentralAdministration -Port 1234  -WindowsAuthProvider &quot;NTLM&quot;
</pre>
</li>
<li>Install the application content.
<pre class="brush: powershell; light: true; title: ; notranslate">
Install-SPApplicationContent
</pre>
</li>
<li>Optional: Disable the loopback check. If this is a development install, outright disabling the check should be fine. For production environments, the loopback check should be left in place and BackConnectionHostNames should be used in its place. See <a title="KB896861" href="http://support.microsoft.com/kb/896861">KB 896861</a>.
<pre class="brush: powershell; light: true; title: ; notranslate">
New-ItemProperty HKLM:\System\CurrentControlSet\Control\Lsa -Name &quot;DisableLoopbackCheck&quot;  -value &quot;1&quot; -PropertyType dword
</pre>
</li>
</ol>
</li>
<li>On each additional server that you wish to converge in the farm:
<ol>
<li>Open the  &#8221;SharePoint 2010 Management Shell&#8221; (right-click and select &#8220;Run as administrator&#8221;). The shell will load with a message that the local farm is not accessible. This is expected as we have only installed the binaries.</li>
<li>Connect the server to the farm with the following command:
<pre class="brush: powershell; light: true; title: ; notranslate">
Connect-SPConfigurationDatabase -DatabaseName &quot;SharePoint2010_Config&quot; -DatabaseServer &quot;SharePoint2010SQL&quot; -Passphrase (ConvertTo-SecureString &quot;Pass@word1&quot; -AsPlaintext -Force)
</pre>
</li>
<li>Install the help files.
<pre class="brush: powershell; light: true; title: ; notranslate">
Install-SPHelpCollection -All
</pre>
</li>
<li>Secure the resources used by the server (files and registry).
<pre class="brush: powershell; light: true; title: ; notranslate">
Initialize-SPResourceSecurity
</pre>
</li>
<li>Install and provision the farm services.
<pre class="brush: powershell; light: true; title: ; notranslate">
Install-SPService
</pre>
</li>
<li>Install the features on the server.
<pre class="brush: powershell; light: true; title: ; notranslate">
Install-SPFeature –AllExistingFeatures
</pre>
</li>
<li>Install the application content.
<pre class="brush: powershell; light: true; title: ; notranslate">
Install-SPApplicationContent
</pre>
</li>
<li>Optional: Disable the loopback check. If this is a development install, outright disabling the check should be fine. For production environments, the loopback check should be left in place and BackConnectionHostNames should be used in its place. See <a title="KB896861" href="http://support.microsoft.com/kb/896861">KB 896861</a>.
<pre class="brush: powershell; light: true; title: ; notranslate">
New-ItemProperty HKLM:\System\CurrentControlSet\Control\Lsa -Name &quot;DisableLoopbackCheck&quot;  -value &quot;1&quot; -PropertyType dword
</pre>
</li>
</ol>
</li>
</ol>
<h4>Reference</h4>
<ul>
<li><a title="SharePoint 2010 Provisioning A New Farm with PowerShell" href="http://blogs.msdn.com/ekraus/archive/2009/11/06/sharepoint-2010-provisioning-a-new-farm-with-powershell.aspx">Eric Kraus&#8217; SharePoint/.NET Blog &#8211; SharePoint 2010 Provisioning A New Farm with Powershell</a></li>
<li><a title="KB896861" href="http://support.microsoft.com/kb/896861">You receive error 401.1 when you browse a Web site that uses Integrated Authentication and is hosted on IIS 5.1 or a later version</a></li>
<li><a title="SharePoint 2010: PSConfig and Powershell" href="http://stsadm.blogspot.com/2009/10/sharepoint-2010-psconfig-and-powershell.html">SharePoint Automation: SharePoint 2010 PSConfig and Powershell</a></li>
</ul>
<p><map name='google_ad_map_452_0feb153b14d1a0fb'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/452?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_452_0feb153b14d1a0fb' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=452&amp;url= http%3A%2F%2Fwww.mylifeinaminute.com%2F2010%2F05%2F17%2Fsharepoint-2010-provisioning-a-new-farm-with-powershell%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.mylifeinaminute.com/2010/05/17/sharepoint-2010-provisioning-a-new-farm-with-powershell/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Served from: www.mylifeinaminute.com @ 2012-02-05 08:45:58 by W3 Total Cache -->
