<?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>My SharePoint of View &#187; Troubleshooting</title>
	<atom:link href="http://mysharepointofview.com/category/troubleshooting/feed/" rel="self" type="application/rss+xml" />
	<link>http://mysharepointofview.com</link>
	<description>Thoughts, reflections and solutions from the field in SharePoint land</description>
	<lastBuildDate>Tue, 10 Aug 2010 18:23:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Application Server Administration job failed event id 6482</title>
		<link>http://mysharepointofview.com/2010/08/application-server-administration-job-failed-event-id-6482/</link>
		<comments>http://mysharepointofview.com/2010/08/application-server-administration-job-failed-event-id-6482/#comments</comments>
		<pubDate>Tue, 10 Aug 2010 18:23:23 +0000</pubDate>
		<dc:creator>Mattias Karlsson</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Event ID 6482]]></category>
		<category><![CDATA[MachineKeys]]></category>
		<category><![CDATA[MOSS]]></category>
		<category><![CDATA[Search]]></category>

		<guid isPermaLink="false">http://mysharepointofview.com/?p=864</guid>
		<description><![CDATA[ I ran across an interesting problem today at a customer that I thought I&#8217;ll share with you. The background to the problem is that a SharePoint server 2007 farm needed to be moved to another AD (don&#8217;t ask why it was there in the first place&#8230;) and since we needed new service accounts the farm was taken [...]]]></description>
			<content:encoded><![CDATA[<p> I ran across an interesting problem today at a customer that I thought I&#8217;ll share with you. The background to the problem is that a SharePoint server 2007 farm needed to be moved to another AD (don&#8217;t ask why it was there in the first place&#8230;) and since we needed new service accounts the farm was taken down, servers where moved and then  the farm was installed again on the same servers. So far no problem at all and the installation ran successfully. But when I looked in the event viewer I saw that every minute on all servers in the farm I got the following Event ID 6482 every minute.</p>
<p>Application Server Administration job failed for service instance Microsoft.Office.Server.Search.Administration.SearchAdminSharedWebServiceInstance (6b98c51f-116c-49f0-9aa6-4207555ed2f8).</p>
<p>Reason: The handle is invalid.</p>
<p>Techinal Support Details:</p>
<p>System.Security.Cryptography.CryptographicException: The handle is invalid.<br />
at System.Security.Cryptography.Utils.CreateProvHandle(CspParameters parameters, Boolean<br />
andomKeyContainer)<br />
at System.Security.Cryptography.Utils.GetKeyPairHelper(CspAlgorithmType keyType, CspParameters parameters, Boolean randomKeyContainer, Int32 dwKeySize, SafeProvHandle&amp; safeProvHandle, SafeKeyHandle&amp; safeKeyHandle)<br />
at System.Security.Cryptography.RSACryptoServiceProvider.GetKeyPair()<br />
at System.Security.Cryptography.RSACryptoServiceProvider..ctor(Int32 dwKeySize, CspParameters parameters, Boolean useDefaultKeySize)<br />
at Microsoft.SharePoint.Utilities.CertificateManager.CreateSelfSignedSslCertificate(CspParameters parameters, X500DistinguishedName name, DateTime expiresAfter)<br />
at Microsoft.SharePoint.Administration.SPProvisioningAssistant.ProvisionIisWebSite(String serverComment, String[] serverBindings, String[] secureBindings, AuthenticationMethods authenticationMethods, String[] authenticationProviders, String path, AccessFlags accessFlags, String applicationName, String applicationPoolId, String[] scriptMaps, String sslCertificateSubjectName)<br />
at Microsoft.SharePoint.Administration.SPMetabaseManager.ProvisionIisWebSite(String serverComment, String[] serverBindings, String[] secureBindings, Int32 authenticationMethods, String[] authenticationProviders, String path, Int32 accessFlags, String applicationName, String applicationPoolId, String[] scriptMaps, String sslCertificateSubjectName)<br />
at Microsoft.Office.Server.Administration.SharedWebServiceInstance.Synchronize()<br />
at Microsoft.Office.Server.Administration.ApplicationServerJob.ProvisionLocalSharedServiceInstances(Boolean isAdministrationServiceJob)<br />
After some troubleshooting, googling and talking to the windows team I found that the folder:<br />
<em>C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys </em>most likely had the wrong permissions. One of the files located in the folder didn&#8217;t seemed to like the move and when trying to look at the permissions I got this:</p>
<p><a href="http://mysharepointofview.com/wp-content/uploads/2010/08/RSAPermissions.jpg"><img title="RSAPermissions" src="http://mysharepointofview.com/wp-content/uploads/2010/08/RSAPermissions.jpg" alt="" width="466" height="88" /></a></p>
<p>So, what I did was that I gave the ownership of this folder to the local administrators group which is done in the following way:</p>
<p>Click Ok on the warning that is shown above.</p>
<p>Click on Advanced and then on the Owner tab.</p>
<p>Select administrators, and click Ok until all windows are closed</p>
<p>Open up the security dialogue again and add the local administrators group and click ok. Note that if you have moved the server from one AD to another you will most likely see the old AD account in the security list which should be deleted.</p>
<p>You should add the local Administrator group to the MachineKeys folder above an make sure that it inherits the permissions.</p>
<p>This should solve the problem for you.</p>
]]></content:encoded>
			<wfw:commentRss>http://mysharepointofview.com/2010/08/application-server-administration-job-failed-event-id-6482/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Database statistics timer job &#8211; for good and for bad?</title>
		<link>http://mysharepointofview.com/2010/02/database-statistics-timer-job-for-good-and-for-bad/</link>
		<comments>http://mysharepointofview.com/2010/02/database-statistics-timer-job-for-good-and-for-bad/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 12:59:44 +0000</pubDate>
		<dc:creator>Mattias Karlsson</dc:creator>
				<category><![CDATA[Enterprise]]></category>
		<category><![CDATA[Operation]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[MOSS]]></category>
		<category><![CDATA[SP2]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Timer Job]]></category>
		<category><![CDATA[WSS]]></category>

		<guid isPermaLink="false">http://mysharepointofview.com/?p=754</guid>
		<description><![CDATA[When SP2 was released almost a year ago there was an update to the Database Statistics Job. What was updated was a rebuild of the database reindex. This was introduced as one of the main improvements in the SP2 and it is. But in some cases the job might not always be as good as it [...]]]></description>
			<content:encoded><![CDATA[<p>When SP2 was released almost a year ago there was an update to the Database Statistics Job. What was updated was a rebuild of the database reindex. This was introduced as one of the main improvements in the SP2 and it is. But in some cases the job might not always be as good as it sounds for your environment.</p>
<p>The reason for that is that the rebuild of the index is quite aggressive in it&#8217;s nature and does not have any logic built in to it. It simply rebuilds the whole index daily.</p>
<p>If you look at the information from Microsoft at technet (<a href="http://technet.microsoft.com/en-us/library/cc678870.aspx"><em>http://technet.microsoft.com/en-us/library/cc678870.aspx</em></a>) about the job it says:</p>
<p><em>If you have installed Office SharePoint Server 2007 with SP2:</em></p>
<ul>
<li><em>The job updates the query optimization statistics by sampling key tables every time that it runs, instead of performing a full scan.</em></li>
<li><em>If you are running SQL Server 2005 or SQL Server 2008, the job rebuilds all indexes in the content databases every time that it runs.</em></li>
<li><em>If you are running an Enterprise edition of SQL Server 2005 or SQL Server 2008, the job rebuilds most indexes online.</em></li>
<li><em>If you are running a Standard edition of SQL Server 2005 or SQL Server 2008, the job rebuilds the indexes offline.</em></li>
<li><em>If you are running SQL Server 2000, the job does not rebuild any indexes.</em></li>
</ul>
<p>It actually also specifies that the job should only run weekly if you are running MOSS and daily if your using WSS. I assume that this is just a mistake in the documentation because in all environments I looked in it&#8217;s set to daily no matter if you are using Moss or WSS with SP2.</p>
<p>So what happens if you have a large environment where your have backups, or maybe a crawl running at the same time. Or maybe your SQL DBA&#8217;s have done their job and have their own reindex and update statistics job put directly in SQL? Well, you could run in to performance problems and extreme slow environments together with backups taking longer time then they should, error messages and maybe even corrupt databases. The later I have not seen but potentially it&#8217;s possible.</p>
<p>I&#8217;m not saying that bad things will happen to your environment with this job, but more of be aware and have a look at how this is configured in your environment. Maybe you should reschedule it if it&#8217;s in conflict with any other SQL job. And if you are not the SQL DBA talk to the DBAs and make sure that they don&#8217;t have any similar already in place. If they have, is it better with built in logic where they look at the fragmentation level? Then maybe you should disable the SharePoint Timer Job and only run the job put on the SQL server.</p>
<p>If you want to find out what settings you have you could first look in Central <a href="http://mysharepointofview.com/wp-content/uploads/2010/02/GlobalConfiguration.jpg"><img class="size-full wp-image-758 alignright" style="margin: 10px;" title="GlobalConfiguration" src="http://mysharepointofview.com/wp-content/uploads/2010/02/GlobalConfiguration.jpg" alt="" width="142" height="74" /></a>Administration. You have one Database Statistics job for each Web Application and you can see that under Operations and Timer Job Status. In the Timer Job Definition, found at the same place in Central administration, you can see if the job is run weekly or daily.<br />
The best  way is however to use STSADM or <a href="http://technet.microsoft.com/en-us/library/dd745013.aspx" target="_self">SPDiag</a> to get the information on when it&#8217;s scheduled. To reschedule jobs you need to use STSADM.</p>
<p>This is how you get the settings you have using STSADM:</p>
<p><em>stsadm -o getproperty -pn job-database-statistics -url <a href="http://YourSPSite">http://YourSPSite</a></em></p>
<p>And to set a new value you do like this:</p>
<p><em>stsadm -o setproperty -pn job-database-statistics -pv &#8220;Weekly between Fri 22:00:00 and Sun 06:00:00&#8243; -url <a href="http://YourSPSite">http://YourSPSite</a></em></p>
<p>Here you have the STSADM reference for this particular task: <a href="http://technet.microsoft.com/en-us/library/cc424963.aspx">http://technet.microsoft.com/en-us/library/cc424963.aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mysharepointofview.com/2010/02/database-statistics-timer-job-for-good-and-for-bad/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>An error occured in the blob cache &#8211; Event ID 5538</title>
		<link>http://mysharepointofview.com/2010/01/an-error-occured-in-the-blob-cache-event-id-5538/</link>
		<comments>http://mysharepointofview.com/2010/01/an-error-occured-in-the-blob-cache-event-id-5538/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 15:07:07 +0000</pubDate>
		<dc:creator>Mattias Karlsson</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Blob cache]]></category>
		<category><![CDATA[Event id 5538]]></category>
		<category><![CDATA[WSS]]></category>

		<guid isPermaLink="false">http://mysharepointofview.com/?p=749</guid>
		<description><![CDATA[I ran in to the following problem in a SharePoint Server SP2 environment: The exception message was &#8216;The process cannot access the file &#8216;D:\BlobCachefolder&#8217; because it is being used by another process.&#8217;
After some troubleshooting and discussions with Microsoft I finally got confirmed that this is a known issue, not very frequent but still. This is [...]]]></description>
			<content:encoded><![CDATA[<p>I ran in to the following problem in a SharePoint Server SP2 environment: <em>The exception message was &#8216;The process cannot access the file &#8216;D:\BlobCachefolder&#8217; because it is being used by another process.&#8217;</em><a href="http://mysharepointofview.com/wp-content/uploads/2010/01/Eventid5538.jpg"></a></p>
<p>After some troubleshooting and discussions with Microsoft I finally got confirmed that this is a known issue, not very frequent but still. This is caused when the worker process updates or deletes a cached file and a request comes simultaneously to the WFE server for a MOSS page that contains the cached item.</p>
<p>This is corrected in August Cumulative update even if it&#8217;s not specifically mentioned in the kb. <a href="https://zipmail.zipper.se/OWA/redir.aspx?C=4e634691f0cc44b8927935a71f0245c6&amp;URL=http%3a%2f%2fsupport.microsoft.com%2fkb%2f973400%2f" target="_blank">http://support.microsoft.com/kb/973400/</a><br />
Below you see how it was showned in my case.<a href="http://mysharepointofview.com/wp-content/uploads/2010/01/Eventid5538.jpg"><img class="size-medium wp-image-750 alignright" title="Eventid5538" src="http://mysharepointofview.com/wp-content/uploads/2010/01/Eventid5538-270x300.jpg" alt="" width="270" height="300" /></a></p>
<p>Event Type: Error<br />
Event Source: Office SharePoint Server<br />
Event Category: Publishing Cache<br />
Event ID: 5538<br />
User: N/A<br />
Description:<br />
An error occured in the blob cache. The exception message was &#8216;The process cannot<br />
access the file<br />
&#8216;D:\BlobCachefolder&#8217; because it is being used by another process.&#8217;</p>
]]></content:encoded>
			<wfw:commentRss>http://mysharepointofview.com/2010/01/an-error-occured-in-the-blob-cache-event-id-5538/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Basic WSS Installation problem &#8211; Server is not responding</title>
		<link>http://mysharepointofview.com/2010/01/basic-wss-installation-problem-server-is-not-responding/</link>
		<comments>http://mysharepointofview.com/2010/01/basic-wss-installation-problem-server-is-not-responding/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 13:56:44 +0000</pubDate>
		<dc:creator>Mattias Karlsson</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[internal database]]></category>
		<category><![CDATA[WSS]]></category>

		<guid isPermaLink="false">http://mysharepointofview.com/?p=741</guid>
		<description><![CDATA[I was asked to take a look at a problem a customer had with a basic installation of WSS. Honestly it&#8217;s been a while since I did this and had to start by try remembering all the problems and pitfalls that could come up.  The installation was to make a proof-of-concept so therefor I forgave [...]]]></description>
			<content:encoded><![CDATA[<p>I was asked to take a look at a problem a customer had with a basic installation of WSS. Honestly it&#8217;s been a while since I did this and had to start by try remembering all the problems and pitfalls that could come up.  The installation was to make a proof-of-concept so therefor I forgave them for doing the basic installation with the internal database.</p>
<p>They ran the binaries without any problem but when running the <em>SharePoint Products and Technologies Configuration Wizard</em> the installation quickly failed with the error &#8220;<em>Failed to connect to the database server&#8221;. </em></p>
<p>We did all testing and troubleshooting with local Firewalls, loop back checks, accounts etc, and when accessing the internal database with SQL Management Studio it worked fine. In the log files the following was found that did not gave us that much.</p>
<p><em>The timeout period elapsed prior to completion of the operation or the server is not responding.</em></p>
<p>After some testing we started to notice that the server was behaving strange when doing other things. It turned out that Firewall ports between the server where we should install WSS 3.0 and AD had been blocked causing problems to authenticate the user that ran the wizard.</p>
]]></content:encoded>
			<wfw:commentRss>http://mysharepointofview.com/2010/01/basic-wss-installation-problem-server-is-not-responding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Synchronization for Shared Services Provider Failed</title>
		<link>http://mysharepointofview.com/2009/10/synchronization-for-shared-services-provider-failed/</link>
		<comments>http://mysharepointofview.com/2009/10/synchronization-for-shared-services-provider-failed/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 00:00:33 +0000</pubDate>
		<dc:creator>Mattias Karlsson</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Event ID 5783]]></category>
		<category><![CDATA[Event view]]></category>
		<category><![CDATA[MOSS]]></category>
		<category><![CDATA[Shared Service Provider]]></category>

		<guid isPermaLink="false">http://mysharepointofview.com/?p=562</guid>
		<description><![CDATA[I ran in to:
Synchronization for Shared Services Provider &#8216;[your shared service provider]&#8216; has failed. The operation will be retried.
Reason: Collection was modified; enumeration operation may not execute.
 

And to solve it I did the following:
stsadm -o sync -listolddatabases 1
This gives us a list of databases that has not been syncronized for 1 day. You can change [...]]]></description>
			<content:encoded><![CDATA[<p>I ran in to:</p>
<p>Synchronization for Shared Services Provider &#8216;[your shared service provider]&#8216; has failed. The operation will be retried.<br />
Reason: Collection was modified; enumeration operation may not execute.<br />
 </p>
<p><img class="alignnone size-full wp-image-563" title="EventID5783" src="http://mysharepointofview.com/wp-content/uploads/2009/09/EventID57831.jpg" alt="EventID5783" width="404" height="448" /></p>
<p>And to solve it I did the following:</p>
<p><em>stsadm -o </em><a href="http://technet.microsoft.com/en-us/library/cc263196.aspx"><em>sync</em></a><em> -listolddatabases 1</em></p>
<p>This gives us a list of databases that has not been syncronized for 1 day. You can change the values if you want to check further back in time.</p>
<p><em>stsadm -o </em><a href="http://technet.microsoft.com/en-us/library/cc263196.aspx" target="_blank"><em>sync</em></a><em> -deleteolddatabases 1</em></p>
<p>This sounds scary right but it actually just deletes the record to the databases.</p>
<p>Restart the Windows SharePoint Timer Service</p>
<p>stsadm -o <a href="http://technet.microsoft.com/en-us/library/cc262783.aspx" target="_blank">execadmsvcjobs</a></p>
<p>Hope it might help someone to quicker solve the issue.</p>
]]></content:encoded>
			<wfw:commentRss>http://mysharepointofview.com/2009/10/synchronization-for-shared-services-provider-failed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Column ordering not displayed</title>
		<link>http://mysharepointofview.com/2009/09/column-ordering-not-displayed/</link>
		<comments>http://mysharepointofview.com/2009/09/column-ordering-not-displayed/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 16:50:08 +0000</pubDate>
		<dc:creator>Mattias Karlsson</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Column Ordering]]></category>
		<category><![CDATA[Content types]]></category>
		<category><![CDATA[End User]]></category>
		<category><![CDATA[WSS]]></category>

		<guid isPermaLink="false">http://mysharepointofview.com/?p=530</guid>
		<description><![CDATA[Today I got a question from a user that needed to change the Column ordering in his SharePoint list. To his surprise (and at first to mine as well) the link named Column Ordering in List Settings was not there. In his other list they shows up fine.
What we first tested was to see if [...]]]></description>
			<content:encoded><![CDATA[<p>Today I got a question from a user that needed to change the Column ordering in his SharePoint list. To his surprise (and at first to mine as well) the link named Column Ordering in List Settings was not there. In his other list they shows up fine.</p>
<p>What we first tested was to see if the settings page worked at all and it did. This test was done by manually adding formEdt.aspx?List=[Your list guid] to the URL and everything worked fine.</p>
<p>We then found out that SharePoint removes this option, quite logically after you have set the list to &#8220;Allow management of content types&#8221;. This is done under Advanced Setting in List Settings. If you set that to No, the link will show up again.</p>
<p><img class="alignnone size-full wp-image-89" title="allowmanagementofcontenttypes" src="http://mysharepointofview.com/wp-content/uploads/2009/01/allowmanagementofcontenttypes.jpg" alt="allowmanagementofcontenttypes" width="370" height="70" /></p>
<p>This is because when you select to use Content Types in your list the columns becomes a new custom Content type. And If you need to have the content type then you need to change the Column order through the Content type. It&#8217;s basically just moved into the Content Type settings.</p>
]]></content:encoded>
			<wfw:commentRss>http://mysharepointofview.com/2009/09/column-ordering-not-displayed/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>&#8220;Object already exists&#8221; when using ProvisionGlobally</title>
		<link>http://mysharepointofview.com/2009/08/object-already-exists-when-using-provisionglobally/</link>
		<comments>http://mysharepointofview.com/2009/08/object-already-exists-when-using-provisionglobally/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 14:07:11 +0000</pubDate>
		<dc:creator>Mattias Karlsson</dc:creator>
				<category><![CDATA[Script]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[MOSS]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Web Application]]></category>
		<category><![CDATA[WSS]]></category>

		<guid isPermaLink="false">http://mysharepointofview.com/?p=498</guid>
		<description><![CDATA[In two earlier posts I have written about how to create and extend a web application using PowerShell. Today I ran in to a problem when I extended a Web Application twice directly after each other.
The error message I got was:
Exception calling &#8220;ProvisionGlobally&#8221; with &#8220;0&#8243; argument(s): &#8220;An object of the type Microsoft.SharePoint.Administration. SPWebApplicationProvisioningJobDefinition named &#8220;Provisioning [...]]]></description>
			<content:encoded><![CDATA[<p>In two earlier posts I have written about how to <a href="http://mysharepointofview.com/2009/06/create-new-web-application-with-powershell/">create</a> and <a href="http://mysharepointofview.com/2009/07/extend-a-web-application-with-powershell/">extend </a>a web application using PowerShell. Today I ran in to a problem when I extended a Web Application twice directly after each other.</p>
<p>The error message I got was:</p>
<p><span style="color: #800000;">Exception calling &#8220;ProvisionGlobally&#8221; with &#8220;0&#8243; argument(s): &#8220;An object of the type Microsoft.SharePoint.Administration. SPWebApplicationProvisioningJobDefinition named &#8220;Provisioning 0615878b-f543-43ab-aeb8-c59080cd52a8&#8243; already exists under the parent Microsoft.SharePoint.Administration.SPWebService named &#8220;&#8221;. Rename your object or delete the existing object.&#8221;</span></p>
<p>This is because SharePoint creates a  timer job that runs once to provision the Web Application out to all WFE’s. So in this case when we extend the same Web Application, the job will have the same name and sometimes (almost all the time if you have more then one WFE) the timer job doesn&#8217;t get finished and there is your conflict. You can follow this process in Central Administration under Operations and Timer Job Status while you run your script.</p>
<p>The easiest way to solve this is to insert a sleep in to your script looking something  like this:</p>
<p><em>Start-Sleep -s 30</em></p>
<p>-s indicates how many seconds to wait so in this case 30 seconds.</p>
<p>But I wanted to make it a bit more sophisticated so I made a for each loop where I check if there is any provisioning job running, and if it is, wait another 30 sec.</p>
<p>To be able to do this we first need a reference to the farm and then to the Service running the Provisioning jobs. The Service is called “Windows SharePoint Services Web Application” so by looping through the JobDefinitions of that service, and look for a one named “Provisioning Web Application” we know if we need to wait some more or we can continue extending the Web Application.</p>
<p>This is how the script looks like:</p>
<p><em>$farm=[Microsoft.SharePoint.Administration.SPFarm]::Local</em></p>
<p><em>$Service = $farm.Services | Where { $_.TypeName -eq &#8220;Windows SharePoint Services Web Application&#8221;}</em></p>
<p><em> while ($Service.jobdefinitions | where { $_.Title -like “*Provisioning Web Application*” } ){</em></p>
<p><em> Write-Host “The ‘” $Service.jobdefinitions.Title “‘ job are still running. Waiting 30 sec to provision ” $_.WebAppDisplayName</em></p>
<p><em>  Start-Sleep -s 30</em></p>
<p><em>  }</em></p>
]]></content:encoded>
			<wfw:commentRss>http://mysharepointofview.com/2009/08/object-already-exists-when-using-provisionglobally/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Add Custom HTTP Headers programmatically</title>
		<link>http://mysharepointofview.com/2009/08/add-custom-http-headers-programmatically/</link>
		<comments>http://mysharepointofview.com/2009/08/add-custom-http-headers-programmatically/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 16:59:37 +0000</pubDate>
		<dc:creator>Mattias Karlsson</dc:creator>
				<category><![CDATA[Script]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Fiddler]]></category>
		<category><![CDATA[HTTP Headers]]></category>
		<category><![CDATA[IIS 6]]></category>

		<guid isPermaLink="false">http://mysharepointofview.com/?p=492</guid>
		<description><![CDATA[When you work with farms with multiple WFE’s that sits behind a loadbalancer and Virtual IP it can sometimes be difficult troubleshooting since you don’t know what server your client is connected to.
I sometimes use Fiddler (which is a great tool by the way) when inspect the HTTP traffic, but without a custom HTTP Header [...]]]></description>
			<content:encoded><![CDATA[<p>When you work with farms with multiple WFE’s that sits behind a loadbalancer and Virtual IP it can sometimes be difficult troubleshooting since you don’t know what server your client is connected to.</p>
<p>I sometimes use <a href="www.fiddlertool.com/" target="_blank">Fiddler </a>(which is a great tool by the way) when inspect the HTTP traffic, but without a custom HTTP Header it makes the hole process much more difficult.</p>
<p>Once again, I’m not much for repetitive tasks and in this case I had a lot of WFE’s and web applications. Therefore I put together a small script that enumerates and adds ServerName: [Servername] as custom HTTP header to all your sites on the server. You find it in my <a href="http://mysharepointofview.com/downloads">download </a>section under IIS. And please don’t hang me for not making a beautiful script, It was a quick and dirty one and if you want to shape it up please feel free to do so.</p>
]]></content:encoded>
			<wfw:commentRss>http://mysharepointofview.com/2009/08/add-custom-http-headers-programmatically/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Problem creating My Site</title>
		<link>http://mysharepointofview.com/2009/08/problem-creating-my-site/</link>
		<comments>http://mysharepointofview.com/2009/08/problem-creating-my-site/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 06:46:21 +0000</pubDate>
		<dc:creator>Mattias Karlsson</dc:creator>
				<category><![CDATA[Enterprise]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[AD]]></category>
		<category><![CDATA[MOSS]]></category>
		<category><![CDATA[My site]]></category>
		<category><![CDATA[Policy]]></category>

		<guid isPermaLink="false">http://mysharepointofview.com/?p=433</guid>
		<description><![CDATA[Have you ever received the error message:
There has been an error creating the personal site. Contact your site administrator for more information.
when you open up My Site for the first time? I have heard about this before and also read the solution (for instance found here). This is usually related to permissions not set up [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever received the error message:</p>
<p>There has been an error creating the personal site. Contact your site administrator for more information.</p>
<p>when you open up My Site for the first time? I have heard about this before and also read the solution (for instance found <a href="http://social.technet.microsoft.com/Forums/en-US/sharepointsocialcomputing/thread/c731ce02-f219-4356-985b-baf83a475c28" target="_blank">here</a>). This is usually related to permissions not set up the right way but the other day I found out that it can happen during other circumstances. It&#8217;s likely that you will not get it but I thought that it would be good to share the knowledge.</p>
<p>The strange thing this time was that it only happened to one user and not everyone. That indicates that it&#8217;s not a permission problem, or most likely not.</p>
<p>I looked in the SSP and the user was imported in the profile import and the info from the AD was there. I decided to delete the site collection and found out that there was already another My Site Site collection there but with another name. It turns out that a former employee had the same AD account name. The account had been deleted from the AD since it was a long time ago but the My Site was still there. So SharePoint were not able to create the My Site because it already had Site Collection with that name.</p>
<p>Lesson learned. An updated routine for when deleting AD accounts on former employees. Best practise would be to never delete AD accounts in terms of traceability but it might also be a good thing to have a policy for how long My Sites should be stored. A suggestion is to have a retention period for when you delete the content and then have a Custom Property connected to AD where you manage the employment status like “full time”, “contractor”, “Parental leave” and Left the company yy-mm-dd etc.</p>
]]></content:encoded>
			<wfw:commentRss>http://mysharepointofview.com/2009/08/problem-creating-my-site/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A word about troubleshooting the Import spreedsheet problem</title>
		<link>http://mysharepointofview.com/2009/06/a-word-about-troubleshooting-the-import-spreedsheet-problem/</link>
		<comments>http://mysharepointofview.com/2009/06/a-word-about-troubleshooting-the-import-spreedsheet-problem/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 16:30:36 +0000</pubDate>
		<dc:creator>Mattias Karlsson</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Load Balancer]]></category>
		<category><![CDATA[MOSS]]></category>
		<category><![CDATA[WSS]]></category>

		<guid isPermaLink="false">http://mysharepointofview.com/?p=367</guid>
		<description><![CDATA[At one of my customers we have been strugling for a while with a problem that occurs when you try craete a new list by using the Import spreadsheet function.
Once again it was one of those problems that are hard to troubleshoot since it does not happen to all users, it happens sometimes and not [...]]]></description>
			<content:encoded><![CDATA[<p>At one of my customers we have been strugling for a while with a problem that occurs when you try craete a new list by using the Import spreadsheet function.</p>
<p>Once again it was one of those problems that are hard to troubleshoot since it does not happen to all users, it happens sometimes and not on all our farms. This is usually indicating that there is something wrong with the client or the network like firewalls or load balansers, but you can never be sure. However, this time it seemed to be.</p>
<p>What happens when you try to import the spreadsheet is that Excel (in this case Office 2003 but we also had it on the 2007 version) gives you a &#8220;<strong>Cannot connect to the server at this time. Your list cannot be published</strong>&#8221; when you click on import.</p>
<p><img class="alignnone size-full wp-image-377" title="importspreadsheet" src="http://mysharepointofview.com/wp-content/uploads/2009/06/importspreadsheet.jpg" alt="importspreadsheet" width="376" height="109" /></p>
<p>There are a number of posts on the topic if you google it and it seems like there is a lot of things that can cause this problem. I therefore would like to have a word about troubleshooting the Import spreadsheet.</p>
<p> </p>
<p><span style="text-decoration: underline;">On the client side</span></p>
<p>First of all, the window that handles the import commes from the Excel client and not some SharePoint thing. The file that is used is the EXPTOOWS.XLA found in Program files\Microsoft Office\OFFICE11\1033 (If you have Office 2007 then the folder will be office12)</p>
<p>Instead of writing it all down I&#8217;ll give you a couple of links that shows what you need to change:</p>
<p><a href="http://blog.sharepointhosting.com/Lists/Posts/Post.aspx?List=399ed944%2D72d2%2D4932%2Dbc13%2Dde0586abf2d1&amp;ID=64">http://blog.sharepointhosting.com/Lists/Posts/Post.aspx?List=399ed944%2D72d2%2D4932%2Dbc13%2Dde0586abf2d1&amp;ID=64</a></p>
<p><a href="http://rdacollab.blogspot.com/2008/05/importing-excel-spreadsheet-to.html">http://rdacollab.blogspot.com/2008/05/importing-excel-spreadsheet-to.html</a></p>
<p>Or a thread on the MSDN forum with a lot of info:</p>
<p><a href="http://social.technet.microsoft.com/forums/en-US/sharepointgeneral/thread/75b2be6b-44df-4389-bf34-c7a01c12372c/">http://social.technet.microsoft.com/forums/en-US/sharepointgeneral/thread/75b2be6b-44df-4389-bf34-c7a01c12372c/</a></p>
<p> </p>
<p>We can draw the conclusion that when mixing different Office version we can get a problem with the EXPTOOWS.XLA.</p>
<p>You should also make sure that you have the latest patches. Especially if you are running Office 2003. You atleast need to have SP3 and the following patches:</p>
<p><a href="http://support.microsoft.com/kb/939269">http://support.microsoft.com/kb/939269</a><br />
<a href="http://support.microsoft.com/kb/952608">http://support.microsoft.com/kb/952608</a></p>
<p>If you have Office 2007 try this one:</p>
<p><a href="http://support.microsoft.com/kb/956510">http://support.microsoft.com/kb/956510</a><br />
What also is good practise in this kind of troubleshooting is to remove old cache files and entries. Specifically in the following locations:</p>
<p><strong>Windows XP:<br />
</strong> <em><span style="color: #888888;">c:\documents and settings\[Username]\nethood</span></em></p>
<p><strong>Windows Vista</strong><br />
<em><span style="color: #888888;">c:\users\[Username]\nethood</span></em></p>
<p>And you should also delete the cache files located in:</p>
<p><strong>Windows XP</strong><br />
<em><span style="color: #888888;">c:\documents and settings\[Username]\application data\microsoft\web server extensions\cache</span></em></p>
<p><strong>Windows Vista</strong><br />
<em><span style="color: #888888;">C:\Users\[Username]\AppData\Roaming\Microsoft\Web Server Extensions\Cache</span></em></p>
<p>In addition, remove all entries in the registry location:</p>
<p><span style="color: #888888;">HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Common\Internet\Server Cache</span></p>
<p> </p>
<p>When you have completed that, make a reboot of your client.</p>
<p> </p>
<p>Finally check in Internet Explorer so that the Option <span style="color: #888888;">Check for server certificate revocation</span> in Internet Options -&gt;Advanced-&gt; security is <span style="text-decoration: underline;">not</span> checked, if it is, uncheck it and restart IE.</p>
<p> <br />
<span style="text-decoration: underline;">So let&#8217;s move over to the SharePoint server side</span></p>
<p>Check that you in IIS has a HTTP header for SharePoint. You find this by right click on the web site in IIS and then click on the tab HTTP Headers. You should have something like:</p>
<p>Custom header name<br />
MicrosoftSharePointTeamServices</p>
<p>Custom header value:<br />
12.0.0.6219 (or the version number of SharePoint installed)</p>
<p><img class="alignnone size-full wp-image-378" title="httpheader" src="http://mysharepointofview.com/wp-content/uploads/2009/06/httpheader.jpg" alt="httpheader" width="327" height="227" /><br />
You should also check so that not the ASMX extension itself is missing from the list of Application Mappings in IIS. You find it in the Properties of your IIS site -&gt; Home Directory -&gt; Configuration. </p>
<p>You should do a IIS Reset after this change and you need to do it on all your web front end servers.</p>
<p> </p>
<p><span style="text-decoration: underline;">The network</span></p>
<p>In our case we found out that the problem was related to the load balancer. We have a couple of WFEs and when we changed the stickiness type to source ip instead of cookie it started to work. What it does is that it makes the Layer type to change from Layer 5 to Layer 4, and apperently this is a known bug in Cisco CSS Load Balancers. We found this after reading an excellent post from the MSDN guys:</p>
<p><a href="http://blogs.msdn.com/vsofficedeveloper/pages/SharePoint-Cisco-CSS-Switch-Issue.aspx">http://blogs.msdn.com/vsofficedeveloper/pages/SharePoint-Cisco-CSS-Switch-Issue.aspx</a><br />
If you are using ISA server or any other network boxes between the server and client you need to check them as well.</p>
<p>Hope this gives you a good summary and that after you have read this you get rid of the problem. However, if I have missed anything please post me and I will update this post.</p>
]]></content:encoded>
			<wfw:commentRss>http://mysharepointofview.com/2009/06/a-word-about-troubleshooting-the-import-spreedsheet-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
