Easy SharePoint 2010 warmup Script using PowerShell

This idea comes from Kirk Hofer’s blog, but modfied to use the SharePoint 2010 powershell commandlets and not care about specifying credentials in the script. I figured most people would just keep using the credentials specified in their scheduled task. The script loads the SharePoint plugin, enumerates the zones, and sends a request to each one. Add-PSSnapin Microsoft.SharePoint.PowerShell; function Get-WebPage([string]$url) { $wc = new-object net.webclient; $wc.credentials = [System.Net.CredentialCache]::DefaultCredentials; $pageContents = $wc.

SharePoint 2010 Custom Action IDs for Site Settings page

Since the MSDN documentation for Default Custom Action Loacations and IDs is unreliable (they look to have copy+pasted the information from the SharePoint 2007 documentation), our only sure bet is to browse the file system and find the custom action IDs and groups ourselves. I had need of this information today, and found the items from the site settings page located at: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\FEATURES\SiteSettings\SiteSettings.xml For those looking specifically for it, here is the custom action for “Delete this site”:

Trying to access _Layouts/ChangeSiteMasterPage.aspx and receiving error

If you try to access the SharePoint URL \_Layouts/ChangeSiteMasterPage.aspx and receive the following error: One or more field types are not installed properly. Go to the list settings page to delete these fields. The SharePoint Server Publishing Infrastructure feature needs to be turned on.

SharePoint WebPart implementing ICallbackEventHandler does not work properly in Web Part Gallery

In migrating some WebParts from SP2007 to SP2010, I came across a webpart that implements ICallbackEventHandler. This webpart was working fine when placed on the page, but did not work correctly in the webpart gallery. The specific error message being received was: The target ‘ctl00$PlaceHolderMain$ctl00’ for the callback could not be found or did not implement ICallbackEventHandler This error is due to the webpart being added to the preview page dynamically at runtime.

Sonic Fan Remix

The new Sonic 4 is a bit of a novelty. This though - this is what Sonic fans have been waiting for: More information on the game can be found at http://sonicfanremix.com/.

SharePoint Content Query WebPart easy values

Sometimes it’s helpful to see exactly what your CQW is receiving. Put this into a style and see what properties and data you’re receiving: <xsl:for-each select="@*"> P:<xsl:value-of select="name()" /><br/> V:<xsl:value-of select="." /><br/> </xsl:for-each>