Friday, 3 June 2011

SharePoint 2010 writing to the ULS log

With SharePoint 2007 there was no out of the box method to write to the ULS log, 2010 however finally remedies this weakness.

Thursday, 26 May 2011

Reflector alternatives

Enough has been said about the RedGate Reflector charging debacle, so I'll leave that alone. If you are looking for alternative software to decompile .NET code here are three to consider.

Wednesday, 25 May 2011

SharePoint 2007 to 2010 upgrade workflow task content type id issue

When upgrading from SharePoint 2007 to 2010 I came across a rather odd issue. A custom workflow was no longer using the custom WrkTaskIP.aspx page to host the InfoPath forms as it did in 2007. On closer inspection this was caused by the tasks created from the workflow not having the right content type (and the custom WrkTaskIP page was referenced in the workflow task content type xml file).

Tuesday, 10 May 2011

jQuery to override SharePoint OOTB Upload.aspx default for "Add as a new version to existing files" checkbox

A common query from SharePoint users with versioning enabled on document libraries is to default the "Add as a new version to existing files" checkbox on the OOTB upload.aspx page to unchecked. If you google how to uncheck it by default you'll get lots of entries showing you how to simply edit the Upload.aspx file in the \TEMPLATE\LAYOUTS\ folder in the 12/14 hive. This works fine of course if you don't care about tomorrow and having a supported/upgradeable SharePoint installation.

Sunday, 8 May 2011

PowerShell script to create batch release files for SharePoint wsp files

If you have a heavily customised SharePoint installation that is under continuous development here is a quick way to use PowerShell to generate batch files you can hand over to your deployment team alongside the wsp files. If your process consist of managed releases to multiple environments this might be a time saver. As with anything there are many ways to skin a cat, and this is just one example of how to script this repetitive task into a simple drag, drop and click.

Tuesday, 3 May 2011

SharePoint 2007 performance issue caused by too many event receivers

If you have a huge number of webs in a SharePoint 2007 site collection with a large number of content types you might have come across some of the more esoteric performance limitations of SharePoint. Regardless of whether you've followed the best practice guidelines for number of sites, lists, list items etc you could fall foul of some rather dodgy SQL in the SharePoint content database.

Wednesday, 20 April 2011

WSPBuilder per project configuration

When upgrading a custom SharePoint workflow recently I came across a useful feature of WSPBuilder, per project configuration.
WSPBuilder has its own config file WSPBuilder.exe.config which can be overridden in a visual studio project to provide custom settings for that specific project. All you have to do is add a copy of the file to your project from the installed location of WSPBuilder and uncomment any setting you want to override.